Nested tags are a powerful feature that streamlines the process of building and maintaining Blueprints. Essentially, a nested tag is a "tag within a tag," offering a useful alternative to creating multiple variations of the same tag.
Nested tags involve enclosing inner tags within outer tags—for example, [[inventory.Make] Tagline]. Here, [inventory.Make] is the nested portion of the tag. The resolution process follows an inside-out approach, ensuring that innermost tags are processed first.
Let's explore an example of a nested tag to understand how they work. Below is a line of ad copy with a nested tag. In this example, your team is developing ad copy for automotive accounts. As a strategy, you'd like to include each brand's tagline in the text.
In the steps below, we'll walk through how to construct this line of ad copy and nested tag. Refer to the accompanying image for the progression of the ad copy.
First, create a Blueprint tag called Primary Text, and enter your ad copy. Example: Find the car for you at [account.name]! We have a large selection of new vehicles you'll love.
Next, create another Blueprint tag, and name it Toyota Tagline. Input Toyota's tagline, Let's Go Places, in the input field, and click Save.
Edit the Primary Text tag, and add [[inventory.Make] Tagline] to the end of the ad copy.
Click Save to finish.
(Optional) Test the Primary Text tag with Tag Tester to see how the nested tag resolves and the final output of the ad.
Notes About This Example:
The [inventory.Make] tag pre-exists from an account ingest or polling source.
[inventory.Make] resolves first to Toyota. It pulls in the [Toyota Tagline] tag's tagline.
Exploring Variations:
To generate a different tagline for a different car make, create another Blueprint tag (e.g., [BMW Tagline] with the tagline "The Ultimate Driving Machine"). The output will automatically adjust based on the selected make.