How to integrate google review opt in module?

I am unable to Set up opt-in integration for Google Customer Reviews. As shopify has removed additional script in checkout, i was wondering if anybody knows how to integrate it via customized code or something?

Hey @jeninc
You’re right , since Shopify removed the “Additional Scripts” field, adding the Google Customer Reviews opt-in isn’t as straightforward anymore.

The good news: you can still do it using Google Tag Manager or Checkout Extensibility.

  • For most stores, the easiest way is adding the opt-in script in GTM and setting it to fire on the thank-you page (page_type=thank_you).

  • You can pass order info (like country and delivery date) through Shopify’s dataLayer.

That keeps you Shopify-compliant while still triggering the review opt-in after checkout.

hi,

Thanks for your response.

I tried with GTM by triggering purchase event. did not work

Got it , thanks for the update! If the GTM tag didn’t fire with your purchase event, it’s likely due to how Shopify’s dataLayer pushes are structured on the thank-you page.

Try this instead:

  1. In GTM, create a Custom Event Trigger using the event name page_view and set the condition to:

    pageType equals checkout_thank_you
    
    

    (This aligns with Shopify’s native dataLayer variable.)

  2. Then, attach your Google Customer Reviews opt-in script to that trigger.

  3. Also make sure you’re using the Checkout Extensibility-compatible GTM container (for Shopify’s updated checkout).

    • If you’re on the new checkout extensibility system, you’ll need to inject GTM through the Checkout Editor → Custom Pixels rather than traditional theme code.

If that still doesn’t work, it may just be a scoping issue , GTM can’t see the thank-you page depending on your setup. I can help you check your container setup and event triggers if you’d like; it only takes a few minutes to identify where the tag’s failing.

I have purchase event in the datalayer when someone reaches to thank you page.

and the script i created using custom HTMl also fire in the tag assistant preview.

I’ll like to know exactly what you have done to fix this and some of the steps you took so far aside the reply you just gave, I’ve had similar issues previously and i had to do a lot, Google tag is a whole lot of stress, Most times when you miss a step or do something wrong you need to do a whole lot of troubleshooting before knowing the actual issue
Is there a way we can communicate more directly? outside this place Because to fix this you’ve got to be all in.