Search…

X3 Photo Gallery Support Forums

Search…
 
deepblue
Topic Author
Posts: 8
Joined: 11 Nov 2010, 11:17

Statistics : It makes me crazy

14 Nov 2010, 10:32

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

Re: Statistics : It makes me crazy

14 Nov 2010, 23:57

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?
 
deepblue
Topic Author
Posts: 8
Joined: 11 Nov 2010, 11:17

Re: Statistics : It makes me crazy

15 Nov 2010, 10:13

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/
 
deepblue
Topic Author
Posts: 8
Joined: 11 Nov 2010, 11:17

Re: Statistics : It makes me crazy

15 Nov 2010, 18:00

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>
 
deepblue
Topic Author
Posts: 8
Joined: 11 Nov 2010, 11:17

Re: Statistics : It makes me crazy

16 Nov 2010, 05:09

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>
 
deepblue
Topic Author
Posts: 8
Joined: 11 Nov 2010, 11:17

Re: Statistics : It makes me crazy

16 Nov 2010, 19:50

The end of story ...

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

:-)

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

Re: Statistics : It makes me crazy

18 Nov 2010, 04:53

So now stats deep-linking is working for you?
 
deepblue
Topic Author
Posts: 8
Joined: 11 Nov 2010, 11:17

Re: Statistics : It makes me crazy

18 Nov 2010, 05:23

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