Skip to content

Commit 0d4d1ab

Browse files
committed
Read me update. Version update. Minified update
1 parent 6ef553a commit 0d4d1ab

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

jquery.scrolldepth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jquery.scrolldepth.js | v0.3
2+
* jquery.scrolldepth.js | v0.4
33
* Copyright (c) 2013 Rob Flaherty (@robflaherty)
44
* Licensed under the MIT and GPL licenses.
55
*/

jquery.scrolldepth.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ In addition to the percentage scroll marks, you can record when specific element
55

66
Timing data for each scroll event is reported to Google Analytics via the [User Timing API](https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingTiming). You can find this data in Google Analytics at Content > Site Speed > User Timings. This will give you data about how many seconds it takes users to reach each scroll point. (Note: Averages can be misleading. Make sure to dig through the GA UI to dig up more meaningful data. You may also want to [increase the sample rate](https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiBasicConfiguration#_gat.GA_Tracker_._setSiteSpeedSampleRate) from the default 5% to 100%.)
77

8-
The plugin supports both [Universal Analytics](https://support.google.com/analytics/answer/2790010?hl=en&ref_topic=2790009) and Classic Google Analytics.
8+
The plugin supports [Universal Analytics](https://support.google.com/analytics/answer/2790010?hl=en&ref_topic=2790009), Classic Google Analytics, and Google Tag Manager.
99

1010
[View the Project Page](http://parsnip.io/scroll-depth/)
1111

@@ -23,8 +23,20 @@ $.scrollDepth({
2323
percentage: false, // Don't track depth percentage | Default: true
2424
});
2525
```
26+
27+
## Google Tag Manager
28+
Here's the dataLayer variable information you'll need to integrate with GTM:
29+
30+
* Scroll Distance Event Name = ScrollDistance
31+
* Scroll Timing Event Name = ScrollTiming
32+
* Event Category = {{eventCategory}}
33+
* Event Action = {{eventAction}}
34+
* Event Label = {{eventLabel}}
35+
* Event Value = {{eventValue}}
36+
* Event Non-Interaction = {{eventNonInteraction}}
37+
2638
## Requirements
27-
* Google Analytics asynchronous tracking snippet
39+
* Google Analytics
2840
* jQuery 1.7+
2941

3042
## Browser Support
@@ -35,6 +47,8 @@ If you have any questions please leave a comment on the [associated blog post](h
3547

3648
## Changelog
3749

50+
0.4 (12/23/13): Added support for Google Tag Manager
51+
3852
0.3 (11/21/13): Added throttling of scroll event callback for better performance.
3953

4054
0.2 (11/19/13): Added support for Universal Analytics.

0 commit comments

Comments
 (0)