Nitro Powered Motorcycles

    @analytics/original-source-plugin

    1.0.9 • Public • Published

    Analytics Original Source Plugin

    Track the initial traffic source of visitors to your site.

    This plugin will save the original __user_original_source & __user_original_landing_page to localStorage and on the user properties in the sessions context.

    Example:

    __user_original_source = "source=(direct)|medium=(none)|campaign=(not set)"
    __user_original_landing_page = "https://www.site.com/landing-page"
    

    This data is handy when assigning attribution metrics.

    Usage

    npm install analytics
    npm install @analytics/original-source-plugin
    import Analytics from 'analytics'
    import { originalSourcePlugin } from '@analytics/original-source-plugin'
    
    const analytics = Analytics({
      app: 'my-app',
      version: 100,
      debug: true,
      plugins: [
        originalSourcePlugin(),
      ]
    })

    Replaces deprecated analytics-plugin-original-source package.

    Install

    npm i @analytics/original-source-plugin

    DownloadsWeekly Downloads

    138

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    166 kB

    Total Files

    24

    Last publish

    Collaborators

    • davidwells