{"id":83,"date":"2015-10-23T00:58:41","date_gmt":"2015-10-23T00:58:41","guid":{"rendered":"http:\/\/www.digitaldatatactics.com\/?page_id=83"},"modified":"2017-12-04T18:23:38","modified_gmt":"2017-12-04T18:23:38","slug":"dtm-reference-tools","status":"publish","type":"page","link":"https:\/\/www.digitaldatatactics.com\/index.php\/dtm-reference-tools\/","title":{"rendered":"DTM Examples"},"content":{"rendered":"<p>Because I get asked for certain snippets and examples rather frequently, I&#8217;ve posted them online for faster reference:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/globalS.html\">Setting a global &#8220;s&#8221; analytics object<\/a><\/li>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/products.html\">Setting s.products and array-based variables<\/a><\/li>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/loadOrder.html\">DTM Load Order and custom code blocks<\/a><\/li>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/troubleshooting.html\">General Troubleshooting and common code snippets<\/a><\/li>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/appendTag.html\">Appending a Third-Party Tag Non-Sequentially<\/a><\/li>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/w3cDL.html\">Basic W3C Data Layer<\/a><\/li>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/SPAdl.html\">Single Page Apps and Data Layers<\/a><\/li>\n<li>Direct Call Rules\n<ul>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/DCR.html\">Direct Call Rules (including using clearVars and &#8220;dasiy-chaining&#8221;)<\/a><\/li>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/DCRsuppress.html\">Suppressing Page Load beacons in favor of setting a Direct Call Rule<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Event-Based Rules\n<ul>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/simpleEBRstl.html\">Event-Based Rules: Setting s.tl beacons<\/a><\/li>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/pushState.html\">Event-Based Rules: pushState and hashchange conditions<\/a><\/li>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/EBRthis.html\">Using &#8220;this&#8221; directly in the interface<\/a><\/li>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/customEvent.html\">Event-Based Rules: Custom Events<\/a><\/li>\n<li><a href=\"http:\/\/www.digitaldatatactics.com\/examples\/EBRtroubleshooting.html\">Event-Based Rules: Troubleshooting and Bubbling<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Because I get asked for certain snippets and examples rather frequently, I&#8217;ve posted them online for faster reference: Setting a global &#8220;s&#8221; analytics object Setting s.products and array-based variables DTM Load Order and custom code blocks General Troubleshooting and common code snippets Appending a Third-Party Tag Non-Sequentially Basic W3C Data Layer Single Page Apps and &#8230; <a title=\"DTM Examples\" class=\"read-more\" href=\"https:\/\/www.digitaldatatactics.com\/index.php\/dtm-reference-tools\/\" aria-label=\"Read more about DTM Examples\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/pages\/83"}],"collection":[{"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":3,"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/pages\/83\/revisions"}],"predecessor-version":[{"id":302,"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/pages\/83\/revisions\/302"}],"wp:attachment":[{"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/media?parent=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}