Solved

Dynamic links for web url

  • 18 January 2024
  • 2 replies
  • 68 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

icon

Best answer by Mau 18 January 2024, 12:12

View original

2 replies

Userlevel 3

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. 

Fantastic, thanks Mau!

Reply