Manage data mappings
This article explains how to manage data mappings.
Add a variable mapping
Vendor tag parameters (also called destinations) are built into the Data Mappings configuration screen for the tag. This is where you add and manage data mappings.
Follow these steps create a variable mapping:
- Expand a tag to view the details for that tag.
- Under Mapped Variables, click Edit.
- Select a data layer variable from the Variables drop-down or click + Add Variable to use a new one.
- Click + Select Destination.
The mapping dialog displays the supported vendor parameters. - Browse the categories of vendor parameters in the left panel and check the box next to the desired destination.
- Click Done.
The new data mapping is displayed.
Repeat Steps 2 through 6 to map additional variables.
When done, click Apply.
Add an event mapping
Use an event mapping to associate your event names with the vendor’s event names and corresponding tracking. First, select your event variable (typically tealium_event
), then enter the event name from your data layer, then select the corresponding vendor event to trigger.

Use the following steps to map an event:
- Expand a tag to view the details for that tag.
- Under Mapped Variables, click Edit.
- Select the event variable to map.
- Click + Select Destination.
- Under Category, find the Events section.
- ln the Trigger field, enter the event name from your data layer.
- In the Event drop-down, select the vendor’s event to trigger.
- Click + Add. Repeat these steps to map multiple events.
- Click Apply.
Event mappings appear in the data mappings list in the format of EVENT_NAME:VENDOR_EVENT
. For example, if you mapped the cart_add
event to the vendor’s event addToCart
, the mapping appears as cart_add:addToCart
.

Add a custom value mapping
Use the following steps to create a data mapping that uses a custom (static) value instead of a data layer variable:
- Expand a tag to view the details for that tag.
- Under Mapped Variables, click Edit.
- Expand the Variables drop-down list or click Use Custom Value.
- Click Select Destination.
The mapping dialog displays the supported vendor parameters. - Select the type of value to set and enter a value.
- Click Close.
The mapped variable is displayed. Repeat these steps to map additional custom values.
When done, click Apply.
Add a custom data mapping
While the built-in destinations cover most of your mapping needs, you can optionally define a custom data mapping to send data to a vendor parameter that you name.
Use the following steps to create a custom data mapping:
- Expand a tag to view the details for that tag.
- Under Mapped Variables, click Edit.
- Select a data layer variable from the Variables drop-down or click + Add Variable to use a new one.
- Click + Add Custom Destination in the top panel or in the lower left panel.
- Enter a name for the custom variable.
- Click OK in the top panel or + Add if you used the bottom panel option.
Repeat the steps to add more custom mappings. When complete, click Done. The custom mapping is displayed in the Data Mappings tab.
Mapping an AudienceStream attribute
AudienceStream attributes are enriched attributes about your visitors that are sent back to your website for use with personalization.
The following requirements must be in place to map an AudienceStream attribute:
-
Data Layer Enrichment
Your profile must be populated by attributes from the matching AudienceStream profile. Those attributes are made available as data mappings in the variables drop-down menu. They are organized by attribute types and are labeled as AudienceStream variables.
Learn more about data layer enrichment. -
AudienceStream Capable Tags
Tags marked as AudienceStream Capable in the tag marketplace can map attributes from AudienceStream to the tag’s destinations. Look for this label in the tips panel when adding a tag. You can optionally filter your tag search results by clicking AudienceStream Capable in the left panel.
Edit a mapping
Use the following steps to edit a destination for a mapped variable:
- Expand a tag to view the details for that tag.
- Under Mapped Variables, click Edit.
- Click Edit next to the mapping you want to modify.
The mapping dialog displays.
- Edit any of the following:
- Change the destination name
- Map to another destination
- Remove the destination
- Click Done.
- Repeat to edit more mappings.
- When complete, click Apply.
Edit a custom data mapping
Use the following steps to edit the destination variable:
- Expand a tag to view the details for that tag.
- Under Mapped Variables, click Edit.
- Click the destination variable name in the top panel.
The name becomes a text field. - Enter the new name.
- Click OK to apply the changes.
- When complete, click Done.
Reorder mappings
You can drag and drop data mappings in your preferred order. This is helpful if you want to order your mappings alphabetically for better organization.
Order of mapping is important when two or more data layer variables are mapped to the same vendor destination. In this case, the last mapping takes precedence.
Delete a mapping
Use the following steps to delete a mapping:
- Expand a tag to view the details for that tag.
- Under Mapped Variables, click Edit.
- Click the trash icon next to the mapping you want to remove.
- Click Apply to confirm.
No warning or confirmation message appears. The deleted mapping cannot be restored.
This page was last updated: May 24, 2023