Hi @chrisch4,
As Gokul indicated you can send the data to Target as a custom parameter or a profile parameter. You can only send string data in those parameters. So you could possibly just send the userProfile directly (assuming it's a string) or you could send it in parts if it is an object. Here's an example:
userProfile = "loggedInCustomer:yes|cookies:true|favColor:blue"
//add to top of at.js file or before inclusion to the page
function targetPageParams() { return profile.userProfile=userProfile; }
If you're dealing with an object you could do something like this:
userProfile = {
loggedInCustomer: true,
cookies: true,
favColor: "blue"
}
//add to top of at.js file or prior to the at.js inclusion
function targetPageParams() { return profile.loggedIn=userProfile.loggedInCustomer&profile.favColor=userProfile.favColor; }
Then this userProfile data will be getting sent to Target and you'll be able to build an audience off of it by creating an audience rule based on: visitor profile > loggedIn when it equals 'true'. Or something like that. Do note that if your parameters in the TargetPageParams function do NOT have a "profile." prefix you'd find them in the custom parameter dimension in the audience rule builder and not the visitor profile dimension.