Aller au contenu principal Aide Panneau de contrôle

 

English «   Need Help «  

Google Analytics and recent YACS version [Intégré]

Boen, Jan -- le 7 nov. 2011

Is it working?

PropriétaireBoen, Jan
Avancement100%
WorkflowBesoin d'aide
StatutLa solution a été intégrée

Are you sure you have the up to date GA code integrated into YACS?

I've got it configured on one of my web sites but get zero info into GA.

If I check the code Google presents against what is present it looks pretty different:

Offical Google code:

<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> What Yacs uses: <script type="text/javascript">
//<![CDATA[
try {
var pageTracker = _gat._getTracker(UA-25556532-1);
pageTracker._trackPageview();
} catch(err) {}
// ]]>
</script>
 
My Yacs:

System overview

YACS 11.6.10.martin.stable, 110610-22:16:00 GMT, localhost
PHP 5.2.17
MySQL 5.0.91mm-log
Server time zone UTC -6 hours
Memory 8161292
 
Your support would be highly welcome
 

Thanks, Jan

Bernard Paques
le 16 nov. 2011
La solution a été intégrée

Boen, Jan
le 12 nov. 2011

Just made the change.

Let's see if I get any info into GA.

 

Bernard Paques - le 13 nov. 2011

Jan, let me know how it goes, thanks.

Boen, Jan - le 14 nov. 2011

Bernard Paques:Works!


Bernard Paques - le 16 nov. 2011

Jan: That's good news, thanks for your feed-back.

Bernard Paques
le 11 nov. 2011
Une solution est disponible

Bernard Paques
le 11 nov. 2011

Hello Jan, no, I'm not sure that the latest GA code is in the core of yacs. One workaround is to remove the configuration of Google Analytics in the configuration panel for Web services, and then to go to the configuration panel for the Page factory, and to paste all the Javascript code, including the id of your GA account, in the field named Trailer. Tell me how is goes!

Boen, Jan
le 7 nov. 2011
Page has been created