SHARE
TWEET

Untitled

a guest Aug 20th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var dimensionValue = 'SOME_DIMENSION_VALUE';
  2. ga('set', 'dimension1', dimensionValue);
  3.      
  4. ga(function(tracker) {
  5.   var clientId = tracker.get('clientId');
  6. });
  7.      
  8. ga(function(tracker) {
  9.   var clientId = tracker.get('clientId');
  10. });
  11. ga('set', 'dimension1', clientId);
  12.      
  13. var clientId = ga.getAll()[0].get('clientId');
  14. ga('set', 'dimension1', clientId);
  15.      
  16. ga(function(tracker) {
  17.   var clientId = tracker.get('clientId');
  18.   ga('set', 'dimension1', clientId);
  19.   ga('send', 'pageview');
  20. });
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
 
Top