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

Add google analytics code to editor [gitignored] #249

@sacdallago

Description

@sacdallago

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');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions