Skip to main content Help Control Panel

 

English «   Need Help «  

Google Analytics and recent YACS version [Integrated]

Boen, Jan -- on Nov. 7 2011

Is it working?

OwnerBoen, Jan
Progress100%
WorkflowSupport request
StatusSolution has been fully integrated

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
on Nov. 16 2011
La solution a été intégrée

Boen, Jan
on Nov. 12 2011

Just made the change.

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

 

Bernard Paques - on Nov. 13 2011

Jan, let me know how it goes, thanks.


Bernard Paques
on Nov. 11 2011
Une solution est disponible

Bernard Paques
on Nov. 11 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
on Nov. 7 2011
Page has been created