Expand my Community achievements bar.

Join us for our second AMA on experimentation and personalization strategies with Target, occurring on June 3rd!
SOLVED

Using cookie to set webpage experience in Target VEC

Avatar

Level 2

We have a website that has a user type toggle. The homepage looks different depending on the user type selected. For instance,

In https://mysite.com. using the toggle, select user type "client". The specific homepage experience for "client" is loaded. There's a cookie called userType and the value of it is set to "client". This userType is also captured in Launch and is available as a parameter in Target. If the visitor abandons the site (without clearing cookies), the next time he visits, the "client" experience is loaded, which is based on the cookie.

 

The visitor goes to the website again, using the same URL, https://mysite.com. This time, they select user type called "dealer". In this case, userType cookie is set to "dealer", the homepage experience for "dealer" is loaded.

 

The URL is the same but the page is different based on userType cookie value.

 

The issue in Target VEC is that Delivery is set to https://mysite.com. and an experience is created for client. But the VEC is loading the "dealer" page. I tried Browse mode, selecting "Client" in the user type selector, then going back to Compose but the VEC doesn't load the client page, it stays on the dealer page.

 

I tried changing the Delivery to URL https://mysite.com And userType (the param used in Launch, and the name of the cookie) equals client. This doesn't work either.

 

How do I make the VEC read the userType cookie so that it loads the client page?

1 Accepted Solution

Avatar

Correct answer by
Level 2

I found a way to have the VEC load the client homepage. I went to the production site and used the dropdown to select the client homepage. By doing that, the cookie was set to "client". After doing that, only then did I open the activity. The VEC picked up the cookie value, which was still set to client from my visit moments before. The client homepage loads in VEC. I tested this by going to both dealer and client homepages in the production site. Whatever homepage I visited in Production was the one that loads in the VEC.

View solution in original post

3 Replies

Avatar

Level 5

Hi @m_alcantara ,

  1. Go to Adobe Target > Audiences > Create Audience
  2. Select Visitor Profile > userType equals "client" like below
  3. Save this audience
  4. Assign this audience to your experience

Screenshot-from-2025-05-08-13-27-28-05-08-2025_01_27_PM.png

Avatar

Level 2

Thanks @AnkitJasani29 

It didn't work. When the homepage loads in the VEC, it shows the dealer homepage including when I made changes to the Delivery as advised.

I also tried going to Browse mode in VEC, then using the dropdown to select "client". In production, when this is done, the client homepage loads. But in the VEC, doing it doesn't work. The dealer homepage is still loaded.

Avatar

Correct answer by
Level 2

I found a way to have the VEC load the client homepage. I went to the production site and used the dropdown to select the client homepage. By doing that, the cookie was set to "client". After doing that, only then did I open the activity. The VEC picked up the cookie value, which was still set to client from my visit moments before. The client homepage loads in VEC. I tested this by going to both dealer and client homepages in the production site. Whatever homepage I visited in Production was the one that loads in the VEC.