Search…

X3 Photo Gallery Support Forums

Search…
 
norad
Topic Author
Posts: 6
Joined: 21 Feb 2010, 18:06

how to insert google analytics code to record together?

18 Jul 2010, 11:33

Hi,

I have inserted my Google Analytics code into "imagevue/templates/index.gallery.phtml ". When viewing my report, I see lots of different gallery pages being recorded separately.

For example:
/gallery/index.php/content/gallery01/01.jpg/ > 300 pageviews
/gallery/index.php/content/gallery02/02.jpg/ > 220 pageviews
/gallery/index.php/content/gallery03/03.jpg/ > 140 pageviews

As you can imagine, the more hits I get on the gallery pages, the more complicated my analytics report gets. At the end, it is very difficult to see the other static pages of my website.

Is there anyway I can combine all these gallery pages into one single page and record them all together by placing the analytics code somewhere else?

Thank you
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

19 Jul 2010, 02:08

You mean you want the gallery to operate as a single page in your Google analytics? It is the SWFAddress javascript that handles the in-depth SWF tracking for Google Analytics. I believe you can disable it by modifying the index.gallery.phtml:
Code
<script type="text/javascript" src="<?php echo IV_PATH; ?>javascript/swfaddress.js?tracker=null"></script>
It would still record visitors to the gallery, but not how they navigate within the gallery.
 
omriamos
Posts: 18
Joined: 24 Jul 2009, 11:45

19 Jul 2010, 05:55

I wish I had your "problem"... :)
my swfaddress is enabled, but I still get the statistics as only one page (and a few more pages from the html version) for some unknown reason..
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

20 Jul 2010, 05:28

omriamos wrote:I wish I had your "problem"... :)
my swfaddress is enabled, but I still get the statistics as only one page (and a few more pages from the html version) for some unknown reason..
What version of Imagevue X2 are you using? It could have something to do with either the Google analytics code you are using, as I remember they had two javascript options ... or it could be you are using an older version of the SWFaddress JS.
 
omriamos
Posts: 18
Joined: 24 Jul 2009, 11:45

28 Jul 2010, 19:38

imagevue_x2.1.7.1

i believe it's the newest version..
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

01 Aug 2010, 07:16

Well, right now I kinda lost perspective of what your problem is to be honest. I thought you WANTED statistics as a single page ... Not sure why you would get from the HTML page, unless the code is embedded here also. Perhaps you have a link?

What exactly is it you want? A single analytics page hit, without sub pages? If you turn of SWFAddress, it would be impossible to get hits for subpages ...
 
norad
Topic Author
Posts: 6
Joined: 21 Feb 2010, 18:06

02 Aug 2010, 08:46

mjau-mjau wrote:You mean you want the gallery to operate as a single page in your Google analytics? It is the SWFAddress javascript that handles the in-depth SWF tracking for Google Analytics. I believe you can disable it by modifying the index.gallery.phtml:
Code
<script type="text/javascript" src="<?php echo IV_PATH; ?>javascript/swfaddress.js?tracker=null"></script>
It would still record visitors to the gallery, but not how they navigate within the gallery.
It worked! Thanks a lot...