(Auto) GTM Implementation - 65691_71466
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
View only
 
 
ABCDEFGHIJ
1
accountIdcontainerIdtagIdnametypefiringTriggerIdliveOnlyparameterfingerprinttagFiringOption
2
65691714661blog UAhtml2147479553FALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\n\n function guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n}\n \n // Simple pseudo-random user id - 27 possible values\n var customUserId = guid(); // e.g. abc-123-rst\n\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n ga('create', 'UA-24046704-1', 'statsravingmad.com' , {'siteSpeedSampleRate': 100 , 'userId': customUserId});\n ga('require', 'linkid', 'linkid.js');\n ga('require', 'displayfeatures');\n ga(function(tracker) {\n// Grab a reference to the default sendHitTask function.\n var originalSendHitTask = tracker.get('sendHitTask');\n\n // Modifies sendHitTask to send a copy of the request to a local server after\n // sending the normal request to www.google-analytics.com/collect.\n tracker.set('sendHitTask', function(model) {\n originalSendHitTask(model);\n var xhr = new XMLHttpRequest();\n xhr.open('POST', 'http://statsravingmad.com/collect', true);\n xhr.send(model.get('hitPayload'));\n });\n\n var rid = tracker.get('clientId');\n ga('set', 'dimension6', rid);\n });\n\nga('set', 'dimension1', customUserId); // Set a `customUserId` dimension at page level\nga('set', 'dimension4', window.innerHeight > window.innerWidth ? 'Portrait' : 'Landscape');\nga('send', 'pageview');\n dataLayer.push({\"event\":\"trackingLoaded\"}); \n</script>",
"false"))
1444584350764oncePerEvent
3
65691714663Track Pageshtml1FALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\n if((Math.max(document.documentElement.clientWidth, window.innerWidth || 0))>=992)\n // We do not want to send an interactive event\n ga('send','Responsive Tracking','Went Responsive',' ',true);\n else\n ga('send','Responsive Tracking','Went Desktop',' ',true); \n</script>", "false"))
1444583524512oncePerEvent
4
65691714664Form TrackinghtmlNULLFALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\n(function($) {\n$(document).ready(function() { \n\t$(':input').blur(function () {\n\t\tif($(this).val().length > 0) {\n\t\t\t_gaq.push(['_trackEvent', 'contact-form-1231', 'completed', $(this).attr('name')]);\n\t\t\tga('send', 'event', 'contact-form-1231', 'completed', $(this).attr('name'));\n\t\t} \n\t\telse {\n\t\t\t_gaq.push(['_trackEvent', 'contact-form-1231', 'skipped', $(this).attr('name')]);\n\t\t\tga('send', 'event', 'contact-form-1231', 'skipped', $(this).attr('name'));\n\t\t}\n\t});\n});\n})(jQuery);\t\n</script>",
"false"))
1381067286773NA
5
65691714665Track JS Exceptionshtml1FALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\nif (typeof window.onerror == \"object\")\n{\n window.onerror = function (err, url, line)\n {\n ga('send', 'exception', {\n 'exDescription': line + \" \" + err\n });\n };\n}\n</script>", "false"))
1420795225482NA
6
65691714666Eventua5FALSE
list(type = c("template", "boolean", "boolean", "list", "template", "template", "boolean", "template", "template", "list", "boolean", "template"), key = c("nonInteraction", "doubleClick", "useDebugVersion", "fieldsToSet", "eventCategory", "trackType", "enableLinkId", "eventAction", "eventLabel", "dimension", "enableEcommerce", "trackingId"), value = c("{{Non-interaction}}", "true", "false", NA, "{{Event category}}", "TRACK_EVENT", "false", "{{Event action}}", "{{Event label}}", NA, "false", "UA-24046704-1"
), list = list(NULL, NULL, NULL, list(type = "map", map = list(list(type = c("template", "template"), key = c("fieldName", "value"), value = c("anonymizeIp", "false")))), NULL, NULL, NULL, NULL, NULL, list(type = c("map", "map"), map = list(list(type = c("template", "template"), key = c("index", "dimension"), value = c("3", "{{Hit Timestamp Local Time With Offset}}")), list(type = c("template", "template"), key = c("index", "dimension"), value = c("5", "{{Session ID}}")))), NULL, NULL))
1429619730192NA
7
65691714668Track Postshtml3FALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\njQuery(function($) {\n // Debug flag\n var debugMode = false;\n\n // Default time delay before checking location\n var callBackTime = 100;\n\n // # px before tracking a reader\n var readerLocation = 150;\n\n // Set some flags for tracking & execution\n var timer = 0;\n var scroller = false;\n var endContent = false;\n var halfContent = false;\n var didComplete = false;\n\n // Set some time variables to calculate reading time\n var startTime = new Date();\n var beginning = startTime.getTime();\n var totalTime = 0;\n\n // Track the aticle load\n if (!debugMode) {\n ga('send', {\n hitType: 'event', \n eventCategory: 'Reading', \n eventAction: 'ArticleLoaded',\n nonInteraction: 1\n });\n \n }\n\n // Check the location and track user\n function trackLocation() {\n bottom = $(window).height() + $(window).scrollTop();\n height = $(document).height();\n\n // If user starts to scroll send an event\n if (bottom > readerLocation && !scroller) {\n currentTime = new Date();\n scrollStart = currentTime.getTime();\n timeToScroll = Math.round((scrollStart - beginning) / 1000);\n if (!debugMode) {\n \n ga('send', {\n hitType: 'event', \n eventCategory: 'Reading', \n eventAction: 'StartReading',\n eventValue: timeToScroll\n });\n } else {\n alert('started reading ' + timeToScroll);\n }\n scroller = true;\n }\n\n\n // If user has hit the bottom of the content send an event\n if (bottom >= ($('.entry-content').scrollTop() + $('.entry-content').innerHeight())/2 && !halfContent) {\n currentTime = new Date();\n contentScrollEnd = currentTime.getTime();\n timeToContentEnd = Math.round((contentScrollEnd - scrollStart) / 1000);\n if (!debugMode) {\n ga('send', {\n hitType: 'event', \n eventCategory: 'Reading', \n eventAction: 'HalfContent',\n eventValue: timeToContentEnd\n });\n } else {\n alert('half content section '+timeToContentEnd);\n }\n halfContent = true;\n }\n \n // If user has hit the bottom of the content send an event\n if (bottom >= $('.entry-content').scrollTop() + $('.entry-content').innerHeight() && !endContent) {\n currentTime = new Date();\n contentScrollEnd = currentTime.getTime();\n timeToContentEnd = Math.round((contentScrollEnd - scrollStart) / 1000);\n if (!debugMode) {\n if (timeToContentEnd < 600) {\n ga('set', 'dimension2', 'Scanner');//set the dimension id defined in Google Analytics\n } else {\n ga('set', 'dimension2', 'Reader');//set the dimension id defined in Google Analytics\n }\n \n ga('send', {\n hitType: 'event', \n eventCategory: 'Reading', \n eventAction: 'ContentBottom',\n eventValue: timeToContentEnd,\n metric1: timeToContentEnd //set the metric id defined in Google Analytics\n });\n } else {\n alert('end content section '+timeToContentEnd);\n }\n endContent = true;\n }\n\n // If user has hit the bottom of page send an event\n if (bottom >= (height-500) && !didComplete) {\n currentTime = new Date();\n end = currentTime.getTime();\n totalTime = Math.round((end - scrollStart) / 1000);\n if (!debugMode) {\n ga('send', {\n hitType: 'event', \n eventCategory: 'Reading', \n eventAction: 'PageBottom',\n eventValue: totalTime\n });\n } else {\n alert('bottom of page '+totalTime);\n }\n didComplete = true;\n }\n }\n\n // Track the scrolling and track location\n $(window).scroll(function() {\n if (timer) {\n clearTimeout(timer);\n }\n\n // Use a buffer so we don't call trackLocation too often.\n timer = setTimeout(trackLocation, callBackTime);\n });\n});\n dataLayer.push({\"event\":\"trackingLoaded\"}); \n</script>",
"false"))
1378995279422NA
8
65691714669Performance eventshtml6FALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\nvar perfData=window.performance.timing;\nvar redirectCount=window.performance.navigation.redirectCount;\nvar pageLoadTime=perfData.domComplete-perfData.navigationStart;\nvar loadTime=\"\";\n\nif (pageLoadTime <1000) {loadTime = \"0-1 sec\";}\nelse if (pageLoadTime < 2000) {loadTime = \"1-2 sec\";}\nelse if (pageLoadTime < 3000) {loadTime = \"2-3 sec\";}\nelse if (pageLoadTime < 4000) {loadTime = \"3-4 sec\";}\nelse if (pageLoadTime < 5000) {loadTime = \"4-5 sec\";}\nelse if (pageLoadTime < 6000) {loadTime = \"5-6 sec\";}\nelse if (pageLoadTime < 7000) {loadTime = \"6-7 sec\";}\nelse if (pageLoadTime < 8000) {loadTime = \"7-8 sec\";}\nelse if (pageLoadTime < 9000) {loadTime = \"8-9 sec\";}\nelse if (pageLoadTime < 10000) {loadTime = \"9-10 sec\";}\nelse if (pageLoadTime < 11000) {loadTime = \"10-11 sec\";}\nelse {loadTime = \"11+ sec\";}\n\nvar pageLoadTime=pageLoadTime/1000;\n\ndataLayer.push({'event':'GAevent','eventCategory':'Performance Data','eventAction': 'Page Load', 'eventLabel': loadTime,'eventValue': pageLoadTime,'nonInteraction':'1'});\ndataLayer.push({'event':'GAevent','eventCategory':'Performance Data','eventAction': 'Redirections', 'eventLabel':'Redirections','eventValue':redirectCount,'nonInteraction':'1'});\n\n</script>",
"false"))
1380881310712NA
9
656917146610blog GATCgaNULLFALSE
list(type = c("boolean", "boolean", "boolean", "template", "boolean", "boolean", "boolean", "boolean", "boolean", "integer", "boolean", "template"), key = c("detectTitle", "doubleClick", "useDebugVersion", "trackType", "enableInPageLinkId", "sendHitsToGoogle", "forceSsl", "campaignTrack", "clientInfo", "sampleRate", "detectFlash", "webPropertyId"), value = c("true", "true", "false", "TRACK_PAGEVIEW", "true", "true", "false", "true", "true", "100", "true", "UA-24046704-1"))
1397723843550NA
10
656917146611Form Submit Listenerfsl7FALSE
list(type = c("boolean", "boolean"), key = c("waitForTags", "checkValidation"), value = c("true", "true"))
1381067161548NA
11
656917146612Click Listenercl1FALSENULL1381090382533NA
12
656917146613Link Click Listenerlcl8FALSE
list(type = c("template", "boolean", "boolean"), key = c("waitForTagsTimeout", "waitForTags", "checkValidation"), value = c("2000", "true", "true"))
1397724522351NA
13
656917146615Track Facebook likehtml10FALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\nif (typeof FB !== 'undefined'){\n FB.Event.subscribe('edge.create',\n function(href) {\n dataLayer.push({\n 'event': 'socialInt', \n 'socialNetwork': 'Facebook', \n 'socialAction': 'Like', \n 'socialTarget': href\n });\n }\n );\n}\n</script>", "false"))
1391091812681NA
14
656917146616Track gplushtmlNULLFALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\nfunction sendPlus(g) {\n dataLayer.push({\n 'event': 'socialInt', \n 'socialNetwork': 'Google', \n 'socialAction': '+1', \n 'socialTarget': g.href\n });\n};\n</script>", "false"))
1391092004548NA
15
656917146617WeatherhtmlNULLFALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\n function getCookie(cname) {\n var name = cname + \"=\";\n var ca = document.cookie.split(';');\n for(var i=0; i<ca.length; i++) {\n var c = ca[i].trim();\n if (c.indexOf(name)==0) {\n return c.substring(name.length,c.length);\n }\n }\n return \"\";\n } \n \n var isSession = getCookie(\"session\");\n \n if (isSession==\"\") {\n var lat = geoplugin_latitude();\n var lon = geoplugin_longitude();\n var weather = \"\";\n var weatherAPI = \"http://api.openweathermap.org/data/2.5/weather?lat=\"+lat+\"&lon=\"+lon;\n \n $.ajax({\n type : \"POST\",\n dataType : \"jsonp\",\n url : weatherAPI + \"&units=metric&callback=?\",\n async : true,\n success : function(data) {\n weather = data.weather[0].main ;\n dataLayer.push({\"weather\": weather});\n dataLayer.push({\"event\": \"weatherDone\"});\n },error : function(errorData) {\n console.log(\"Error while getting weather data :: \"+errorData.status);\n dataLayer.push({\"event\": \"weatherDone\"});\n }\n });\n }\n \n var d = new Date();\n d.setTime(d.getTime()+1800000);\n var expires = \"expires=\"+d.toGMTString();\n document.cookie = \"session=1; \"+expires+\"; path=/\"; \n \n</script>",
"false"))
1391092163326NA
16
656917146618JS Error Trackingjel11FALSENULL1392927070042NA
17
656917146621Vieport Trackinghtml6FALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\n if((Math.max(document.documentElement.clientWidth, window.innerWidth || 0))>=992)\n // We do not want to send an interactive event\n ga('send','Responsive Tracking','Went Responsive',' ',true);\n else\n ga('send','Responsive Tracking','Went Desktop',' ',true); \n</script>", "false"))
1432291123025unlimited
18
656917146622Custom Cookie setuphtml11FALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\ndocument.cookie = \"error=true;\";\n</script>", "true"))
1444584548515oncePerLoad
19
656917146623Social eventshtml10FALSE
list(type = c("template", "boolean"), key = c("html", "supportDocumentWrite"), value = c("<script>\n/**\n * Adds event handlers for the \"tweet\" and \"follow\" events \n * emitted by the official Twitter tweet and follow buttons.\n * Pushes info to dataLayer with 'social' event\n */\n\ntry {\n twttr.ready(function() {\n\n twttr.events.bind('tweet', function(event) {\n //Ignore tweets from widgets other than tweet button.\n if (event.region != 'tweet') return;\n\n var url = event.data.url ||\n event.target.getAttribute('data-url') ||\n window.location.href;\n\n dataLayer.push({\n 'event': 'social',\n\t'socialNetwork': 'Twitter',\n\t'socialAction': 'tweet',\n\t'socialTarget': url\n });\n }.bind(this));\n\n twttr.events.bind('follow', function(event) {\n //Ignore follows from widgets other than follow button.\n if (event.region != 'follow') return;\n\n var screenName = event.data.screen_name ||\n event.target.getAttribute('data-screen-name');\n \n dataLayer.push({\n\t 'event': 'social',\n\t 'socialNetwork': 'Twitter',\n\t 'socialAction': 'follow',\n\t 'socialTarget': screenName\n\t});\t\t\n }.bind(this));\n\n }.bind(this));\n} catch(e) {}\n\n/**\n * Adds event handlers for the \"like\" and \"unlike\" events \n * emitted by the official Facebook like button. \n * Pushes info to data layer with 'social' event\n */\n\ntry {\n FB.Event.subscribe('edge.create', function(url) { \n dataLayer.push({\n 'event': 'social',\n 'socialNetwork': 'Facebook',\n 'socialAction': 'like',\n 'socialTarget': url\n });\t\t \n }.bind(this));\n\n FB.Event.subscribe('edge.remove', function(url) { \n dataLayer.push({\n 'event': 'social',\n 'socialNetwork': 'Facebook',\n 'socialAction': 'unlike',\n 'socialTarget': url\n });\t \n }.bind(this));\n} catch(e) {}\n</script>",
"false"))
1473528725292oncePerEvent
20
656917146624Social Tagua17FALSE
list(type = c("boolean", "boolean", "boolean", "template", "template", "boolean", "template", "template", "template"), key = c("doubleClick", "setTrackerName", "useDebugVersion", "trackType", "socialAction", "enableLinkId", "socialActionTarget", "socialNetwork", "trackingId"), value = c("false", "false", "false", "TRACK_SOCIAL", "{{Social Action}}", "false", "{{Social Target}}", "{{Social Network}}", "UA-24046704-1"))
1473529376402oncePerEvent
Loading...
 
 
 
Tags
Triggers
Variables