Unable to send utm parameters from headless storefront to cart page in shopify

Shopify Partner
2 0 0

We are working on a headless store front using nextJS. The application is being hosted on a vercel server. Now our requirement is that we want orders to be tracked using UTM parameters. We have tried to send the UTM parameters in the url that we get when we query our store with the mutation cartCreate. But this is not working. Could anyone please suggest a way as to how we could record the UTM parameters with the cart so that it gets stored in the order which could later be used for analytics? Thanks

Replies 0 (0)