Detect a tag from code

This artlce explains how to detect a tag on your site from its code and add it to your Tealium profile.

Adding a tag to your profile involves multiple steps: search for your tag, add it, configure it, then save and publish. If you wish to fast-track this process, use the Detect Tag from Code tool. This tool extracts the tag parameters from your vendor code snippet and automatically configures the tag for you. Here’s a step-by-step tutorial.

  1. In the sidebar, click iQ Tag Management > Tags.
    Ensure that the Tag Marketplace Policy is disabled.
  2. Click + Add Tag.
  3. Click Detect Tag From Code to display a text box.
    Detect Tag From Code
  4. Paste the code provided to you by your tag vendor.
  5. Click Detect Configuration.
    This signals Tealium to parse the tag snippet and extract its parameters.
  6. Upon detecting a match for the code snippet, the tag and its configurations display below your code snippet.
  7. Hover over the tag name and click + Add to add the tag to your profile.

If the tool fails to detect the vendor code snippet, you can search for and add a tag using conventional methods. You can optionally choose from a set of Tealium custom containers with which to add your desired tag if you cannot find it in the Tag Marketplace.

Could Not Identify Tag From Snippet

Hiding tags via the Tag Marketplace Policy will prevent the tool from detecting the matching code snippet.

Was this page helpful?

This page was last updated: January 7, 2023