auth0-analytics

    1.3.1 • Public • Published

    Build status License

    Auth0 Analytics (Web)

    This library adds Facebook and Google analytics integrations to Lock.

    Usage

    <script src="https://cdn.auth0.com/js/lock/11.0.0/lock.min.js"></script>
    <script 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.

    <script>
      window.auth0AnalyticsOptions = {
        'facebook-analytics': {
          id: 'YOUR_FACEBOOK_APP_ID'
        }
      }
    </script> 

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

    <script>
      window.auth0AnalyticsOptions = {
        'facebook-analytics': {
          preloaded: true
        }
      }
    </script> 

    Keywords

    none

    Install

    npm i auth0-analytics

    DownloadsWeekly Downloads

    2

    Version

    1.3.1

    License

    MIT

    Last publish

    Collaborators

    • charlesrea
    • julien.wollscheid
    • auth0-oss
    • texeira
    • codepete
    • ziluvatar
    • iaco
    • cocojoe
    • fyockm
    • auth0npm
    • auth0alec
    • auth0brokkr
    • hzalaz
    • glena
    • aaguiarz
    • machuga
    • lbalmaceda
    • jstrutz
    • cristiandouce
    • heyitsry
    • sambego
    • stevehobbsdev
    • bmaxwella0
    • davidmoses
    • sandrinodimattia
    • lzychowski
    • joshcanhelp
    • rob.coles
    • faroceann
    • rosnovsky
    • davidpatrick0
    • widcket
    • adamjmcgrath
    • ldoorz
    • th3maio
    • jim.andersoon
    • fadymak
    • navrupt
    • frederikprijck
    • sergii.biienko
    • tomauth0
    • jakewlacey
    • jpadilla
    • gaj.gulati
    • jessele
    • shushen
    • rhamzeh_auth0
    • greglopez