SRGSSR / pillarbox-web

Pillarbox is a versatile media playback ecosystem engineered for the web.
https://srgssr.github.io/pillarbox-web-demo/
MIT License
12 stars 1 forks source link

Ask Commanders Act for a tc_vars per container #164

Open amtins opened 8 months ago

amtins commented 8 months ago

As a Pillarbox developer, I'd like to know if it's possible to have a tc_vars available per container so I can have control over my own container's values.

Acceptance Criteria

Hints

Can be useful in cases where several independent teams integrate multiple containers, each with its own scope.

jboix commented 8 months ago

The Comanders Act support team has acknowledged the need for a function to clear external variables used in a given container. For the time being they provided a manual solution and have raised an internal request for an evolution but can't guarantee its acceptance or provide a timeline.

In conclusion: there is no native function in Tagcomander at the moment to automatically clear external variables associated with a specific container.

amtins commented 7 months ago

Description

Some BUs, i.e. IL, seem to return inconsistent data from one media to another.

Example

If media A has the properties {a,b,c,d} but media B only has the properties {a,b}, when transitioning between media A and B, the properties {c,d} will be applied to media B.

Cause

This is because TagCommander does not classify properties by container, but provides a global object containing the properties of all containers. This makes it "impossible" to delete properties linked to a specific tag and the SDK doesn't provide a proper function to clean the variables specific to a container. See https://github.com/SRGSSR/pillarbox-web/issues/164#issuecomment-1893880683

Conclusion

It would be interesting to discuss this with the team in charge of analytics, in order to purge certain values and keep only what is really necessary.

Finally, the IL returns the analyticsMetadata object which is specific to tagComander and analytcsData object which is specific to Comscore, whereas everything should be sent to the tag manager for reconciliation.