From the course: Learning Google Tag Manager

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Create custom variables

Create custom variables - Google Tag Manager Tutorial

From the course: Learning Google Tag Manager

Start my 1-month free trial

Create custom variables

- [Instructor] So previously we saw how to create and use a variable to send data back to Google Analytics. So speaking of Google Analytics, another variable example, we had previously spoken about was the Google Analytics settings variable and the account number that goes along with that. And the most common use for this is when you have several different variations of tags that are all going to use that same account number, such as the Google Analytics tags, where you have the base tags, e-commerce tags, event tags, form tags and possibly even staging environments where you're going to change that ID out. And you want to minimize the number of places that you have to make that change and that's going to drastically cut down on your errors. So let's go ahead and do that. You can create variables in a slightly different way. So if we go up here to the base tag, now previously, when we edited this we had a tracking ID that was…

Contents