In this article:

The Tealium Tag Marketplace currently offers over 900 tags. A tag loaded through iQ Tag Management runs identically to the same tag that you would hard-code into your web pages. A tag in iQ Tag Management has the following components:

getting-started-tags.jpg

  • Tag Configuration
    The settings for the tag, such as account ID.
  • Load Rule
    The condition that determines when to load the tag on your site.
  • Data Mappings
    The configuration that sends data to the tag using values from the data layer.

About Tags

Before you add your first tag, let's review how it works:

  • No Coding Necessary
    Setting up a tag does not require any coding. A tag in iQ Tag Management offers a user-friendly interface to configure and deploy a vendor's tag to your site.
  • Deploy Tags Directly from iQ Tag Management
    Once the Universal tag (utag.js) is added to your site, tags added in your account configuration are loaded directly on your site after you publish your changes.
  • Multi-Functional Tags
    A single instance of a vendor tag in iQ Tag Management typically provides all of the tagging functionality required by that vendor for your entire site. While the vendor might require different tag code for different types of pages (product detail page, shopping cart page, and purchase confirmation page), these are all provided in one instance of the tag in iQ Tag Management.

Add a Tag

This example uses the Google Analytics tag, but you can use any tag. If adding your own tag, it will be helpful to have the vendor's code snippet or implementation guide for reference.

Use the following steps to add a tag:

  1. In the sidebar, select iQ Tag Management > Tags.
  2. Click +Add Tag in the upper right.
    The tag marketplace displays.
  3. In the search box, enter "Google Analytics" (or another vendor name), find a tag and click +Add.
    The tag configuration window displays.
  4. In the Tracking ID field, enter UA-12345678-1 (or your own tracking ID if you have a Google Analytics account).
    getting-started-iq-add-google-analytics-tag.png
  5. Click Finish.
    Your first tag now displays in the list of tags on the Tags screen.

Now that you have a basic data layer and your first tag, you're ready to set up a load rule to determine when the tag will be triggered.

About Load Rules

A load rule determines when a tag loads on your site. A rule is made up of one or more logical conditions based on values in the data layer. When a load rule is assigned to a tag, the tag is only loaded when the condition evaluates to true.

The page_type variable is often used in load rules because its values represent the types of pages of your site e.g., "category", "product", "cart", and "order", which makes it ideal for creating rules to load tags on those pages of your site.

The Universal Data Object (UDO) also contains built-in variables that collect basic information about the page where it's loaded. These variables include cookies created by utag.js, standard DOM variables from the page, and Tealium-specific variables about the loaded configuration.

The built-in variable named domain will be used to demonstrate how data layer variables are used with load rules.

Using Load Rules

Access load rules directly from the tag configuration window or from the Load Rules screen. The default load rule is named "All Pages", which loads the tag on every page of your site where the Universal Tag (utag.js) is installed. To only load a tag on specific pages, create a load rule with the necessary condition.

Conditions are formed using the following parts:

getting-started-load-rule-condition.png
  • Variable
    The data layer variable whose value will be used in the rule.
  • Comparison Operator
    The method used to compare the variable against another value, such as "equals", "contains", "greater than", or "is not populated".
  • Comparison Value
    The value used in the comparison.

Example Rule: Shopping Cart page

This example load rule uses the page_type variable to identify the shopping cart page.

Condition: page_type equals (ignore case) "cart"

  • Data Layer Variable: page_type
  • Comparison Operator: equals (ignore case)
  • Comparison Value: "cart"

page_type_is_cart.png

Create a Load Rule

The next step is to create a rule that identifies your live production website so that you can ensure that your tag is never loaded on your QA site. The rule checks that the built-in variable domain does not contain the words "stage" or "qa", which would indicate that it's the production site (i.e. if the domain is "qa.yourdomain.com", the rule will evaluate to false).

Use the following steps to add this load rule:

  1. Click the Google Analytics tag you just created to expand the available options.
  2. In the Load Rules area, click Edit.
    getting-started-iq-edit-load-rule.png
  3. Click +Create Rule.
    The new load rule dialog displays.
  4. In the Title field, enter Production Site.
  5. In the first drop-down list, select domain.
  6. In the second drop-down list, select does not contain as the operator.
  7. In the third field, enter stage.
  8. Click the + button to add an AND condition.
    getting-started-iq-load-rule-add-and-condition.png
  9. In the first drop-down list, select domain.
  10. In the second drop-down list, select does not contain as the operator.
  11. In the third field, enter qa.
    getting-started-iq-load-rule-new.png
  12. Click Apply to apply the load rule.
  13. Click Apply again to update the tag.

Great! Now you have a tag that will only load on the production site (only domains that do not contain "stage" or "qa"). You're ready to apply a data mapping to send data to your tag.

About Data Mappings

A data mapping connects a value from the data layer to the corresponding variable in the vendor tag. For example, a vendor might collect page name information in a variable named pName, but your data layer has this value in the variable named page_name. To send the value of page_name to pName, use a data mapping. After the data mapping is configured, the value from the data layer variable will always be passed to the vendor variable when that tag is triggered.

Create a Data Mapping

To add a data mapping:

  1. Click the Google Analytics tag you just created to expand the available options.
  2. Under Mapped Variables, click Edit.
  3. Click the Variables field, and select page_name .
    You can optionally begin typing in the variables field to narrow your search.
  4. Click + Select Destination.
    The mapping toolbox displays.
  5. Click Title as the destination variable. This is the vendor's variable name.
    getting-started-ia-map-a-variable.png
  6. Click Done to return to the tag configuration dialog.
  7. Click Apply.

That's it! The Google Analytics tag is now configured to pass the value of page_name from your data layer to the title variable.

Great job, you are well on your way! Now that you have successfully configured your new marketplace tag, you are ready to learn about extensions and how to use them.