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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This library adds Facebook and Google analytics integrations to Lock.
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 release1.2.0
usehttps://cdn.auth0.com/js/analytics/1.2.0/analytics.min.js
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>