https://github.com/robflaherty/riveted
Google Analytics plugin to track active/engaged time on page
https://github.com/robflaherty/riveted
Last synced: over 1 year ago
JSON representation
Google Analytics plugin to track active/engaged time on page
- Host: GitHub
- URL: https://github.com/robflaherty/riveted
- Owner: robflaherty
- Created: 2014-02-04T05:07:47.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T12:16:08.000Z (about 6 years ago)
- Last Synced: 2024-05-30T02:02:28.778Z (about 2 years ago)
- Language: JavaScript
- Homepage: https://riveted.parsnip.io/
- Size: 168 KB
- Stars: 231
- Watchers: 13
- Forks: 49
- Open Issues: 13
-
Metadata Files:
- Readme: readme.md
- Contributing: contributing.md
Awesome Lists containing this project
README
# Riveted
Riveted is a Google Analytics plugin that tracks how much time users spend actively engaged on a page.
It has no dependencies and supports Universal Analytics, Classic Google Analytics, and Google Tag Manager.
All instructions and information can be found on the [project page](https://riveted.parsnip.io/).
There's also a blog post with information on [how to use the Google Analytics data that Riveted provides](https://medium.com/google-analytics/84d9981920da).
## WordPress Plugin
Riveted is also available as a [WordPress plugin](http://wordpress.org/plugins/riveted/). Note that some of the more recent Riveted options are not available in the WP plugin.
1. Upload the `wp-plugin/riveted` directory into the `/wp-content/plugins/` directory on your server.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. If you'd like to modify the default settings, go to the Riveted panel under Settings.
## Google Tag Manager
If you'd like to integrate with Google Tag Manager, here are the dataLayer variable names:
* Riveted Event Name = Riveted
* Event Category = {{eventCategory}}
* Event Action = {{eventAction}}
* Event Label = {{eventLabel}}
* Event Value = {{eventValue}}
* Event Non-Interaction = {{eventNonInteraction}}
* User Timing Event Name = RivetedTiming
* Timing Variable = {{timingVar}}
* Timing Value = {{timingValue}}
## Other Integrations
You can install Riveted as a [Drupal module](https://www.drupal.org/project/riveted).
## Browser Support
Tested in latest versions of Chrome, Firefox, Safari, and Opera. Internet Explorer 8-11. iOS and Android.
## Contact
If you have any questions you can find me on Twitter at [@robflaherty](https://twitter.com/robflaherty).
## Changelog
0.6.1 (4/28/16): Added Universal Module Definition (UMD) support.
0.6.0 (6/12/15): Added reset method and option for custom GA tracker.
0.5.0 (4/14/15): Option for custom GA global name. Fixes problem with Yoast WP plugin.
0.4.0 (7/19/14): https://github.com/robflaherty/riveted/issues/10
0.3.2 (6/26/14): Fixed Google Tag Manager label.
0.3.1 (6/4/14): Fixed IE8 bug.
0.3 (2/17/14): Added WordPress plugin.
0.2.1 (2/13/14): Fixed Non-Interaction option.
0.2 (2/13/14): Fixed GTM double firing.
0.1 (2/9/14): Initial release.
## License
Licensed under the MIT license.