This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

Retrieve GA Custom Variable Values

By: adrianvender on Jan 24th, 2012  |  syntax: JavaScript  |  size: 0.21 KB  |  views: 128  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. });
clone this paste RAW Paste Data