1

I'm new to using DTM and have some third party tags that need unique ID variables.

In GTM there was the functionality to add a random number string but I can't find any documentation to do this in DTM.

Has anyone done this before?

Cheers,

Rosie

  • 1
    What's the purpose of the unique ID variables? Does adding an ID make the variable value unique to the session? Is it used to control expiration? – Mark Stringham Dec 13 '16 at 21:15
  • Hi Mark - Thanks for you message. Exactly as you say it's to make the variable value unique to the session. –  Dec 14 '16 at 10:14
  • 1
    Hi Rosie - There is no native function in DTM for creating unique IDs but you can set a cookie with a session expiration that contains the unique ID. Hope this helps. – Mark Stringham Dec 20 '16 at 19:31

1 Answers1

0

There's a pretty straight forward post on generating a random number string in JavaScript.

The thought around that would be to create a Data Element and set the type to custom script and drop in the random number string. Then create a Page Load rule that sets an eVar or sProp to whatever that newly created Data Element is?

Community
  • 1
  • 1
Brando
  • 88
  • 12