UTM Parameter captured for shopify headless

Ashish93
New Member
12 0 0

Hey there, I am wanting to find specific orders that were purchased via a UTM e.g. utm_campaign, utm_content, utm_term for headless shopify 

I can't find a way to do this. Is it possible? If so, how?

Please suggest

Thanks in advance.

Reply 1 (1)

sampymishra
Shopify Partner
296 10 35

Hi @Ashish93 

 

You can find specific orders purchased via UTM parameters, such as utm_campaign, utm_content, utm_term, etc., in your headless Shopify store using Shopify's API and Google Analytics.

Here's how you can do it:

  1. In your Shopify store, enable Google Analytics and make sure that UTM tracking is enabled.

  2. Create a custom report in your Google Analytics account showing all the UTM parameters, the order number, the order total, and any other relevant data you want to track.

  3. Use the Shopify API to query your store's orders and extract the UTM parameters for each order.

  4. Match the UTM parameters extracted from the Shopify API with the UTM parameters in your Google Analytics custom report.

  5. Once you have the matching UTM parameters, you can extract the order details, such as order number, order total, and other relevant data from the Shopify API.

Following these steps, you can easily find specific orders purchased via UTM parameters in your headless Shopify store.

Sampy Mishra | Customer Success Manager @ AdNabu

 - Was my reply helpful? Click Like to let me know! 

 - Was your question answered? Mark it as an Accepted Solution

 - Try our Nabu for Google Shopping Feed from Shopify App Store.