[Isis-users] Including Google analytics in Winisis

nahed el shazly elshazlyna at gmail.com
Mon Jun 29 14:39:42 CEST 2015


Dear Sirs,

I was trying to include the following Google analytics code before the
</head> tag one of the pfts which yields the results and it seems that it
creates a conflict with the script within the file so no results are
displayed.  Could you please advise where to add this tag and all the
necessary tags needed to run it smoothly.

<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','//www.google-analytics.com/analytics.js
','ga');

  ga('create', 'XXXXXXXX-2', 'auto');
  ga('send', 'pageview');

</script>

When I tried to add the code to an external javascript file and refer to it
from the pft, I received the following

WXIS|compiler error|invalid
identifier|(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i|

Looking forward for your feedback.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20150629/8eae99ba/attachment.html>


More information about the isis-users mailing list