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?
Solved! Go to Solution.
Views
Replies
Total Likes
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.
Hi @m_alcantara ,
Views
Replies
Total Likes
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.
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.
Views
Likes
Replies