Show a campaign when user clicks a specific link from the page via RTP | Community
Skip to main content
New Participant
May 4, 2020
Question

Show a campaign when user clicks a specific link from the page via RTP

  • May 4, 2020
  • 1 reply
  • 2391 views

HI All, 

I am trying to create a campaign if user is on a specific folder on the site e.g. site.com/folder1.html and pages under it. Now, if user clicks on any page which is not from this folder and some other folder on the site e.g site.com/folder2.html then it should display a widget asking the user to be sure if he wants to move to folder2 pages or stay back on folder1 pages.

 

I thought if referrals segment condition under Behaviour works but that have some other logic. Any suggestions on how can this be acheived?

PS - Show a campaign to users when clicking on specific set of pages or moves to other folder than the current one.

 

Thanks in advance.

Regards,

Kamal 

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

1 reply

Carrie_Chandle1
New Participant
May 4, 2020

Hi @kamaljeetk69606!

 

What you're looking to do (display an RTP campaign to intercept a link click) goes beyond the built-in capabilities for RTP. You may need to look into custom javascript.

 

Similarly, we wanted to redirect a user to a specific page upon link click (via RTP based on which segment they matched) and we ended up implementing a javascript solution. Maybe someone in the community can lend their javascript expertise here, and I also recommend checking out the developers section for RTP https://developers.marketo.com/javascript-api/web-personalization/  🙂

New Participant
May 8, 2020

Thanks for your reply. Yes, its out of built in capabilities.

 

So I am planning to capture the link URL (of the link which is clicked) in custom variable of user context API and the put a condition in the segment if custom variable contains "required target url part" and then show the campaign if user falls in the segment. I am hoping that this will work but not sure.

 

Regards,

Kamal