General developer forum

How to Obtain Adobe Marketing Cloud ID when Cookies not set previously using DTM?

 
Picture of Liana Melissa
How to Obtain Adobe Marketing Cloud ID when Cookies not set previously using DTM?
 

I'm trying to figure out how to capture the Adobe Marketing Cloud ID (MID) when a page first loads using a Data Element (or by whatever alternative method will work). My Data Element logic works fine, if the Marketing Cloud cookie already exists. If there is no Marketing Cloud Cookie already existing, my data element reads the Marketing Cloud ID cookie as it is being written but the MID is not populated in the cookie at the time the Data Element reads it.


Is there any way I can access the value and report it in an eVar on the initial page load? I actually take the MID and combine it with an additional value to create the eVar value. As stated my code works unless the Marketing Cloud ID doesn't exist and has to be created during the page load.

 
Average of ratings: -
Picture of Darko Miletić
Re: How to Obtain Adobe Marketing Cloud ID when Cookies not set previously using DTM?
Core developersParticularly helpful Moodlers

I doubt anybody understands what it is that you ask. Could you be more specific? How is this related to the Moodle?

 
Average of ratings: -