Giter Site home page Giter Site logo

riveted's Introduction

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.

Implementation information is on the project page. This plugin is still in beta.

Background and more details can be found in this blog post.

Usage

// Basic
riveted.init();

// With some options
riveted.init({
  reportInterval: 10,
  idleTimeout: 20,
  nonInteraction: false
});

WordPress Plugin

Riveted is also available as a WordPress 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}}

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.

Changelog

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.

riveted's People

Contributors

robflaherty avatar

Watchers

Bogdan Tănase avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.