Multiple Contexts for Data Layer

0 Votes

Multiple Contexts for Data Layer

Status: Archived
Submitted by oaustegard on ‎01-18-2018 12:31 PM

As the implementer of Tealium iQ on a modern publishing website, the current singleton-nature of the utag_data and utag.data objects presents problems when attempting to track multiple events and types of content from the same page. For instance a single page could include events like (main) page load, ad(s) loaded, video loaded, started, paused, completed, photo galleries scrolled through, etc, all with different contexts for the different events. With the current singleton object this forces us to mutate the object between the various events, frequently leading to errant data being collected in the form of a prior event's context variable being reported with the current event. As a proposed solution I would like to be able to specify multiple types of context, then call utag.view() or utag.link() with a pointer to the context object for that specific event.

Status: Archived

There has not been enough community support to date for this idea. Moving to Archived status until more support is garnered. Thank you.

Comments
by kathleen_jo
on ‎01-22-2018 11:52 AM
Status changed to: Acknowledged

Very clever @oaustegard. Thank you for the idea. I have moved it to Acknowledged

by Community Manager
on ‎01-25-2018 03:38 PM

@oaustegard The utag_data object doesn't necessarily need to be reused for each tracking call. In fact, it's main purpose is only for the initial page load tracking. Our best practice is to pass a new object for each call. If there are variables from the original object that you want included in every event, there's a publish setting called "Base Variables" to accommodate that.

https://community.tealiumiq.com/t5/iQ-Tag-Management/Publish-Configuration/ta-p/13632#implementation

If that approach doesn't work, let's explore this idea further. Can you provide a little more detail around the "context pointer",  perhaps will code examples?


@oaustegard wrote:

As a proposed solution I would like to be able to specify multiple types of context, then call utag.view() or utag.link() with a pointer to the context object for that specific event.


 

by
on ‎11-19-2018 11:55 AM
Status changed to: Archived

There has not been enough community support to date for this idea. Moving to Archived status until more support is garnered. Thank you.