Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Chris Beardsley
Added: Jan 30, 2019 8:46 AM
Views: 17
Tags: no tags
  1. var cookieDomains = [];
  2. var trackers = ga.getAll();
  3. for(var i=0; i < trackers.length; i++) {
  4. cookieDomains.push(trackers[i].get('cookieDomain'));
  5. }
  6. console.log(cookieDomains);