How do I forward the UTM values to checkout when using shopify as a headless ecommerce?

How do I forward the UTM values to checkout when using shopify as a headless ecommerce?

achadee
Visitor
1 0 3

I cant seem to forward the UTM values onto the checkout, google analytics is still saying that its coming from a referral or (other) for the transactions.

Because the checkout is on a seperate domain using Storefront API, I need to be able to forward the values much like you would on the "Buy Button"

 

Thanks

Replies 5 (5)

Chadyka
Shopify Partner
9 0 4

I'm still having an issue setting up the storefront api checkout with utm and tracking. Have you managed to figure it out?

ChrisTough
Shopify Partner
4 0 1

I'm also having this issue.

 

The Storefront API provides a web_url when creating a new checkout. We append our UTMs to this web_url then direct the user to the web_url. Shopify removes the UTMs on redirect to a different final destination URL .

 

We've tested this using the Shopify JavaScript Buy SDK and via our backend storefront api webhooks, both return the same web_url which has the same problem.

 

If anyone has come across this and knows of a workaround, let us know.

ConspireAgency
Shopify Expert
37 3 24

Any luck here?

Conspire Agency //
Los Angeles, California //
https://conspireagency.com
View my showreel: https://www.youtube.com/watch?v=E9upo48FQUg
ChrisTough
Shopify Partner
4 0 1

No luck as of yet. Our feature got put on hold due to issue. Not sure when we'll re-test again.

Benjaminka
Shopify Partner
8 0 0

Is there any update on this?

Trying myself on migration to Headless