google_analytics_module
v1.0.5
Published
Google analytics module for node webapps
Downloads
3
Readme
#To use:
- import google_tracker from '@avoxi/google_analytics';
- 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: