Yes. You can send a push whose link points at the exact page a user viewed, by passing the URL (or an ID) as a custom event attribute and referencing it from a push preset.
1. Create a custom event with attributes
Have your developers fire an event when the user performs the action — for example product_viewed — carrying the data needed to build the link, such as product_url or product_id, plus anything you want in the copy (product_name). Declare the same attributes on the event in Audience > Events.
2. Create a push preset with placeholders
Personalization from event attributes works on presets only, so build the message in Content > Push presets rather than typing custom content into the journey element.
- In the message text, insert placeholders using the Personalization button, or write Liquid objects in double curly braces referencing the placeholder name — for example
Still thinking about {{ product_name }}? - Do the same in the URL / Deep link field, for example
https://example.com/{{ product_url }}oryourapp://product/{{ product_id }}.
Single braces ({product_url}) are not valid — nothing will be substituted.
3. Build the Trigger-based journey
- Create a journey and add a Trigger-based entry, selecting the
product_viewedevent. - Add a Push element and select the preset you created.
- On the Push element, turn on Personalize message with event attributes (Dynamic Content) or Overwrite Liquid placeholders and pick the entry event. Attribute names must match the placeholder names used in the preset.
At send time each placeholder is replaced with the value from that user's event, so the link takes them straight back to the page they viewed. Always set a default/fallback value so users whose event lacked the attribute still get a working link.
Comments
0 comments
Please sign in to leave a comment.