Profile script help, please! | Community
Skip to main content
January 18, 2024
Solved

Profile script help, please!

  • January 18, 2024
  • 1 reply
  • 2179 views

I am testing a new experience for our logged-in section. When a customer logs in, 10% of traffic is going to see a new version of the homepage. I am setting up the test to redirect to new URL which is all good. However, the customer can opt to navigate to the control version of the homepage. I'm concerned that if they try to do that, the redirect will come into play again. Is there a way to use a profile script to ensure the customer only sees the test version once per session? 

Thanks in advance...profile scripts are my Kryptonite! 😞 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by alexbishop

Makes sense, thanks for sticking with me!!!!

 

They click on a button "Back to portal" but we don't have an event ID or anything on that button, unfortunately. I guess that would be what we need? So you can call it out if that is triggered then display control, or whatever?


Yes exactly, so if it's possible you could add a query string parameter to the link URL that "back to portal" refers to. So instead of "www.home.com" it links to "www.home.com?btp" , for example; you could then have a profile script like

 

And an Audience of



You could then apply that Audience to your test, which would exclude anyone from the test that had clicked the "Back to portal" link

1 reply

alexbishop
Adobe Employee
Adobe Employee
January 18, 2024

So just to check my understanding, if they have chosen to navigate to the control version in session 1, you would then want them to be re-directed to the new URL again if they log in during session 2?

January 18, 2024

Yeah, so...customer is in the test 10%, they see the test page, but in that same session they want to see the original page too so use the nav to go there. Will the test set-up allow them to see the original page, or will the "redirect to URL" in Target mean that they are never able to leave the test version within that session?

January 18, 2024

Yes exactly, so if it's possible you could add a query string parameter to the link URL that "back to portal" refers to. So instead of "www.home.com" it links to "www.home.com?btp" , for example; you could then have a profile script like

 

And an Audience of



You could then apply that Audience to your test, which would exclude anyone from the test that had clicked the "Back to portal" link


Ooh, we actually have something already then...when they first enter the homepage it has a URL of "www.home.com/member-portal" , and when they use the back button from the experiment it changes the URL to "www.home.com/member-portal/" with added "/". Is that too subtle to work? Or could I do the following with your audience example and we'd be winning?