SHARE
TWEET

Retrieve GA Custom Variable Values

adrianvender Jan 24th, 2012 132 Never
  1. _gaq.push(function() {
  2.   var pageTracker = _gat._getTrackerByName(); // Gets the default tracker.
  3.   var GAWCampaign = pageTracker._getVisitorCustomVar(1);
  4.   var GAWTerm = pageTracker._getVisitorCustomVar(2);
  5. });
RAW Paste Data
Top