Google Analytics and recent YACS version [Intégré]
Is it working?
| Propriétaire | Boen, Jan |
| Avancement | ![]() |
| Workflow | Besoin d'aide |
| Statut | La 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">
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 |
Thanks, Jan
| Bernard Paques | |
![]() Boen, Jan | Just made the change. Let's see if I get any info into GA.
|
| Bernard Paques | |
Bernard Paques | 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 |












