Hi. I've been using google anaysis for a while. Last week, I was reading google had an updated version (universal tracking) so I started the upgrade. After a few days I got my new google tracking code. Here is where I screwed up.
- I forgot that under my configuration menu, I had a nice place to update my tracking code. Instead, my brain said "i should put it in the footer".
- I edited /includes/templates/mytemplate/common/tpl_footer.php. I put it near the end, right before some code for a google campaign. I saved it. I cleared my cache and viewed my home page and now on the bottom is writes some code:
pageTracker._trackpageView(.......
-
I went back to take the code out and start again and the code wasn't there. I still had my CuteScapeFTP set to that file so I was like what the heck. I manually looked in the header fiile but it wasn't there either. Now my brain is stumped, where did that code code. It must be somewhere cause it was causing weird things to happen.
-
I used the tools/developers toolkit to search for the code PageTracker and found it in google_analytics.php. The code is:
echo "
pageTracker._trackPageview();
pageTracker._trackPageLoadTime();
";
So I figured that something was missing that it was now echoing to the screen instead of where it should be.
- This was when I remembered that I installed that module. So I went to menu->configure google analytics and turned off the custom code section. THe message goes away on my page. If I turn it on, it comes back. I replace the code with the code google gave me, turned it on but still got the writing so I turned it off again.
Then I found this discussion where it seems like you guys have it working. My questions are:
- Where the heck did the code go that I pasted in step 2?
- What should I do now? Do I need to uninstalled google_analytics and reinstall it?
I am trying to be logical and methodical but I screwed up and forgot to backup my footer file before i started. I have a backup but wasn't sure how old it was. The dates do something weird when I download from my server using FTP (that is on my list to fix). My server has a backup of today but that will cost me $35.
Any ideas?
Thanks for your help in advance.
Linda