{"id":2866,"date":"2014-03-01T11:35:01","date_gmt":"2014-03-01T11:35:01","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/01\/is-there-a-way-to-setup-clicktale-tag-in-google-tag-manager-collection-of-common-programming-errors\/"},"modified":"2014-03-01T11:35:01","modified_gmt":"2014-03-01T11:35:01","slug":"is-there-a-way-to-setup-clicktale-tag-in-google-tag-manager-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/01\/is-there-a-way-to-setup-clicktale-tag-in-google-tag-manager-collection-of-common-programming-errors\/","title":{"rendered":"Is there a way to setup Clicktale tag in Google Tag Manager?-Collection of common programming errors"},"content":{"rendered":"<p>Cubius,<\/p>\n<p>I actually ran into the same issue and recently contacted ClickTale Support to find out the correct solution. I was given the following instructions which worked for me. Try the following:<\/p>\n<p>1) Create a new tag in your GTM container.<\/p>\n<p>2) Copy and paste the code into the new tag.<\/p>\n<p>3) Change the general parameters in the code (PID, Ratio, PartitionPrefix) to your project\u2019s details. For example (12345, 0.33, \u201cwww14\u201d)<\/p>\n<p>4) Save the new tag and publish the updated version of the container.<\/p>\n<p>Here is the code:<\/p>\n<pre><code>\nfunction ClickTaleCreateDOMElement(tagName) {\nif (document.createElementNS) {\nreturn document.createElementNS('http:\/\/www.w3.org\/1999\/xhtml', tagName);\n}\nreturn document.createElement(tagName);\n}\nvar ClickTaleIsXHTMLCompliant = true;\nvar ClickTalePrevOnReady;\nif (typeof ClickTaleOnReady == 'function') {\nClickTalePrevOnReady = ClickTaleOnReady;\nClickTaleOnReady = undefined;\n}\nvar ClickTaleOnReady = function() {\nwindow.ClickTaleScriptSource = (document.location.protocol == 'https:'?\n'https:\/\/clicktalecdn.sslcs.cdngc.net\/www\/':\n'http:\/\/cdn.clicktale.net\/www\/');\n\nwindow.ClickTaleIncludedOnDOMReady = true;\nwindow.ClickTaleSSL = 1;\n\nClickTale(PID, Ratio, PartitionPrefix);\n\nif(typeof ClickTalePrevOnReady == 'function') {\nClickTalePrevOnReady();\n}\n};\n(function() {\nvar div = ClickTaleCreateDOMElement(\"div\");\ndiv.id = \"ClickTaleDiv\";\ndiv.style.display = \"none\";\ndocument.body.appendChild(div);\n\nvar externalScript = ClickTaleCreateDOMElement(\"script\");\nexternalScript.src = document.location.protocol == 'https:'?\n'https:\/\/clicktalecdn.sslcs.cdngc.net\/www\/WRe1.js':\n'http:\/\/cdn.clicktale.net\/www\/WRe1.js';\n\nexternalScript.type = 'text\/javascript';\ndocument.body.appendChild(externalScript);\n})();\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Cubius, I actually ran into the same issue and recently contacted ClickTale Support to find out the correct solution. I was given the following instructions which worked for me. Try the following: 1) Create a new tag in your GTM container. 2) Copy and paste the code into the new tag. 3) Change the general [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2866","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2866"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2866\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}