Answered

Is there a way to capture a visitor's current page as an attribute?

  • 29 March 2023
  • 1 reply
  • 74 views

Basically I want to show a banner to users letting them know the app has been updated. I want to add a link action to perform a hard refresh of the current page. So I’d like to use something like {current_page}?app=refresh. 

icon

Best answer by Daniel M15 29 March 2023, 18:29

View original

1 reply

Userlevel 2

Hey @Patrick H12! Daniel from Customer Support Engineering here 🔧 

 

We don’t surface the user’s current page URL as a dynamic variable, however, you should be able to achieve this by:

  1. Setting up a custom attribute “current URL”.
  2. Populating this attribute with the current page URL in your login snippet, for each page that the Messenger is installed on.

That way, each time the user ‘ping’s us (i.e., when they log in or are updated), you’ll know the most recent URL they visited. You can use this new custom attribute then as a dynamic variable in your messaging 🙌 

 

Hope this helps!

Reply