Where does MonsterInsights put Google Analytics code?

It doesn’t change the theme itself. It uses a hook to insert the tracking code. View the source of one of your outputted front-end pages, and you’ll see the JS injected in there somewhere.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)