Search…

X3 Photo Gallery Support Forums

Search…
 
Bass Man 94
Topic Author
Posts: 9
Joined: 09 Oct 2012, 14:01

Web Analytics ???

14 Jun 2016, 08:33

Hello,

I'm french so sorry in advance for my bad english :)

I want to use Xiti analytics (it's like Google Analytics but it's french so more easy for me).

I must do paste this code on ALL my "x3 web site" PAGES :


<a href="http://www.xiti.com/xiti.asp?s=52156143" title="WebAnalytics" target="_top">
<script type="text/javascript">
<!--
Xt_param = 's=52156143&p=';
try {Xt_r = top.document.referrer;}
catch(e) {Xt_r = document.referrer; }
Xt_h = new Date();
Xt_i = '<img width="39" height="25" border="0" alt="" ';
Xt_i += 'src="http://logv2.xiti.com/hit.xiti?'+Xt_param;
Xt_i += '&hl='+Xt_h.getHours()+'x'+Xt_h.getMinutes()+'x'+Xt_h.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{Xt_s=screen;Xt_i+='&r='+Xt_s.width+'x'+Xt_s.height+'x'+Xt_s.pixelDepth+'x'+Xt_s.colorDepth;}
document.write(Xt_i+'&ref='+Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$')+'" title="Internet Audience">');
//-->
</script>
<noscript>
Mesure d'audience ROI statistique webanalytics par <img width="39" height="25" src="http://logv2.xiti.com/hit.xiti?s=52156143&p=" alt="WebAnalytics" />
</noscript></a>



I'm note sure where is it in the control panel.

Somebody could help me ?

Thanks :)
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14007
Joined: 30 Sep 2006, 03:37

Re: Web Analytics ???

14 Jun 2016, 09:26

Some of these statistics engines don't take into consideration modern html5/ajax apps like Imagevue X3, which don't load full pages. The method below should work, although it is not pretty:

Go to Settings -> Page -> Include -> Content Append, and paste your script.
Image
If they have ajax method in their documentation somewhere, it would be much better.
 
Bass Man 94
Topic Author
Posts: 9
Joined: 09 Oct 2012, 14:01

Re: Web Analytics ???

14 Jun 2016, 10:25

Thanks Karl,

I paste my code in Settings -> Page -> Include -> Content Append and my web site don't work :cry:

If you can take a look : http://www.pascalvicart.com/x3/

If you navigate in the menu (portofilio, art work, blog...), in first you have de Xiti logo. In second, if you reload the page, it's my website.

I don't know what apen and I don't see anythink in Ajax in there option. If it's not a good web analytics, I will try with google analytics...

Let me know please.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14007
Joined: 30 Sep 2006, 03:37

Re: Web Analytics ???

14 Jun 2016, 12:50

Can you tell me exactly what you pasted into the content? I see this in the TOP of content. It looks like its prepended instead of appended, unless the xiti javascript does this. It also looks like the xiti script is all INSIDE an <a> anchor tags ... Not sure if it's xiti that does this also, but it's not right:
Code
<a href="http://www.xiti.com/xiti.asp?s=573021" title="WebAnalytics" target="_top"><script type="text/javascript"><!--
Xt_param = 's=573021&p=home';
try {Xt_r = top.document.referrer;}
catch(e) {Xt_r = document.referrer; }
Xt_h = new Date();
Xt_i = '<img width="39" height="25" border="0" alt="" ';
Xt_i += 'src="http://logv2.xiti.com/hit.xiti?'+Xt_param;
Xt_i += '&hl='+Xt_h.getHours()+'x'+Xt_h.getMinutes()+'x'+Xt_h.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{Xt_s=screen;Xt_i+='&r='+Xt_s.width+'x'+Xt_s.height+'x'+Xt_s.pixelDepth+'x'+Xt_s.colorDepth;}
document.write(Xt_i+'&ref='+Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$')+'" title="Internet Audience">');
//--></script><noscript>
Mesure d'audience ROI statistique webanalytics par <img width="39" height="25" src="http://logv2.xiti.com/hit.xiti?s=573021&p=home" alt="WebAnalytics" /></noscript></a>
You could try to add to settings -> custom -> custom javascript instead (without <script> tags), but since X3 is a dynamic ajax website, the stats will only trigger for the first page the visitor visits. Why not use Analytics instead, where support is built-in to X3? Surely they have French language support ... Although the interface contains too much, it is not too difficult to find the statistics you are interested in.
 
Bass Man 94
Topic Author
Posts: 9
Joined: 09 Oct 2012, 14:01

Re: Web Analytics ???

15 Jun 2016, 04:40

Hello,

I am a photographer and not a webmaster loool. I don't understand anything in script or code...

So, I open an account to Google Analytics.

I have an ID : UA-79xxxxxx-1

And a script :

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-79xxxxxx-1', 'auto');
ga('send', 'pageview');

</script>


I past this scrip in "Settings -> Page -> Include -> Content Append" and this ID in "Settings -> Accounts".

Should I do something else?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14007
Joined: 30 Sep 2006, 03:37

Re: Web Analytics ???

15 Jun 2016, 07:45

Bass Man 94 wrote:Should I do something else?
Yes ... Just paste your analytics ID into the field. X3 does the rest automatically!
Image
 
Bass Man 94
Topic Author
Posts: 9
Joined: 09 Oct 2012, 14:01

Re: Web Analytics ???

15 Jun 2016, 12:19

Ok, I already past my ID UA-79xxxxxxx-1 into "Google Analytics".

Should I do past this script into "Settings -> Page -> Include -> Content Append" or it's not necessary ? :

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-79xxxxxx-1', 'auto');
ga('send', 'pageview');
</script>
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14007
Joined: 30 Sep 2006, 03:37

Re: Web Analytics ???

15 Jun 2016, 18:04

Bass Man 94 wrote:Ok, I already past my ID UA-79xxxxxxx-1 into "Google Analytics".
Yep. I assume the xxxx items are replaced with your real ID?
Bass Man 94 wrote:Should I do past this script into "Settings -> Page -> Include -> Content Append" or it's not necessary ? :
NOT NECESSARY

I suggest you login to your analytics interface, and surf the website from another browser tab/window, and you should see a visitor in "Real-Time".
 
Bass Man 94
Topic Author
Posts: 9
Joined: 09 Oct 2012, 14:01

Re: Web Analytics ???

16 Jun 2016, 12:25

Yep. I assume the xxxx items are replaced with your real ID?
--> Yes :)

NOT NECESSARY
--> OK :)

I suggest you login to your analytics interface, and surf the website from another browser tab/window, and you should see a visitor in "Real-Time".
--> In France, with Analytics "free" I can't do that. I must wait 24 hours too refresh the statistics...

Thanks for your help.