Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JSON.stringify(window.gaObj.getAll()[0],true,"\t")
- // in default implementation 'gaObj' should be replaced with 'ga'
- /*
- // Sample output:
- {
- "a": {
- "data": {
- "keys": [
- "_cd2l",
- "_dt",
- "_gclid",
- "_gclsrc",
- "_gcn",
- "_gid",
- "_gt",
- "_hc",
- "_j1",
- "_j2",
- "_oot",
- "_r",
- "_rlt",
- "_s",
- "_ti",
- "_ti",
- "_to",
- "_utma",
- "_utmht",
- "_utmz",
- "adSenseId",
- "allowAnchor",
- "allowLinker",
- "alwaysSendReferrer",
- "apiVersion",
- "buildHitTask",
- "ceTask",
- "checkProtocolTask",
- "checkStorageTask",
- "clientId",
- "clientIdTime",
- "clientVersion",
- "cookieDomain",
- "cookieDomain",
- "cookieExpires",
- "cookieName",
- "cookiePath",
- "cookieUpdate",
- "customTask",
- "devIdTask",
- "dimension1",
- "dimension10",
- "dimension2",
- "dimension8",
- "dimension9",
- "displayFeaturesTask",
- "encoding",
- "flashVersion",
- "historyImportTask",
- "hitCallback"
- "hitPayload",
- "hitType",
- "javaEnabled",
- "language",
- "legacyCookieDomain",
- "legacyHistoryImport",
- "location",
- "name",
- "page",
- "previewTask",
- "referrer",
- "sampleRate",
- "samplerTask",
- "screenColors",
- "screenResolution",
- "sendHitTask",
- "siteSpeedSampleRate",
- "storage",
- "storeGac",
- "storedClientId",
- "timingTask",
- "trackingId",
- "transportUrl",
- "usage",
- "useAmpClientId",
- "userId",
- "validationTask",
- "viewportSize",
- ],
- "values": {
- ":_gclid": "",
- ":_gclsrc": "",
- ":_gcn": "_gid",
- ":_gid": "19********2.15********5",
- ":_gt": 15********0,
- ":_hc": 1,
- ":_s": 1
- ":_ti": 15*********9,
- ":_to": 19,
- ":_utma": "10********1.20********8.15********5.15********0.15********0.1",
- ":_utmz": "10********1.15********0.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)",
- ":adSenseId": 14********8,
- ":apiVersion": 1,
- ":clientId": "20********8.15********5",
- ":clientVersion": "j72d",
- ":cookieDomain": "site.com",
- ":dimension10": "xxxxx",
- ":dimension8": "xxxxx",
- ":dimension9": "xxxxx<20******8.15*******5",
- ":encoding": "UTF-8",
- ":javaEnabled": false,
- ":language": "en-us",
- ":location": "https://site.com",
- ":name": "MyTrackerName", // tracker name
- ":screenColors": "24-bit",
- ":screenResolution": "1920x1080",
- ":storedClientId": "20*****8.15******5",
- ":trackingId": "UA-12345678-9",
- ":viewportSize": "1904x950",
- },
- "u": {},
- "debug": true
- }
- },
- "filters": {
- "m": [
- "_oot",
- "customTask",
- "previewTask",
- "checkProtocolTask",
- "validationTask",
- "checkStorageTask",
- "historyImportTask",
- "samplerTask",
- "_rlt",
- "ceTask",
- "devIdTask",
- "displayFeaturesTask",
- "buildHitTask",
- "_dt",
- "sendHitTask",
- "timingTask"
- ]
- },
- "L": true
- }
- */
Add Comment
Please, Sign In to add comment