Marketing events API not working on checkout pages

Solved
SoldLive
Shopify Partner
26 1 2

I have an abandoned cart app that is sending links back to the checkout page.

 

Per the documentation (https://help.shopify.com/en/api/reference/marketingevent), we set up the appropriate UTM parameters hoping to get listed in the “View conversion details” modal of an order page like OrderlyEmails does:

Screen Shot 2019-10-29 at 10.22.52 AM.png 

 

We can get this to work if we our links with the appropriate UTM parameters take the shopper to the product pages. But not when we link to the checkout pages.

 

Do the session details not show the app details + UTM parameters if the checkout URL is used? Is there a clever workaround to this that I'm failing to see?

 

 

Accepted Solution (1)
_JB
Shopify Staff
Shopify Staff
836 100 219

This is an accepted solution.

Hey @SoldLive ,

 

You should be able to get UTMs to appear with the order when sending customers directly to the checkout. Can you confirm the URL format you're using to send customers to the checkout?

 

This format is working in my tests: .myshopify.com/12345678/checkouts/193458cfbeb96161da2db8ddfa4e3faf?key=7838ecea60e718937cf50b1d4518f304&utm_source=test&utm_medium=test2&utm_campaign=test3

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 2 (2)
_JB
Shopify Staff
Shopify Staff
836 100 219

This is an accepted solution.

Hey @SoldLive ,

 

You should be able to get UTMs to appear with the order when sending customers directly to the checkout. Can you confirm the URL format you're using to send customers to the checkout?

 

This format is working in my tests: .myshopify.com/12345678/checkouts/193458cfbeb96161da2db8ddfa4e3faf?key=7838ecea60e718937cf50b1d4518f304&utm_source=test&utm_medium=test2&utm_campaign=test3

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

SoldLive
Shopify Partner
26 1 2

Thanks @_JB 


I think we implemented it incorrectly before (put the utm parameters in our url shortener instead of the checkout url)

 

We fixed it and will keep an eye on it to verify it works!