Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

analytics-plugin-original-source

0.2.0 • 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.

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-plugin-original-source
import Analytics from 'analytics'
import originalSrc from 'analytics-plugin-original-source'
 
const analytics = Analytics({
  app: 'my-app',
  version: 100,
  debug: true,
  plugins: [
    originalSrc(),
  ]
})

Install

npm i analytics-plugin-original-source

DownloadsWeekly Downloads

32

Version

0.2.0

License

MIT

Unpacked Size

59.3 kB

Total Files

9

Last publish

Collaborators

  • avatar