Web push with last visited product

Published May 04, 2023
Modules
Difficulty

You can use web push notifications to remind customers of their last viewed products, helping them pick up where they left off and complete their purchase journey. Personalized push notifications can increase customer engagement, retention, and ultimately, sales. Reach your customers in a non-intrusive way and provide a seamless shopping experience that keeps your brand top of mind.

In this use case, you will create a workflow sending a personalized web push with product recently viewed by customer.

Prerequisites


Process


In this use case, you will go through the following steps:

  1. Create aggregates returning the tile, image and link of the last visited product.
  2. Create a web push template with aggregate inserts.
  3. Create a workflow to send customers a webpush.

Create aggregates


In this part of the process, create three aggregates that return title, image, and link of the last product customer had visited.

Aggregate returning the title of the last visited product


  1. Go to Analytics icon Analytics > Aggregates > Create aggregate.
  2. As the aggregate type, select Profile.
  3. Enter the name of the aggregate.
  4. Click Analyze profiles by and select Last.
  5. From the Choose event dropdown list, select the Visited page event.
  6. As the event parameter, select og:title
  7. Click the + where button.
  8. From the Choose parameter drop-down list, select the product:retailer_part_no parameter.
  9. From the Choose operator dropdown list, select String and Is not empty.
  10. Using the date picker in the lower-right corner, set the time range to Custom > Last 12 hours. Confirm your choice with the Apply button.
  11. Click Save.
The view of the aggregate configuration
Configuration of the aggregate returing the title of the last seen product

Aggregate returning the image of the last visited product


  1. Go to Analytics icon Analytics > Aggregates > Create aggregate.
  2. As the aggregate type, select Profile.
  3. Enter the name of the aggregate.
  4. Click Analyze profiles by and select Last.
  5. From the Choose event dropdown list, select the Visited page event.
  6. As the event parameter, select og:image
  7. Click the + where button.
  8. From the Choose parameter drop-down list, select the product:retailer_part_no parameter.
  9. From the Choose operator dropdown list, select String and Is not empty.
  10. Using the date picker in the lower-right corner, set the time range to Custom > Last 12 hours. Confirm your choice with the Apply button.
  11. Click Save.
The view of the aggregate configuration
Configuration of the aggregate returing the image of the last seen product

  1. Go to Analytics icon Analytics > Aggregates > Create aggregate.
  2. As the aggregate type, select Profile.
  3. Enter the name of the aggregate.
  4. Click Analyze profiles by and select Last.
  5. From the Choose event dropdown list, select the Visited page event.
  6. As the event parameter, select og:url
  7. Click the + where button.
  8. From the Choose parameter drop-down list, select the product:retailer_part_no parameter.
  9. From the Choose operator dropdown list, select String and Is not empty.
  10. Using the date picker in the lower-right corner, set the time range to Custom > Last 12 hours. Confirm your choice with the Apply button.
  11. Click Save.
The view of the aggregate configuration
Configuration of the aggregate returing the link of the last seen product

Create a web push template


In this part of the process, you will create a web push template with aggregate inserts you created in the previous part of the process.

  1. Go to Communication icon Communication > Web Push > Templates > Create new.
  2. Click Drag&drop builder.
  3. Enter the name of the template.
  4. In the Title field, define the title you want to display in the web push.
  5. In the Message field, define the copy you want to appear in the web push. In our case it will be an insert with aggregate returing the product title, created in the previous step. Enter the following code:
    {% aggregate ae5d9077-d723-3649-8233-08fab406ec53 %}{{aggregate_result[0]}}{% endaggregate %}
        
    Note: Aggregate IDs are used as examples for the purpose of this use case.
  6. In the URL field, define the link you want to display in the web push. In our case it will be an insert with aggregate returing the product link, created in the previous step. Enter the following code:
    {% aggregate 87eba5f7-40ab-3b24-98df-ae2ac6263474 %}{{aggregate_result[0]}}{% endaggregate %}
        
  7. In the Icon field, define the image you want to display in the web push. In our case it will be an insert with aggregate returing the product image, created in the previous step. Enter the following code:
    {% aggregate 71293b39-ea01-310c-b887-3cb91b6645e3 %}{{aggregate_result[0]}}{% endaggregate %}
        
  8. Optionally, you can define an image in the Image field.
The view of the web push template configuration
Web push template configuration

Create a workflow


The workflow will be triggered by the session.end event. The delay is set to 2 hours, after this time customer will receive a web push with the last seen product.

  1. Go to Automation icon Automation > Workflows > New workflow.
  2. Enter the name of the workflow.

Define the trigger node


  1. As the first node, add the Profile Event. In the settings of the node, select the session.end event.
  2. Click Apply.

Configure the Delay node


  1. Add the Delay node. In the node settings:
    1. In the Delay field, type 2.
    2. From the Unit dropdown list, choose Hour.
  2. Click Apply.

Configure the Send Web Push node


  1. Add the Send Web Push node. In the node settings:
    1. In the Content section, from the Webpush template dropdown, select the template you created in the previous step.
    2. In the Schedule section, set the Webpush lifespan (TTL) according to your business needs.
    3. You can describe campaigns with additional parameters.
  2. Click Apply.

Add the finishing node


  1. Add the End node to the Send Web Push node.
  2. In the upper right corner, click Save & Run.
The workflow configuration
The workflow configuration

Check the use case set up on the Synerise Demo workspace


You can check the all the configurations directly in Synerise Demo workspace:

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker