If you use the same Google Analytics plug-in as I do, you need to change the code within the plugin, not in your .php files.
Click on ‘Plug-ins’ in your dashboard, find the Google Analytics plug-in, and click the ‘Edit’ button. This will take you to the code page you need to edit.
The Analytics code I had to replace was much simpler than what you posted, and Google Analytics made it very easy to see which line of code needed replacing. I would double-check the Analytics site before making the change f I were you.