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

google_analytics_module

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google_analytics_module

Google analytics module for node webapps

  • 1.0.5
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#To use:

  1. import google_tracker from '@avoxi/google_analytics';
  2. Then on page change (onEnter event for React-Router works great), call EITHER: -google_tracker(); (records current page) -google_tracker('/fake_path'); (records '/fake_path' as the current page)

#Original rtf from Google/Caitlin ##Website tracking ###This is the Universal Analytics tracking code for this property.
To get all the benefits of Universal Analytics for this property, copy and paste this code into every webpage you want to track.

PHP Implementation OPTIONAL

•	Use the code above to create a file named "analyticstracking.php", and include the file on each PHP template page.
•	Add the following line to each template page immediately after the opening <body> tag:

FAQs

Package last updated on 05 Feb 2018

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