New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

analytics-plugin-google-tag-manager

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

analytics-plugin-google-tag-manager

Google tag manager plugin for 'analytics' pkg

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
97
increased by25.97%
Maintainers
1
Weekly downloads
 
Created
Source

Google analytics plugin for analytics

Integration with google tag manager for analytics

Install

npm install analytics-plugin-google-tag-manager --save

Usage

import Analytics from 'analytics'
import googleTagManager from 'analytics-plugin-google-tag-manager'

const analytics = Analytics({
  app: 'awesome-app',
  version: 100,
  plugins: [
    googleTagManager({
      containerId: 'Your-containerId'
    })
  ]
})

Setup

Make sure you have your google tags manager setup to fire on Page views.

If you are using a SPA you want to listen to history changes as well.

image

See the full list of analytics provider plugins in the main repo.

Keywords

FAQs

Package last updated on 03 May 2019

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