code4sac / wicit

A simple node/express app for finding locations that accept WIC in California, using data from the new California Department of Public Health open data portal.
http://findwic.com/
MIT License
19 stars 20 forks source link

Add Analytics #17

Closed jesserosato closed 10 years ago

jesserosato commented 10 years ago

Setup Google Analytics account for C4S and add script to WICit.

roughani commented 10 years ago

Not seeing where this should go in the repo, but I set-up the following tracking ID:

<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', 'UA-53902941-1', 'auto');
  ga('send', 'pageview');

</script>