1.0.9 • Published 2 months ago

@analytics/original-source-plugin v1.0.9

Weekly downloads
70
License
MIT
Repository
github
Last release
2 months ago

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.

1.0.9

2 months ago

1.0.8

4 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

6 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

9 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.3.12

10 months ago

0.3.10

10 months ago

0.3.9

10 months ago

0.3.8

10 months ago

0.3.7

10 months ago

0.3.6

10 months ago

0.3.5

10 months ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.6

1 year ago