Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!

possibility to create a audience using cookie

Avatar

Level 3

9/24/18

possibility to create a audience using cookie

1 Comment

Avatar

Employee

9/24/18

Hi,

You can create an audience based off a cookie by just parsing the cookie and sending to the mbox as a parameter by using a

DTM data element or by js on the page.

DTM route would be the preferred option or if you choose to use js you can use code snippet that looks something like this -->

targetPageParams = function() {

var cookieValue = document.cookie.replace(/(?:(?:^|.*;\s*)COOKIENAME\s*\=\s*([^;]*).*$)|^.*$/, "$1");

              return "PARAMNAME="+cookieValue;

        };

/* replace `COOKIENAME` and `PARAMNAME` */

Hope this helps.