Notification

G Suite is now Google Workspace: everything your business needs to get work done.

[V2] Custom Tag Types

Learn more about the new features in Google Tag Manager V2!

The following two custom tag types are provided, which allow you to deploy virtually any tag from Google Tag Manager. If you need to implement a tag that is not explicitly supported via a template, you can use one of these tag types:

Custom Image Tag

The Custom Image Tag type allows you to manage your own image tag with its own custom triggers and parameters. For example, if you use an invisible one-pixel image for tracking, enter the image URL in the Image URL field. To insert variables, wrap the variable name in double braces, i.e. {{variable_name}}.

Note: Select “//” if protocol-relative versions of the image are available; select “https://” if only a secure version is available. “http://” is not recommended.

Select the Cache Buster checkbox and provide a cache busting parameter to ensure that hits are registered from browsers that have cached versions of the image.

Custom HTML Tag

The Custom HTML Tag type allows you to manage a tag that isn't explicitly supported via a Google Tag Manager template, for example, a non-Google tag. (Learn more about tag restrictions.)

Copy and paste your HTML and/or JavaScript into the textbox. Make sure that you enclose JavaScript snippets inside HTML script tags. You may incorporate calls to document.write() in your tags by selecting the appropriate checkbox.

To insert variables into your custom HTML tag, wrap the variable name in double braces, i.e. {{variable_name}}. This can be helpful for tag reuse in multiple contexts.

Add tags independently instead of combining them. For example, if you have two data collection tools side-by-side in your original site code, break these two tools into two separate Custom HTML tags. Doing so will allow you to independently deploy each tag.

When you create the tag, specify triggers for when the tag should fire. After you have named and saved the tag, you'll be able to manage it using Google Tag Manager.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
13214783183275971199
true
Search Help Centre
true
true
true
true
true
102259
false
false