{"id":15527,"date":"2015-08-11T13:04:56","date_gmt":"2015-08-11T20:04:56","guid":{"rendered":"http:\/\/claravine.com\/?p=15527"},"modified":"2024-10-04T06:57:49","modified_gmt":"2024-10-04T06:57:49","slug":"my-first-love-letter-to-dtm-switch","status":"publish","type":"post","link":"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/","title":{"rendered":"My First Love Letter to DTM Switch"},"content":{"rendered":"<h4><span style=\"color: #000000;\">How do I love thee?<\/span><\/h4>\n<p><span style=\"color: #000000;\">Inspired by Tina Fey&#8217;s love letters to Amy Pohler, I am posting my own first love letter dedicated to my favorite Chrome Plugin: DTM Switch. This is a simple technology that lets you take your unpublished changes within your TMS (Tag Management System) for a local test drive on your live sites.<\/span><\/p>\n<p><!--more--><br \/>\n<span style=\"color: #000000;\">Adobe&#8217;s Dynamic Tag Manager (DTM) has the same basic structure as other TMSs, i.e., it maintains two sets of tag management instructions: a staging version and a production version.<\/span><br \/>\n<span style=\"color: #000000;\">Your unpublished pages and sites should all reference the staging version, which you can tweak and test and revise without affecting your live sites. Publishing the staging version of your TMS is done as part of your wider release, and should be subject to the same rigorous QA process.<\/span><br \/>\n<span style=\"color: #000000;\">But TMS updates aren&#8217;t necessarily tied to major site releases. In fact, the primary selling feature of TMS technology is that you can bypass the slow lane of code deployments and make changes to your marketing tags that need to be fixed asap.<\/span><br \/>\n<span style=\"color: #000000;\">Last week I met a Data Governance director for an enormous website who publishes a DTM update every couple of weeks. I can imagine the panic he must feel every time he presses the Publish button. Even when my technology teams assure me that there&#8217;s no difference between staging and production, I&#8217;ve lived too long in this space and seen that promise broken too many times to feel comfortable relying upon their word. Also, it affects me more than them, since I&#8217;m the one that&#8217;s going to have to deal with the aftermath, not just of identifying and fixing any mistakes, but of having to adjust reports for weeks and months to come.<\/span><\/p>\n<h4><span style=\"color: #000000;\">Adobe DTM Switch by SearchDiscovery<\/span><\/h4>\n<p><span style=\"color: #000000;\">Enter DTM Switch: the simplest little widget that lets you browse around your live website with one tiny difference: the &#8220;-staging&#8221; suffix is injected into the JS filename on every page. Essentially, it pushes your staging TMS library to the live environment, but just for you, and only on your browser. It stays that way until you switch it back.<\/span><br \/>\n<span style=\"color: #000000;\">This works reliably because Adobe&#8217;s hosted DTM libraries follow this format:<\/span><br \/>\n<span style=\"color: #000000;\"><code>\/\/assets.adobedtm.com\/4815162342bobloblaw.js<br \/>\n\/\/assets.adobedtm.com\/4815162342bobloblaw-staging.js<\/code><\/span><\/p>\n<h4><span style=\"color: #000000;\">Try<\/span><span style=\"color: #000000;\">\u00a0DTM Switch\u00a0<\/span><span style=\"color: #000000;\">out yourself<\/span><\/h4>\n<p><span style=\"color: #000000;\">DTM Switch might only be available for Chrome and Firefox browsers, but you can achieve the same result anywhere by typing this javascript command directly within your browser&#8217;s console:<\/span><br \/>\n<span style=\"color: #000000;\"><code>localStorage.setItem('sdsat_stagingLibrary', true);<\/code><\/span><br \/>\n<span style=\"color: #000000;\">I threw together<\/span> <a title=\"Adobe DTM Switch Example\" href=\"https:\/\/www.claravine.com\/acme\/tms\/dtm\/edge\/\" target=\"_blank\" rel=\"noopener noreferrer\">this little example<\/a> <span style=\"color: #000000;\">that you can check out yourself.<\/span><br \/>\n<span style=\"color: #000000;\">This is a little pretend-site that I use for analytics implementation training.<\/span><\/p>\n<p><span style=\"color: #000000;\">Turn on your debugging tool of choice (Charles, Fiddler, ObservePoint, WASP, Ghostery, etc.) and review the Adobe\/Omniture tag that fires when you load the page.<\/span><br \/>\n<span style=\"color: #000000;\">Now click on one of the people. Notice how nothing new is sent to Adobe? That&#8217;s something I decided to add using my TMS, but I haven&#8217;t published the new code yet.<\/span><br \/>\n<span style=\"color: #000000;\">In DTM Switch, turn the Staging button to ON. If you don&#8217;t want to install DTM Switch onto your browser, just press F12 and in the Console, type the javascript line I included above. Then refresh the browser, and the page will indicate that the Staging server is active.<\/span><br \/>\n<span style=\"color: #000000;\">Now look the tag that is sent when you click on one of the people.<\/span><\/p>\n<p><span style=\"color: #000000;\">Here you&#8217;re seeing the calls that are about to start flowing into Adobe&#8217;s system as soon as you hit the Publish button in DTM. Everybody else in the world is seeing the other version, but you&#8217;re getting a sneak peek. It&#8217;s like test driving your updated TMS on actual streets instead of the closed circuit track of your staging environment.<\/span><\/p>\n<h4><span style=\"color: #000000;\">Regression Tests and Automation<\/span><\/h4>\n<p><span style=\"color: #000000;\">And the best news of all is that this line of code can be applied within programatic tag checks, like those offered by our partner ObservePoint.<\/span><br \/>\n<span style=\"color: #000000;\">Say you have a series of sanity\/regression tests that you run periodically on your websites to make sure that the tracking is solid. Add this one line of code to the top of your simulations, and now those same tests will either give you the all clear, or warn you about something that you&#8217;re about to break, in time for you to fix it.<\/span><\/p>\n<p style=\"padding-left: 30px; background-color: #fef0c1;\"><i><b>Author&#8217;s Note, 8\/21\/2015<\/b>: My good friend Patrick Hillery just posted a terrific <a title=\"Testing Tag Management System Changes on Production\" href=\"https:\/\/www.observepoint.com\/blog\/tag-management-based-release\/\" target=\"_blank\" rel=\"noopener noreferrer\">step-by-step tutorial<\/a> on including the DTM Switch command within ObservePoint&#8217;s auditing and simulation tools. It&#8217;s not just DTM-specific either; he shows you how to do this for a variety of popular Tag Management Solutions.<br \/>\n<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How do I love thee? Inspired by Tina Fey&#8217;s love letters to Amy Pohler, I am posting my own first love letter dedicated to my favorite Chrome Plugin: DTM Switch. This is a simple technology that lets you take your unpublished changes within your TMS (Tag Management System) for a local test drive on your live sites.<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[44,51],"class_list":["post-15527","post","type-post","status-publish","format-standard","hentry","category-analytics","category-news"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>DTM Switch: A Love Letter to an Incredible Chrome Plugin<\/title>\n<meta name=\"description\" content=\"What do we love about the Chrome Plugin: DTM Switch? Read this article to find out why we love it so much that we had to write a love letter.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DTM Switch: A Love Letter to an Incredible Chrome Plugin\" \/>\n<meta property=\"og:description\" content=\"What do we love about the Chrome Plugin: DTM Switch? Read this article to find out why we love it so much that we had to write a love letter.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/\" \/>\n<meta property=\"og:site_name\" content=\"Claravine\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-11T20:04:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-04T06:57:49+00:00\" \/>\n<meta name=\"author\" content=\"Claravine\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@claravinesocial\" \/>\n<meta name=\"twitter:site\" content=\"@claravinesocial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Claravine\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/\"},\"author\":{\"name\":\"Claravine\",\"@id\":\"https:\/\/www.claravine.com\/#\/schema\/person\/20ba5ab30ff485c1f98fda3408b58520\"},\"headline\":\"My First Love Letter to DTM Switch\",\"datePublished\":\"2015-08-11T20:04:56+00:00\",\"dateModified\":\"2024-10-04T06:57:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/\"},\"wordCount\":755,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.claravine.com\/#organization\"},\"articleSection\":[\"Analytics\",\"News\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/\",\"url\":\"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/\",\"name\":\"DTM Switch: A Love Letter to an Incredible Chrome Plugin\",\"isPartOf\":{\"@id\":\"https:\/\/www.claravine.com\/#website\"},\"datePublished\":\"2015-08-11T20:04:56+00:00\",\"dateModified\":\"2024-10-04T06:57:49+00:00\",\"description\":\"What do we love about the Chrome Plugin: DTM Switch? Read this article to find out why we love it so much that we had to write a love letter.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.claravine.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"My First Love Letter to DTM Switch\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.claravine.com\/#website\",\"url\":\"https:\/\/www.claravine.com\/\",\"name\":\"Claravine\",\"description\":\"The Data Standards Company &lt;sup&gt;TM&lt;\/sup&gt;\",\"publisher\":{\"@id\":\"https:\/\/www.claravine.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.claravine.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.claravine.com\/#organization\",\"name\":\"Claravine\",\"url\":\"https:\/\/www.claravine.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.claravine.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.claravine.com\/wp-content\/uploads\/2022\/06\/claravine-logo-5theme_logo.png\",\"contentUrl\":\"https:\/\/www.claravine.com\/wp-content\/uploads\/2022\/06\/claravine-logo-5theme_logo.png\",\"width\":170,\"height\":35,\"caption\":\"Claravine\"},\"image\":{\"@id\":\"https:\/\/www.claravine.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/claravinesocial\",\"https:\/\/www.linkedin.com\/company\/claravine\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.claravine.com\/#\/schema\/person\/20ba5ab30ff485c1f98fda3408b58520\",\"name\":\"Claravine\",\"sameAs\":[\"http:\/\/Claravine.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DTM Switch: A Love Letter to an Incredible Chrome Plugin","description":"What do we love about the Chrome Plugin: DTM Switch? Read this article to find out why we love it so much that we had to write a love letter.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/","og_locale":"en_US","og_type":"article","og_title":"DTM Switch: A Love Letter to an Incredible Chrome Plugin","og_description":"What do we love about the Chrome Plugin: DTM Switch? Read this article to find out why we love it so much that we had to write a love letter.","og_url":"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/","og_site_name":"Claravine","article_published_time":"2015-08-11T20:04:56+00:00","article_modified_time":"2024-10-04T06:57:49+00:00","author":"Claravine","twitter_card":"summary_large_image","twitter_creator":"@claravinesocial","twitter_site":"@claravinesocial","twitter_misc":{"Written by":"Claravine","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/#article","isPartOf":{"@id":"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/"},"author":{"name":"Claravine","@id":"https:\/\/www.claravine.com\/#\/schema\/person\/20ba5ab30ff485c1f98fda3408b58520"},"headline":"My First Love Letter to DTM Switch","datePublished":"2015-08-11T20:04:56+00:00","dateModified":"2024-10-04T06:57:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/"},"wordCount":755,"commentCount":0,"publisher":{"@id":"https:\/\/www.claravine.com\/#organization"},"articleSection":["Analytics","News"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/","url":"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/","name":"DTM Switch: A Love Letter to an Incredible Chrome Plugin","isPartOf":{"@id":"https:\/\/www.claravine.com\/#website"},"datePublished":"2015-08-11T20:04:56+00:00","dateModified":"2024-10-04T06:57:49+00:00","description":"What do we love about the Chrome Plugin: DTM Switch? Read this article to find out why we love it so much that we had to write a love letter.","breadcrumb":{"@id":"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.claravine.com\/my-first-love-letter-to-dtm-switch\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.claravine.com\/"},{"@type":"ListItem","position":2,"name":"My First Love Letter to DTM Switch"}]},{"@type":"WebSite","@id":"https:\/\/www.claravine.com\/#website","url":"https:\/\/www.claravine.com\/","name":"Claravine","description":"The Data Standards Company &lt;sup&gt;TM&lt;\/sup&gt;","publisher":{"@id":"https:\/\/www.claravine.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.claravine.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.claravine.com\/#organization","name":"Claravine","url":"https:\/\/www.claravine.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.claravine.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.claravine.com\/wp-content\/uploads\/2022\/06\/claravine-logo-5theme_logo.png","contentUrl":"https:\/\/www.claravine.com\/wp-content\/uploads\/2022\/06\/claravine-logo-5theme_logo.png","width":170,"height":35,"caption":"Claravine"},"image":{"@id":"https:\/\/www.claravine.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/claravinesocial","https:\/\/www.linkedin.com\/company\/claravine\/"]},{"@type":"Person","@id":"https:\/\/www.claravine.com\/#\/schema\/person\/20ba5ab30ff485c1f98fda3408b58520","name":"Claravine","sameAs":["http:\/\/Claravine.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.claravine.com\/wp-json\/wp\/v2\/posts\/15527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.claravine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.claravine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.claravine.com\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.claravine.com\/wp-json\/wp\/v2\/comments?post=15527"}],"version-history":[{"count":0,"href":"https:\/\/www.claravine.com\/wp-json\/wp\/v2\/posts\/15527\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.claravine.com\/wp-json\/wp\/v2\/media?parent=15527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.claravine.com\/wp-json\/wp\/v2\/categories?post=15527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}