Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amplitude/plugin-web-attribution-browser

Package Overview
Dependencies
Maintainers
19
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/plugin-web-attribution-browser

  • 0.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
187K
increased by3.07%
Maintainers
19
Weekly downloads
 
Created

What is @amplitude/plugin-web-attribution-browser?

@amplitude/plugin-web-attribution-browser is a plugin for Amplitude's analytics platform that helps in tracking and attributing web traffic. It allows you to understand the source of your web traffic, track user interactions, and attribute conversions to specific marketing campaigns or channels.

What are @amplitude/plugin-web-attribution-browser's main functionalities?

Initialize Web Attribution

This feature initializes the web attribution plugin with Amplitude's analytics. It sets up the necessary configurations to start tracking web traffic and attributing it to specific sources.

const amplitude = require('@amplitude/analytics-browser');
const { webAttributionPlugin } = require('@amplitude/plugin-web-attribution-browser');

amplitude.init('YOUR_API_KEY');
amplitude.add(webAttributionPlugin());

Track Page Views

This feature allows you to track page views on your website. By sending a 'Page View' event with the current page's pathname, you can monitor which pages are being visited by users.

amplitude.track('Page View', { page: window.location.pathname });

Attribute Conversions

This feature enables you to attribute conversions to specific campaigns and sources. By sending a 'Conversion' event with details about the campaign and source, you can measure the effectiveness of your marketing efforts.

amplitude.track('Conversion', { campaign: 'Summer Sale', source: 'Google Ads' });

Other packages similar to @amplitude/plugin-web-attribution-browser

FAQs

Package last updated on 28 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc