Hi,
in that case, you would benefit from doing a Profile Script, setting a flag in the users target profile, when a page is visits that meet your criteria.
The script below, looks for the query-string parameter 'cid' and if it exists, then the value of cid are set in the profile (named, what every you name the profile script)
try{
var mboxParam = page.param('cid').toLowerCase() || ""; if (mboxParam != "") {
return mboxParam;
}
}
catch(e){
// Error handling...
}
This script simply just take the value of cid and store that in the profile, if a new cid-query are set then the value are overwritten.
The following script will stack (add, comma separated list) and remove duplicated values:
// Better stacking via user-profile (no duplicates)
try{
var mboxParam = page.param('cid').toLowerCase() || ""; if (mboxParam != "") {
if(user.get('custcmp')) {
if (user.get('custcmp').indexOf(mboxParam) != -1) {
mboxParam = user.get('custcmp');
}
else {
mboxParam = user.get('custcmp') + ',' + mboxParam;
}
}
return mboxParam;
}
}
catch(e){
// Error handling...
}
Hope this helps?
/Løjmann
Thomas Løjmann Jørgensen
Lead Solution Architect - Adobe Marketing Cloud
www.ecapacity.com