Member-only story

Tracking Shopify Abandoned Carts

Stephen Keable
2 min readDec 13, 2018

--

If you are using Shopify’s built in abandoned cart email to recover carts, you might be looking to track the number of clicks from the emails.

The Abandoned Reports page gives some insight, with the Email Status and Recovery Status columns, however I wanted a little bit more info.

I decided to use Google Analytics and UTM tags to try and achieve this.

Editing the email template in Shopify’s admin area go to — Settings -> Notifications -> Adbandoned checkout

Look for the “Click here to view your cart” button’s HTML and the liquid tag:-

{{ url }}

Then add some UTM tags after this like:-

{{ url }}&utm_source=shopify&utm_medium=email&utm_campaign=abandoned

Using the & rather than ? at the start because, Shopify includes a query string parameter with a secret code.

Then below that should be a link to the front of your store as well, you can tag this too, changing:

{{ shop.url }}

To

{{ shop.url }}?utm_source=shopify&utm_medium=email&utm_campaign=abandoned

This time with a ? instead of & as no query string parameters are added to this one. If we use the & on a URL which does not already have…

--

--

Stephen Keable
Stephen Keable

Written by Stephen Keable

Shopify partner, JavaScript/Liquid/Swift developer, convert to serverless architecture and builder of digital products people love to use since 1999.

No responses yet