Skip to main content
Solved

Dynamic links for web url

  • 18 January 2024
  • 2 replies
  • 194 views

Hi there

Disclaimer: New here - I had a look at the suggested descriptions but couldn’t find out about this.

I am sending a push notification and there is the ability to deep link to a specific URL.

What I want is for it to be dynamic, based on the event. E.g. instead of

link.to/here/ I want it to be link.to/here/123123

Is this possible - seems like it should be?

Cheers,

Aidan

Best answer by Mau

Hi @aidanb 

In general, you can personalize links by using liquid code. You can find more information here on Liquid just in case, and I am also linking our document on how to set up push notifications here.

You mentioned that you would like to get data from an event, and assuming this event triggers the campaign that sends the push notification, an example could look like the following: Let's say you have an event named "purchases" with a unique identifier (purchase_id) for each user's purchase.

The code might look something like this:
 
https://yoursite.com/purchases/{{event.purchase_id}}
 
This example uses liquid to generate a deep link URL that includes this identifier pulled from the event. 

View original
Did this topic help you find an answer to your question?

2 replies

Mau
  • 56 replies
  • Answer
  • January 18, 2024

Hi @aidanb 

In general, you can personalize links by using liquid code. You can find more information here on Liquid just in case, and I am also linking our document on how to set up push notifications here.

You mentioned that you would like to get data from an event, and assuming this event triggers the campaign that sends the push notification, an example could look like the following: Let's say you have an event named "purchases" with a unique identifier (purchase_id) for each user's purchase.

The code might look something like this:
 
https://yoursite.com/purchases/{{event.purchase_id}}
 
This example uses liquid to generate a deep link URL that includes this identifier pulled from the event. 


  • Author
  • Novice
  • 2 replies
  • January 18, 2024

Fantastic, thanks Mau!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings