Reply
Highlighted
Regular Visitor
Posts: 33
Registered: ‎09-22-2015

New "home" after first visit

On our new marketing website we run a splash-page on our homepage that has basically 3 options, that sends you to a section of the page.

What I want: After selection of preferred section, that selection should be persisted and upon any next visit the user should be redirected to the previously chosen section.

What I tried so far:

Set UDO to text with condition: URL equals (ignore case) ../xxx

Set data value.PNG

Persist Variable UDO, visitor and keep first value set and store in cookie
Persist Data Value.PNG

Javascript code: redirect from ../ to ../xxx with condition cookie contains xxx AND url equals ../
Rdirect by Javascript code.PNG

The UDO gets set correctly, but is never stored in cookie.

Any thoughts?

Reply
0 Kudos
Tealium Employee
Posts: 756
Registered: ‎09-01-2015

Re: New "home" after first visit

Hi @dajo_rodrigo

I am seeing the UDO var and cookie getting set as expected when I visit https://new.brandnewday.nl/particulier/

Screen Shot 2018-10-01 at 10.55.24 AM.png

What I don't see working is the redirect. The issue there is that the logic check of the redirect extension fails:

b['cp.VirtualHome'].toString().toLowerCase().indexOf('particulier'.toLowerCase()) > -1 && b['dom.url'].toString().toLowerCase() == 'https://new.brandnewday.nl'.toLowerCase()

It fails because:

"https://new.brandnewday.nl/" != "https://new.brandnewday.nl"

Notice their is no trailing slash at the end of the right side.

I hope this helps point you in the right direction.

Cheers,
-Dan

Reply
0 Kudos