Search…

X3 Photo Gallery Support Forums

Search…
 
devin
Experienced
Topic Author
Posts: 45
Joined: 16 Apr 2007, 00:15

Where to add Google Tracking code?

03 Dec 2008, 22:02

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!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

03 Dec 2008, 22:24

You can edit the file imagevue/templates/index.gallery.phtml - Simply add the script appropriately close to the bottom of the code.
 
User avatar
markam24
Experienced
Posts: 280
Joined: 10 Oct 2006, 23:05

04 Dec 2008, 16:50

Just remember you'll have to re-add the code after each time you update the gallery.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

05 Dec 2008, 06:44

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.
 
shaman
Posts: 22
Joined: 12 Nov 2008, 14:40

22 Mar 2009, 09:36

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).
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

22 Mar 2009, 16:40

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?
firedev.com
 
shaman
Posts: 22
Joined: 12 Nov 2008, 14:40

23 Mar 2009, 09:16

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.
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

23 Mar 2009, 16:11

Then you can just re-upload and re-add google analytics to it.
firedev.com
 
sopax
Experienced
Posts: 40
Joined: 20 Feb 2009, 09:19

04 Sep 2009, 10:50

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
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

05 Sep 2009, 08:39

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.
 
sopax
Experienced
Posts: 40
Joined: 20 Feb 2009, 09:19

07 Sep 2009, 09:23

That simple - thanks!!