Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Dynamic Remarketing and Add to Cart in Dawn 8.0

Solved

Dynamic Remarketing and Add to Cart in Dawn 8.0

Gemz1
Shopify Partner
21 1 8

Hi

 

We have dynamic remarketing set up on our store using code outlined by Solutions 8 which appears to work well.  It uses the following code int he Add to Cart button: 

onclick="

 

{% assign shopify_store_country  = 'GB' %}

 

dataLayer.push({ 'ecommerce': null });dataLayer.push({

'event': 'add_to_cart',

'ecommerce': {

'items': [{

 

'id': 'shopify_{{shopify_store_country}}_{{ product.id }}_{{ product.selected_or_first_available_variant.id }}',

'google_business_vertical': 'retail',

}]

}

});"

 

which is placed after product-form__buttons but in 8.0 product-form__buttons no longer seems to exist?  Does anyone know where it goes now?

 

Thanks in advance...

Accepted Solution (1)
Gemz1
Shopify Partner
21 1 8

This is an accepted solution.

I have managed to work this out and fix it now.  Thanks for visiting this topic.

View solution in original post

Replies 3 (3)

Josh_Uebergang
Shopify Partner
1023 44 277

You're better off either using Shopify's Google channel app or use the dynamic remarketing code shared at https://www.digitaldarts.com.au/google-shopping/merchant-center-programs

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping
Gemz1
Shopify Partner
21 1 8

Hi

 

Thanks.  We have the Google channel integrated but it doesn't provide the remarketing coding.  We've tried your Digital Darts coding, but it didn't work well with tag manager in the way that it is set up - and looking at the coding it would still have the same issue with the Add to Cart change in 8.0.   We're currently using the Solutions 8 version, but that also has the issue with Add to Cart now.

Gemz1
Shopify Partner
21 1 8

This is an accepted solution.

I have managed to work this out and fix it now.  Thanks for visiting this topic.