Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Google Analytics Script #38

Open
gonzalezsieira opened this issue Sep 1, 2014 · 2 comments
Open

Update Google Analytics Script #38

gonzalezsieira opened this issue Sep 1, 2014 · 2 comments

Comments

@gonzalezsieira
Copy link

The script given by Google Analytics to put in the webpaches has changed, now it is given in the following way:

<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', 'PUT-HERE-YOUR-GOOGLE-ANALYTICS-ID', 'auto');
  ga('send', 'pageview');

</script>

The auto-generated by the label <googleAnalyticsAccountId> is different, maybe from previous versions of Google Analytics. Please update the decorator to avoid compatibility problems with newer versions of Analytics.

@andriusvelykis
Copy link
Owner

Thanks for reporting. Unfortunately, I don't have any time to spend on this in the immediate future - I am busy writing up my PhD thesis.

I will look into it (and update) later. I think as a workaround you can add the correct version of your script directly as HTML, right?

@gonzalezsieira
Copy link
Author

Yes, that's right. But don't worry, the main features of Analytics work even with the old script. I think it is only needed to activate the new "Universal Analytics" which is being introduced recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants