From 92c6785493f5a3d667802b033aff3de171f0d5fc Mon Sep 17 00:00:00 2001 From: Will Abson Date: Fri, 21 Oct 2011 11:53:42 +0000 Subject: [PATCH] Fix GA tracking custom vars issue (first custom var was not being set 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 --- source/web/extras/components/footer/google-tracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/web/extras/components/footer/google-tracker.js b/source/web/extras/components/footer/google-tracker.js index 12fabff..ff63495 100644 --- a/source/web/extras/components/footer/google-tracker.js +++ b/source/web/extras/components/footer/google-tracker.js @@ -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)