How to correct an incorrect Product ID in a Shopify data layer?

How to correct an incorrect Product ID in a Shopify data layer?

Ken_Blasted-RC
Tourist
12 0 1

Hi guys

 

I'm having an issue with my data layer in Shopify returning an incorrect Product ID value, compared to what is submitted through the product feed. 

The data layer has "shopify_us_" as its value, but its supposed to be "shopify_dk_" instead. 

 

The problem seems to have arrived since we recently changed our domain name to a new one in Shopify as that date marks a significant drop in our performance in Ads. I checked all langauge and country settings in Settings and everything is set to Denmark.

 

Does anyone know how to fix this?

Replies 6 (6)

Ken_Blasted-RC
Tourist
12 0 1

I took a screenshot of the data in https://imgur.com/a/xvYk7T5

INA_MSWEB
Shopify Partner
1281 144 168

Hi @Ken_Blasted-RC 

Kindly share your store URL.I will be glad to help you.

Regards,

Mehak

If it’s helpful to you, please mark it as a solution.  


Need Help with Shopify Design, Migration, Speed, or Custom tasks?  
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin

Ken_Blasted-RC
Tourist
12 0 1

Hi @INA_MSWEB 

 

Sure - It's www.speedhobby.dk.

Thanks! 

EmmanuelFlossie
Shopify Partner
3722 284 857

There is a valid id, but under the wrong parameter name: g_product_id

 

This seems to be submitted by the free shopping channel.

 

I recommend manually installing the code. Reference: https://support.google.com/merchants/answer/7331077?hl=en

 

Or if you want a full guide: https://feedarmy.com/kb/adding-google-adwords-remarketing-tag-to-shopify/

Maximize Your Google Shopping Performance
Get in touch for expert guidance. Need Google Merchant Center or Google Shopping support?
Get expert help from Emmanuel Flossie, a Google Shopping Specialist, Google Ads Diamond Product Expert, and award-winning Google Product Expert (Education 2021 & Tailwind Champion 2023).
Ken_Blasted-RC
Tourist
12 0 1

Hi @EmmanuelFlossie 

 

Sorry, I'm not sure I understand here. Is g_product_id where the valid ID is found or where it needs to be displayed?

I tried removing the the free sales channel and reinstall it, which fixed the Shopify_US issue, so it nows displays the correct country code. However, I still get and undefined value on the variant code in g_product_id, so now the data says: "shopify_DK_7535357329602_undefined".

 

I'm using Analyzify as well.

EmmanuelFlossie
Shopify Partner
3722 284 857

I recommend you either contact the free shopping app support team (this is the app that set up your code, I assume) Or manually setup the correct remarketing code, using the previous provided guide.

 

g_product_id is not a valid attribute, and is not used by Google Ads.

Maximize Your Google Shopping Performance
Get in touch for expert guidance. Need Google Merchant Center or Google Shopping support?
Get expert help from Emmanuel Flossie, a Google Shopping Specialist, Google Ads Diamond Product Expert, and award-winning Google Product Expert (Education 2021 & Tailwind Champion 2023).