{"id":1249,"date":"2015-07-19T11:00:26","date_gmt":"2015-07-19T15:00:26","guid":{"rendered":"http:\/\/www.gregcruce.com\/?p=1249"},"modified":"2016-07-05T09:03:28","modified_gmt":"2016-07-05T13:03:28","slug":"set-your-google-analytics-tracking-id-as-a-variable-in-google-tag-manager","status":"publish","type":"post","link":"https:\/\/www.gregcruce.com\/set-your-google-analytics-tracking-id-as-a-variable-in-google-tag-manager\/","title":{"rendered":"Set Your Google Analytics Tracking ID As A Variable In Google Tag Manager"},"content":{"rendered":"
This is a great tip and one\u00a0that is used frequently! Setting up your Google Analytics Tracking ID as a Google Tag Manager variable is a fast, easy way to roll out updates to any account, as well as test Google Tag Manager integrations on a live site without tampering with data. \u00a0More on that later – for now, let’s get started.<\/p>\n
First, you’ll want to create a new Constant – that’s because our Tracking ID should be absolute and never subject to any programmatic changes.<\/p>\n
Create a new variable, give it a descriptive name, and then add in your Tracking ID as the value.<\/p>\n
<\/p>\n
When creating any Google Analytics tags or events, for the Tracking ID, use a variable:<\/p>\n
<\/p>\n
Got any tips for using Google Tag Manager variables? \u00a0I’d love to hear about them below in the comments!<\/p>\n","protected":false},"excerpt":{"rendered":"
This is a great tip and one that is used frequently! Setting up your Google Analytics Tracking ID as a Google Tag Manager variable is a fast, easy way to roll out updates to any account.<\/p>\n","protected":false},"author":1,"featured_media":1255,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[88],"tags":[63,89,90],"yoast_head":"\n