Recently a customer posted this question to the DTM team:

“How do I configure DTM so that I can split first time visitors who do not make a purchase into two groups (retargeting lists) from two separate retargeting vendors? I then want to make sure if they come back to the site again (visit 2+) they only keep getting tagged with the original tag. I’m trying to avoid double view they attribution credit given for the same order to two separate vendors who are on a revenue share model.”

So essentially the question is about taking a pool of customers who are making their initial visit to the site. Upon entry we need to do a 50/50 split of the traffic and assign them to either Group A or Group B. The visitors in that group will be tagged with the vendors retargeting tag assigned to that group Vendor A or Vendor B. Now on the next and subsequent visits that the users come back to site how can we ensure that the member of a specific group continue to get served the same vendor tag for each visit.


The solution for this is fairly straightforward within DTM.

Step 1: Create a Data Element to handle the segmenting of the users into their grouping.


Set the persistence of the Data Element to “Visitor”. Select “Custom Script” from the Type section and then select the “Open Editor” button. When the editor windows opens type in the code that is listed in the image below.


Save the code and save the Data Element.

Step 2: Create two page load rules. One for each grouping as shown below.


In the condition section, you will select Data Element from the criteria and then select the Data Element from the list that you just created in Step 1. In the value field, enter in the name of the first grouping.

Next, in the JavaScript/Third Party Tag Section, select the “Add New Script” button and paste in the code from the vendor that applies to the grouping entered into the criteria section. Save the code, and then save the rule. Repeat this step for the second grouping.

Once you have tested these rules and published the code you are finished.

For additional resources on some of the topics used for this use case, please refer to this list:

If you have questions that you would like the DTM team to address in a future DTM FAQ Mailbag post, post your questions on the Adobe Marketing Cloud Forum with “DTM FAQ Request” in the subject and your question might end up here.


Dear Sir/Madam

My name is David Benedek, I’m from Romania, Europe. I've done researches in blogging in my home country when I did my BA studies; I’ve studied how Romanian bloggers use their blog to make money with them and how they achieve it. 

Now I’m finishing my MA studies and I’m studying corporate blogs, I want to make a comparison between American and Romanian corporate blogs, how they blog, for what purpose are they blogging. I want to ask you if you’d mind to answer some questions? 

If you have time, here you find my Survey:

Thank you for your answer!

Yours sincerely, 


(benedek_david [at]