**This integration is specifically built to be used with our Reclaim product for SMS (not email). It does not work for our Grow product.**
This integration, in conjunction with our Viewed Product events, will pass a custom Viewed Product event tied to an email address to Postscript.
If that person has an opted-in email address and phone number, they will receive a Viewed Product SMS.
To use this feature, you must have the most recent version of our script on your website. You can find your script in your account under Code Script > View Script. Click here for a link to all of our tutorials on how to add the script to your site, in case you need a refresher.
You must also put the Viewed Product script to your site, set up the Postscript integration, and create an automated Viewed Product flow in Postscript (steps for all of these tasks are below). For steps on how to use our Add to Cart script with Postscript, click here.
NOTE: We must enable this feature for you. If you’ve not already spoken with someone on our team, please ensure you request that we enable this for you.
On your website
Note: If you're using our custom Shopify Integration app, the Viewed Product script will automatically be installed.
Inside of your site builder, add our Viewed Product script to fire when someone views a product:
<script>geq.event('Viewed Product Reclaim', item);</script>
If you do not have an existing Viewed Product tracking script, add this to your theme:
<script type="text/javascript"> var item = { Name: ##{{ product.title|json }}, ProductID: ##{{ product.id|json }}, ImageURL: "https:##{{ product.featured_image.src|img_url:'grande' }}", URL: "##{{ shop.secure_url }}##{{ product.url }}", Brand: ##{{ product.vendor|json }}, Price: ##{{ product.price|money|json }}, CompareAtPrice: ##{{ product.compare_at_price_max|money|json }} }; geq.event('Viewed Product Reclaim', item); </script>
Set up Postscript integration
1. You will need your API Key. In Postscript, go to the Settings and click API. Click Create Security Key Pair.
2. Click Yes to create the key pair.
3. Copy the Public Key (blurred in the image below).
4. From your Retention.com account, go to Integrations > Available Integrations, and choose Postscript.
5. Paste your API Key, and click Updated Credentials.
6. You will see the Integration Settings where you can Disable/Enable and Remove the integration. You can also view or change the API Details.
Create Viewed Product automation
1. Request a Test Event from your client success manager. Please note that for PostScript, we must send a test event to an active email subscriber in your account, so please provide one for us to use (ideally, your own).
2. Go to Messaging > Automations > Create Automation > Create Automation Flow.
3. Choose Use an automation template, and click Continue.
4. Select the Browse Abandonment - Subscriber Viewed Product template, and click Create flow.
5. Next, you will configure the flow for your Viewed Product events. Remember: This will only work after an event has been sent.
Trigger event or property > Retention.com - Viewed_Product_Reclaim
Subscriber filter > Currently in automation flow > does not include > [Existing browse abandonment automation flow]
Entry filter > Subscribers can enter the flow once in the last > 7-14 days (We recommend 7-14 days, but it should match your original abandoned cart flow)
Cancellation Trigger > Order Created
Click Save.
6. Click the Send message. Then, click Merge Tags. Below are example Trigger Event Properties from our test event. You will need to modify the node to add the Trigger Event Properties that you're passing through with our event.
Note: If you're using our custom Shopify integration app, the below merge tags will be the Trigger Event Properties.
7. Click Save Changes and then Schedule or Activate.
8. Click to Activate Automation Now.
View Viewed Product events
From your Postscript dashboard, go to Analytics > Messages to view the flow send data.
Additionally, you can see these events successfully passing through in your Retention.com account when you see the Viewed Product Reclaim option populate under Event Details. This is an easy way to confirm that our events have been successfully implemented.
Have questions? Message us on chat or email us at support[at]retention.com!