Page 1 of 1

Statistics : It makes me crazy

Posted: 14 Nov 2010, 10:32
by deepblue
Hi all.


My goal ? having statistics with all sub pages
How ? using "google analytics"

I pasted the google analytics code in "admin -> settings -> seo.counters"
My SWFAdress is enabled

My imagevue version is 2.1.8.2.



I get the statistics on only one page with the "flash gallery application".
The track of all sub pages seems to be ok when I use "HTML gallery application" but , of course, i'd like it will be ok with the flash one ...


How can I manage the stats correctly with the flash gallery ?

Thanks for yours help.

Re: Statistics : It makes me crazy

Posted: 14 Nov 2010, 23:57
by mjau-mjau
It should work out-of-the-box with SWFObject+SWFAddress+Analytics. Maybe make sure you are using the latest script versions, and the correct type of analytics javascript? Do you have a link to your gallery?

Re: Statistics : It makes me crazy

Posted: 15 Nov 2010, 10:13
by deepblue
mjau-mjau wrote:It should work out-of-the-box with SWFObject+SWFAddress+Analytics. Maybe make sure you are using the latest script versions, and the correct type of analytics javascript? Do you have a link to your gallery?
for the google code, I use the last one :

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>




for the SWFObject+SWFAddress version, I took the files inside your last zip 2.1.8.2, 4 days ago.


But, you're right, I can see there is a new version of SWFObject and SWFAddress (why the zip does not contain the last one ??)

Do I need to take the last "swfaddress.js" and put it in the javascript folder ?
Do I need to take the last "swfobject.js" and put it in the javascript folder ?

And what about "expressInstall.swf", "SWFAddress.as" and "SWFAddressEvent.as" ?
Do I need to change this files too ?

Thanks for your help ... and sorry for my english :-((

http://www.photos.christophe-desmottes.fr/

Re: Statistics : It makes me crazy

Posted: 15 Nov 2010, 18:00
by deepblue
deepblue wrote:
mjau-mjau wrote:It should work out-of-the-box with SWFObject+SWFAddress+Analytics. Maybe make sure you are using the latest script versions, and the correct type of analytics javascript? Do you have a link to your gallery?


... or do i need to use a classique google code analytics (above) instead of the asynchrone one (in the previous post ?)

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview();
} catch(err) {}
</script>

Re: Statistics : It makes me crazy

Posted: 16 Nov 2010, 05:09
by deepblue
Well well well ...

Yesterday, I set up the SWFObject+SWFAddress new version ... without succes ... :-( :-(

Today, i gonna change my code with this one and I will keep you update tomorrow

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview();
} catch(err) {}
</script>

Re: Statistics : It makes me crazy

Posted: 16 Nov 2010, 19:50
by deepblue
The end of story ...

Actually, the code was wrong. The right one is in the previous post. :idea: :idea:

:-)

Enjoy

Re: Statistics : It makes me crazy

Posted: 18 Nov 2010, 04:53
by mjau-mjau
So now stats deep-linking is working for you?

Re: Statistics : It makes me crazy

Posted: 18 Nov 2010, 05:23
by deepblue
mjau-mjau wrote:So now stats deep-linking is working for you?
yes mjau-mjau.
As I said in my previous post, the code i used was wrong.

all is fine
Now ... And i'm waiting for an answer to my new post about le SiteTitle during a slideShow

Thanks mjau-mjau