Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.gitignore
README.md
index.html
package.json

README.md

Using Analytics with HTML

Demo

Usage

<!-- Include from CDN -->
<script src="https://unpkg.com/analytics/dist/analytics.min.js"></script>
<!-- Include plugins -->
<script src="https://unpkg.com/analytics-plugin-ga/dist/analytics-plugin-ga.min.js"></script>

<script type="text/javascript">
  /* Initialize analytics */
  var Analytics = _analytics.init({
    app: 'analytics-html-demo',
    debug: true,
    version: 100,
    plugins: [
      analyticsGA({
        trackingId: 'UA-126647663-3'
      })
      // ... add other plugins
    ]
  })

  /* Then use */
  Analytics.page()
You can’t perform that action at this time.