Product ID in Google Merchant Center vs. Product ID in Data Layer for Remarketing

Product ID in Google Merchant Center vs. Product ID in Data Layer for Remarketing

do03870
Tourist
7 0 1

Hi there,

 

I transferred all products with the Google App to my Merchant Center with the correct Product ID with SKU / Variant in Format shopify_DE_XXX_XXX...

 

Now I implemented a Data Layer for my product page for remarketing. In the Data Layer there is just the ID for the product itself without Variant.

 

Exapmle Product ID:

Merchant Center: shopify_DE_7700617756895_42978160378079

Data Layer: 7700617756895

 

Can anyone help me with that?

Replies 5 (5)

EmmanuelFlossie
Shopify Partner
3274 243 783

Make sure to use the correct liquid objects, listed here: https://shopify.dev/api/liquid/objects#product

 

shopify_DE_{{product.id}}_{{product.selected_or_first_available_variant}}

 

You can also implement a completed set of remarketing coding, by following my guide: https://feedarmy.com/kb/adding-google-adwords-remarketing-tag-to-shopify/

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
JK57
Visitor
1 0 0

Hello we have a website and do google ads to but finding our website traffic in the past 3 weeks has dropped of we we’re starting to increase from 2 a day up to 19 a day which we were happy to see some growth at last we have been up and running since November 2021 so to say we are disappointed yes now deciding should we hit the streets and go back to basics as this is a lot of work with little rewards I’m hoping your able to help give feedback advice please 

www.lashlipco.com

much appreciate 

Jennie steer

Ken_Blasted-RC
Tourist
12 0 1

Hi @EmmanuelFlossie 

 

I just stumbled across this post in my search for help on another issue. The value in my data layer says "shopify_US_{{product.id}}_{{product.selected_or_first_available_variant}}" but it should be "shopify_DK_{{product.id}}_{{product.selected_or_first_available_variant}}" instead - so DK instead if US - as that is the value submitted through the feed. Do you know what can cause this? All language and currency settings in Shopify is set to Denmark, so it should be getting the "Shopify_DK"-value.

 

I created this ticket in the technical foums. Perhaps you can help?

https://community.shopify.com/c/technical-q-a/incorrect-product-id-in-data-layer/m-p/1797832#M109118

NicoRi
Excursionist
15 0 2

@EmmanuelFlossie wrote:

shopify_DE_{{product.id}}_{{product.selected_or_first_available_variant}}

Short addition, since I just stumbled over this: It's {{product.selected_or_first_available_variant.id}}

Otherwise, the variable returns the text "ProductVariantDrop".

EmmanuelFlossie
Shopify Partner
3274 243 783

@NicoRi Yes you are correct. I had my coding correct on the website, but when I copy pasted an example above, it seems I partially copied parts of the code.

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.