Retrieve GA Custom Variable Values

adrianvender Jan 24th, 2012 161 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand