Skip to content
weballin

weballin DIGIWIKI

Data Layer Variable

A data-layer variable reads a specified value from GTM’s data model for use in a tag or condition.

weballin

Check when data is pushed and when the variable is evaluated. Earlier values can remain on the current page; the variable is not limited to fields in the current event object.

Use keys appropriate to the nested structure and variable version. Clear ecommerce state appropriately before sending new data so previous item information is not mixed in.

References

Frequently asked questions

Can earlier product values affect a later event?

Yes. Inspect the current data model as well as each individual push.