Hi there,
I am new to shopify and trying to find my way around so I would appreciate if you have pointers for the below scenario.
-
I would like my app to get the query strings that are added to my product page url after #. For ex getting ID and VAR out of http://quickstart-6ccf081c.myshopify.com/products/the-collection-snowboard-liquid#ID=“12345”&VAR=“6789”
-
I would like to store these variables and attach them to my API request via webhook
I managed to create an app and a webhook to authenticate requests. The missing pieces are parsing query string, storing them (as the user may move to other pages before order) and use them at my order webhook. I cannot modify the product details as this will be an app so the data should be stored by the app.
For ex. do I use metaobjects to store these variables? How do I insert my code for query string parsing to the product page?
Thanks