Hi,
I am working on a third party integration in Adobe Data Collection and I have the need to populate a specific conversion parameter with a unique ID. I haven't got any value related to the conversion ID available at the moment, neither on the url nor the dataLayer object.
I can see that I have available in Data Collection a Data Element called Random number that generates a hit ID according to the official documentation:
Use this data element to generate a random number. It’s often used for sampling data or creating IDs, such as a Hit ID. The random number can also be used to obfuscate or salt sensitive data. Some examples might include:
Specify the minimum and maximum values for your random number.
Defaults:
Minimum: 0
Maximum: 1000000000
My only concern is if it generates only unique IDs, not repeating instances up to the maximum figure. It is important for me to know this information because I am integrating the conversion tag of the third party provider and would like to make sure that all values are unique.
Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @RaulFo ,
You can combine the random number with something else that changes frequently or is user/session-specific.
Example: Timestamp
let randomNum = Math.floor(Math.random() * 1000000000);
let timestamp = Date.now();
return timestamp + "-" + randomNum;
Views
Replies
Total Likes
Hi @RaulFo ,
You can combine the random number with something else that changes frequently or is user/session-specific.
Example: Timestamp
let randomNum = Math.floor(Math.random() * 1000000000);
let timestamp = Date.now();
return timestamp + "-" + randomNum;
Views
Replies
Total Likes
Views
Likes
Replies