auth0/auth0-analytics.js

Name: auth0-analytics.js

Owner: Auth0

Description: Auth0 Analytics (Web)

Created: 2017-05-12 17:51:32.0

Updated: 2018-05-09 19:15:02.0

Pushed: 2018-03-16 17:33:59.0

Homepage: https://auth0.com/docs/analytics/integrations

Size: 150

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build status License

Auth0 Analytics (Web)

This library adds Facebook and Google analytics integrations to Lock.

Usage
ipt src="https://cdn.auth0.com/js/lock/11.0.0/lock.min.js"></script>
ipt src="https://cdn.auth0.com/js/analytics/X.Y.Z/analytics.min.js"></script>

Notice: The script version above uses a placeholder version X.Y.Z. In order to determine the latest release view the releases. For example, to reference release 1.2.0 use https://cdn.auth0.com/js/analytics/1.2.0/analytics.min.js

Optional Configuration

If you want to disable either the Facbeook or Google Analytics integrations you can do so with the optional configuration.

Note: This must be placed on the page before the analytics script is loaded.

ipt>
ndow.auth0AnalyticsOptions = {
'facebook-analytics': {
  id: 'YOUR_FACEBOOK_APP_ID'
}

ript>

If you already have the Facebook JS SDK on your page you can set the script to use that.

ipt>
ndow.auth0AnalyticsOptions = {
'facebook-analytics': {
  preloaded: true
}

ript>

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.