Have your say in Community Polls: What was/is your greatest motivation to start your own business?

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 Partner
39 3 24

Any luck here?

Conspire, Shopify Experts Since 2011 // Los Angeles, California // View Website Showreel
B2B Draft Order Invoices & Reminders Shopify App: Leverage Shopify draft orders for invoicing & send payment reminders. A must for any B2B business.
Wishlist & B2B Project Planner: A multi-wishlist solution geared towards b2b applications and planning multiple projects with many products involved.
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
10 0 2

Is there any update on this?

Trying myself on migration to Headless