Use case: sending cart recovery URL via email

In custom integrations, you can add a button to your content that allows your contacts to directly recover their abandoned carts.

In this article, you will learn how to send a cart recovery link via email. This process can be applied to any type of content created in Connectif. 

  

Implementation time: Varies depending on the technical team.
Difficulty: High.
When to use it?: To add a cart recovery button in content.

Before you start: prerequisites

 

It's possible to rebuild a cart directly from a link, but it requires development by your IT team.

  • On the website side, an internal function must be created to detect a URL with a special parameter to regenerate the user's cart
  • In Connectif, the native cart URL of the website must be used along with the parameter created in the previous step, assigned the value "Tokenized Cart" included in the "On Cart Abandonment" and "Get Last Cart" nodes
  

This data, the "Tokenized Cart", is of type Text, and by using it as the URL parameter, a link is created that takes the contact directly to their cart. The parameter exported by the node is Base64 encoded to avoid interference with other parameters in the URL.

  • Your technical team must implement a solution to process a URL with an included parameter, e.g., "www.example.com/cart?token=". The goal is for the eCommerce to read that token from the URL and turn it into a cart for the current session of the visiting contact.
  

Once that parameter in the URL is decoded from Base64, it retrieves the list of product IDs and quantities the user had in their cart, thereby regenerating it.

STEP 1: Creating the Email

1. Go to “Content > Email” and click  Create new email.

2. Design your content to fit your strategy. 

3. Include at least one Button element.

Cart recovery URL - 4-min.png

 

To learn more about how to use the Email Editor, check out this link

4. Go to the Button element's settings.

5. In the Text area, type the text that will appear on the button.

6. In the Button link area, enter the special parameter URL developed by your team, and right after it, place a variable such as: {{Tokenisedcart}}

Cart recovery URL - 5-min.png

  

This URL has two parts: the fixed part (your website's cart URL) and the parameter (with Base64 encoded information) that varies based on the user's "Cart Token".

7. Once your email design is complete, save it.

STEP 2: Creating the workflow with the content that includes the button

8. Go to “Workflows” and click  Create new workflow.

9. Add a "On Cart Abandonment" node to your workflow.

Cart recovery URL - 1-min.png

10. In the Limitations tab, disable the Disable after firing limitation and add a time limitation of 1 day so this workflow sends at most once per day per contact.

Cart recovery URL - 2-min.png

  

The “On Cart Abandonment” node contains the “Tokenized Cart” field which exports the necessary information to the workflow for the cart recovery URL in the email.

Cart recovery URL - 3-min.png

11. Connect the “On Cart Abandonment” node to the “Send Email” node.

Cart recovery URL - 6-min.png

12. Go to the "Send email" node's settings.

13. Select the email you just created and configure the sending.

14. In the final step of the node settings, Variables, link the Tokenized Cart field to the variable you added in the cart recovery link. This way, the cart information from the "On Cart Abandonment" node will be included in the link variable so the contact receives their specific abandoned cart.

Cart recovery URL - 7-min.png

15. Click Apply.

16. Save and activate your workflow.

 

Success!
The Last Cart Recovery URL has been added to your emails.


Keep learning!

To make the most of your Connectif account, we recommend continuing with the following articles: