Skip to content

Commit

Permalink
Fix GA tracking custom vars issue (first custom var was not being set…
Browse files Browse the repository at this point in the history
… since index must be 1-based not 0-based)

git-svn-id: https://share-extras.googlecode.com/svn/trunk/Google Analytics Tracking@693 a3f5c567-fd0f-3a89-9b71-a290c5a5f590
  • Loading branch information
wabson committed Oct 21, 2011
1 parent f5d9323 commit 92c6785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/web/extras/components/footer/google-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ var _gaq = _gaq || [];
for (var i = 0; i < this.options.customVars.length; i++)
{
customVar = this.options.customVars[i];
_gaq.push(['_setCustomVar', i, customVar.name, customVar.value, customVar.scope || 3]);
_gaq.push(['_setCustomVar', i + 1, customVar.name, customVar.value, customVar.scope || 3]);
}
// Is this a document details page?
if (ddMatch != null)
Expand Down

0 comments on commit 92c6785

Please sign in to comment.