Page 1 of 1

Where to add Google Tracking code?

Posted: 03 Dec 2008, 22:02
by devin
Ever since my last update google hasn't been keeping track of my hits.

Where exactly do I need to add their ga.js file?

It says to add to the body of anything I wanted tracked so...

Thanks crew!

Posted: 03 Dec 2008, 22:24
by mjau-mjau
You can edit the file imagevue/templates/index.gallery.phtml - Simply add the script appropriately close to the bottom of the code.

Posted: 04 Dec 2008, 16:50
by markam24
Just remember you'll have to re-add the code after each time you update the gallery.

Posted: 05 Dec 2008, 06:44
by mjau-mjau
markam24 wrote:Just remember you'll have to re-add the code after each time you update the gallery.
That's right ... A good idea is to back-up any files you edit/customize, so you can easily re-apply them after updates. Only CONFIGs are saved in separate files based on your changes, so you don't have to worry about them.

Posted: 22 Mar 2009, 09:36
by shaman
Curious thing, I updated Imagevue gallery, and since then I'm not getting stats from my gallery, I thought that I need to re-add analytics js code, but surprise, when I opened index_gallery.phtml google code was there, so why it's not working (it used to work before update).

Posted: 22 Mar 2009, 16:40
by Nick
Are you sure you actually uploaded everything? The file should be overwritten. Maybe you are viewing cached page?

Did you try to clear browser's cache?

Posted: 23 Mar 2009, 09:16
by shaman
I downloaded this file via ftp so that wasn't a cache. I uploaded everything as usual there are all new functions and stuff like that but apparently this file wasn't updated.

Posted: 23 Mar 2009, 16:11
by Nick
Then you can just re-upload and re-add google analytics to it.

Posted: 04 Sep 2009, 10:50
by sopax
How can I open and edit a .phtml file? I have seen instructions on the net how to edit in Dreamweaver, but that does not work

Posted: 05 Sep 2009, 08:39
by mjau-mjau
Works here... You should be able to just drag it into dreamweaver. Personally, I just open it in text editor - notepad on Windows and textedit on Mac.

Posted: 07 Sep 2009, 09:23
by sopax
That simple - thanks!!