Page 1 of 1

how to insert google analytics code to record together?

Posted: 18 Jul 2010, 11:33
by norad
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

Posted: 19 Jul 2010, 02:08
by mjau-mjau
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.

Posted: 19 Jul 2010, 05:55
by omriamos
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..

Posted: 20 Jul 2010, 05:28
by mjau-mjau
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.

Posted: 28 Jul 2010, 19:38
by omriamos
imagevue_x2.1.7.1

i believe it's the newest version..

Posted: 01 Aug 2010, 07:16
by mjau-mjau
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 ...

Posted: 02 Aug 2010, 08:46
by norad
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...