datamade/google-analytics-lib

Name: google-analytics-lib

Owner: datamade

Description: Simple javascript file for adding Google Analytics to a site. Includes download, external link and email event tracking.

Created: 2016-04-19 16:30:12.0

Updated: 2016-04-19 16:30:13.0

Pushed: 2016-04-19 17:32:22.0

Homepage: null

Size: 13

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Google Analytics Library

Simple javascript file for adding Google Analytics to a site.

Features
Dependencies
Setup
  1. Create a Google Analytics account for your site (here's a good tutorial: https://support.google.com/analytics/answer/1008015?hl=en)
  2. Replace 'UA-xxxxxxxx-1' in analytics_lib.js with your Google Analytics tracking code
  3. Link to the file from your page
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/analytics_lib.js"></script>
Errors / Bugs

If something is not behaving intuitively, it is a bug, and should be reported. Report it here: https://github.com/datamade/google-analytics-lib/issues

Copyright

Copyright (c) 2016 Derek Eder of DataMade. Released under the MIT License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.