Highlighted

Override the ecommerce extension in a tag

Silver Contributor
Silver Contributor

Hi, 

I have my ecommerce extension set up for multiple tags, but for a tag in particular, I would like to overrride the enhanced ecommerce's extension to not send the data to my tag for specific pages.

 

So far, I have created a separate data source for my tag with "set data sources" extensions based on my conditions (one extension to set the data sources and another to set them to "empty" on certain pages).

 

When I go to my page however, I can see my new data sources are set to empty, but the tag still gets the data.

 

I am wondering, when there is a custom mapping that overrides the ecommerce extension, if Tealium doesn't see any data for a data source, will it default to the ecommerce extension?

 

 

Thanks.

5 REPLIES 5
Highlighted

Override the ecommerce extension in a tag

Tealium Employee

Hi @audrey_poulin

 

"I am wondering, when there is a custom mapping that overrides the ecommerce extension, if Tealium doesn't see any data for a data source, will it default to the ecommerce extension?"

 

In general, yes, this is exactly what most of the tags do.

 

What you can do, along with what you've already done, is to use your set data value extension to also set the value of the _cxxx data sources to empty on the pages in question (for example, set the _cprod data source to empty if you don't want the product id(s)).  As long as your extension is scoped to a specific tag (or to more than one specific tags), then this will only affect that tag, leaving the rest of the tags to use the eCommerce extension data as normal.

 

 

Highlighted

Override the ecommerce extension in a tag

Silver Contributor
Silver Contributor
That makes a lot of sense! Good to know that the ecommerce extension will always be the default if a custom mapping is set to empty though! I would have expected the custom mapping to override it for good, no matter the circumstances. Thanks for the confirmation.
Highlighted

Override the ecommerce extension in a tag

Silver Contributor
Silver Contributor

Hi @mark_reddin,

I just implemented what you suggested, but for some reason, now that I've scoped the extension to my tag, the data is not rewritten on the page, and the tag still gets the data. The data is sent via utag_data, so I'm wondering if there are issues with the order of operations and the extension being scoped to the tag?

Thanks.

Highlighted

Override the ecommerce extension in a tag

Silver Contributor
Silver Contributor

Now I can't remove my previous post. I just realized I was rewriting the data source mapped to _cxxx instead of rewriting _cxxx directly. Once I did that, it worked!

Thanks!

Highlighted

Override the ecommerce extension in a tag

Employee Emeritus

Great job @audrey_poulin

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.