Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Add google analytics code to editor [gitignored] #249

Open
sacdallago opened this issue Apr 15, 2016 · 0 comments
Open

Add google analytics code to editor [gitignored] #249

sacdallago opened this issue Apr 15, 2016 · 0 comments

Comments

@sacdallago
Copy link
Contributor

sacdallago commented Apr 15, 2016

Hey! I forgot to mention that it'd be nice to have analytics also for the map editor! So if you could put the ganalytics code somewhere it would be very nice!

You just need to add a script to the end of the index:

<script src="analytics.js"></script>

and .gitignore that file, that should look like:

(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', CODEHERE, 'auto');
  ga('send', 'pageview');
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant