Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
There is a platform sending me traffic very much like an affiliate network. Their users have a "subid" parameter in the URL that looks like this: "http://mysite.com?subid=12345"
Then I make an API call to fetch the order details but I don't get to find any field with this parameter. I saw some people fetching UTM parameters via GraphAPI calls but I think that's limited to source, medium and etc, not custom parameters like the one I need.
If somebody has the answer that'd be great.
Hi Milwelo
Is the `?subid=12345` URL parameter added to your Shopify store URL, ie: www.mystorename.shopify.com/?subid=12345
You may be able to get this via the `request` Liquid and then store it so it can be added to the order as a metafield. There's info on how to use the `request` object for this purpose here: https://community.shopify.com/c/shopify-discussions/how-to-get-full-current-custom-page-url-in-liqui...
Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025