Yep, exactly.
Now i'm using Tag Manager js custom code functions in order to retrieve it from {{Page Url}}.
But this would be a much cleaner way!
Thanks,
A.
Mmm,
I think it's not the correct code snippet.
From what I can see you should look at GetOrderCompletedPage in TrackingCodeHelper class.
There, when TypeTag.GoogleTagManager condition is met, I would add orderId in the datalayer.
Now there are PageType, PageUrl, email, value, currency and ProductIDList
Thank you,
A.
Hi,
is it possible to add orderId variable to tag manager datalayer in the OrderComplete page?
Thank you,