GTM – How to fire the same random number across multiple tags

TMS

I created a javascript variable to generate a random number and assigned to a custom HTML tag to push the value to the data layer.

Value pushed to a variable called OrdId

Data layer variable created to pull the value from data layer:

Data layer variable (OrdId) added to the Order ID parameter on floodlight tag setup.

TestingĀ  – GTM debug

Push to data layer:

Tags firing with the OrdId unique value for all.

Leave a Reply

Your email address will not be published. Required fields are marked *