Giter Site home page Giter Site logo

google-analytics-page-read-amount's Introduction

Google Analytics Event Trigger For How Far Down A Page A User Has Read

A script that adds events to Google Analytics to show how far down the page a user has read.

To use:

Add <script type="text/javascript" src="pagereadamount.js"></script> to the bottom of your page, just before the closing </body> tag.

This script works for sites using the older analytics.js setup for Google Analytics but I haven't tried it with the newer Google Tag Manager script.

To read my blog post about how it works go to my blog post on the topic

To find the event information on Google Analytics:

You can find Events on the Google Analytics by starting from the reports page (the default view of your site information) then go to Behavior > Events > Top Events where you'll see the events listed. If you leave this script as-is, you will see Blog Posts listed. If you click on that you will see the "Event Action" User Read listed. Clicking on that will take you to the listing of the percentage amounts.

To change the event information:

Currently it will fire an event category of Blog Posts and the action is User Read then broken out into the different lengths down the page. If you want it to show up differently, change Blog Posts and User Read to whatever you choose.

google-analytics-page-read-amount's People

Contributors

rlahoda avatar

Watchers

James Cloos avatar  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.