possibility to create a audience using cookie

Avatar

Avatar

HariharanSubra1

Avatar

HariharanSubra1

HariharanSubra1

24-09-2018

possibility to create a audience using cookie

1 Comment (1 New)
1 Comment

Avatar

Avatar

Shruthi_N

Employee

Avatar

Shruthi_N

Employee

Shruthi_N
Employee

24-09-2018

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.