Expand my Community achievements bar.

SOLVED

Dynamic Content for visitors of a special site section

Avatar

Level 2

Hello everybody,

I am still fairly new to Adobe Target. I have worked with Google Optimize before and the logic to Adobe Target seems to be slightly different. I want to do something pretty simple, but I can't find the solution:

 

Scenario: User visits our website. The person goes to the career section during the session. The person clicks through the website and eventually ends up back on the start page. The start page should now contain a career header.

 

Current status: What I've accomplished is that the career header is displayed on the start page if the person was on the career page exactly before, so if the referrer is /career.

 

But the career header on the start page should also be shown if:
a) The user has been on other sub-pages in the meantime
b) When the user returns after a few minuts/days

 

The banner should simply be displayed to people who have been to the career site at some point.

 

Many thanks in advance

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Take a look at profile scripts. 

https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/use-profile-scripts-...

https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/variables-profiles-p...

 

Something like this should work:

if (currentPage.indexOf('career') > -1) { 
    return true; 
}

 

This will create a new profile attribute in the name of whatever you called the profile script (user.whatever). You can then create an audience to look at that profile variable. Just need to make sure that you don't set it back to false. It should stick to the life of the tntID that the user currently has, or to the life of the mbox3rdpartyid, if you have that implemented.

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Take a look at profile scripts. 

https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/use-profile-scripts-...

https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/variables-profiles-p...

 

Something like this should work:

if (currentPage.indexOf('career') > -1) { 
    return true; 
}

 

This will create a new profile attribute in the name of whatever you called the profile script (user.whatever). You can then create an audience to look at that profile variable. Just need to make sure that you don't set it back to false. It should stick to the life of the tntID that the user currently has, or to the life of the mbox3rdpartyid, if you have that implemented.

Avatar

Level 2
Hey Eric_Vidana, thank you very much for your help. I'm going to take a closer look at this. I notice here once again that Adobe is really not good in user experience. Most of the time anything is possible, but only by taking long and complicated ways around and with experience in programming language.

Avatar

Level 4

@Eric_Vidana , when I'm in the profile scripts editor, it looks like the token for page is page.url instead of currentPage. Or was that just a snippet you shared where you would have used the page.url token above it?

Avatar

Community Advisor
@zach_shearer good catch. I was thinking about the audience builder where it is named Current Page. page.url is the right token.