Skip to content

Commit

Permalink
Updating project page with plugin requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
robflaherty committed Apr 13, 2012
1 parent c2a132b commit 00c8bd9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.html
Expand Up @@ -36,7 +36,7 @@ <h1>jQuery Scroll Depth</h1>
<p>Data is sent to Google Analytics so it's required that you have Google Analytics tracking implemented on your site.</p>

<h2>Setting it up</h2>
<p>It's easy to set up. First, make sure you're using the Google Analytics <a href="http://code.google.com/apis/analytics/docs/tracking/asyncUsageGuide.html" target="_blank">asynchronous tracking code</a>. This is required; the plugin will not work with the old version of the tracking code. Then include <a href="http://jquery.com/" target="_blank">jQuery</a> and the plugin. After that you just have to initialize the plugin. It looks like this:</p>
<p>It's easy to set up. First, make sure you're using the Google Analytics <a href="http://code.google.com/apis/analytics/docs/tracking/asyncUsageGuide.html" target="_blank">asynchronous tracking code</a> (this is required; the plugin will not work with the old version of the tracking code). Then include <a href="http://jquery.com/" target="_blank">jQuery</a> (1.7+) and the plugin. After that you just have to initialize the plugin. It looks like this:</p>

<div class="highlight">
<pre>
Expand Down Expand Up @@ -78,6 +78,12 @@ <h2>Google Analytics Events and Bounce Rate</h2>

<p>Last October Google Analytics added an <code>opt_noninteraction</code> option to turn off this behavior (thanks to <a href="https://twitter.com/#!/justinph" target="_blank">@justinph</a> for the heads-up). The 0.1.1 release of this plugin now uses this option which means your bounce rate won't be affected. If you downloaded the first release and care about the displayed bounce rate, make sure to update to the latest version.</p>

<h2>Requirements</h2>
<ul>
<li>Google Analytics asynchronous tracking snippet</li>
<li>jQuery version 1.7+</li>
</ul>

<h2>Browser Support</h2>

<p>Tested in Chrome (18), Firefox (8), Safari (5), Opera (10), IE (7-10). Also tested on iOS, Opera Mobile, and a few Android emulators.</p>
Expand Down

0 comments on commit 00c8bd9

Please sign in to comment.