Skip to content
itsorted.online
PDPA guide

Setting Up a Cookie Banner and Google Consent Mode (Step by Step)

A cookie banner only helps if your analytics and ad tags actually respect what the visitor chose. Many sites show a banner while Google Analytics and the Meta Pixel fire regardless. This guide covers when a Singapore website needs consent for cookies under the PDPA and under Google's and Shopify's own rules, how Google Consent Mode v2 works, how to set it up in Google Tag Manager, Shopify and WordPress, and how to test that tags behave correctly before and after someone clicks accept. It builds on our PDPA privacy policy and cookie guide and is general information, not legal advice.

By IT Sorted teamReviewed 7 min readHow we write guides
in

Key takeaways

  • The PDPA applies to personal data collected through cookies; strictly necessary cookies generally do not need consent.
  • Using cookies with personal data to target ads needs consent, according to the PDPC.
  • Google requires consent signals, including ad_user_data and ad_personalization, for EEA visitors.
  • In Tag Manager, consent tags fire on the Consent Initialization trigger, before any other tag.
  • Shopify's cookie banner turns on automatically only for UK and EEA markets; other regions are your choice.
In this guide · 8 sections
  1. 01Does a Singapore website need a cookie banner?
  2. 02How Google Consent Mode v2 works
  3. 03Set up consent mode in Google Tag Manager
  4. 04Shopify and WordPress set-up
  5. 05How to test that tags actually respect consent
  6. 06Common cookie banner mistakes
  7. 07Do it yourself or get help?
  8. 08Frequently asked questions

Short answer

Under the PDPA, ad-targeting cookies that collect personal data need consent, and the PDPC recommends on-site cookie preferences. Google requires Consent Mode v2 signals for EEA visitors. Set denied defaults before tags load, update them from your banner, and test in Tag Assistant.

Shopify and WordPress set-up

Shopify. In Settings, Customer privacy, you can enable Shopify's own cookie banner. According to Shopify's privacy settings guide, automated settings show the banner to visitors in the UK and EEA if you have active markets there, and it is off elsewhere by default, although you can choose any region. The Shopify banner governs Shopify's tools and pixels; third-party pixels added manually or through apps may need their own handling.

If you use a third-party banner app, Shopify says to choose one integrated with its Customer Privacy API, set the same consent regions in Shopify and in the app (otherwise non-essential data can be processed before consent), and mention Shopify by name in the banner text. See our Shopify launch checklist for where this fits before going live.

WordPress. Use a consent plugin that supports Google Consent Mode v2 and either loads Google tags itself or works with Tag Manager. Avoid running two systems at once, for example a plugin inserting Google Analytics directly while Tag Manager also loads it, because one copy will ignore consent.

Do it yourself or get help?

With Tag Manager and a CMP template, a straightforward site takes a few hours to set up and test. It gets fiddly with several ad platforms, theme-embedded scripts, or a mix of Shopify apps.

IT Sorted's Speed & SEO Fix (S$390) includes script clean-up, which is where duplicate and hard-coded tags are usually found, along with Search Console set-up. The PDPA Compliance Pack (S$690) includes the website privacy policy and a cookie and consent notice that matches what your site actually uses.

Frequently asked questions

The PDPA has no cookie-specific rule, but the PDPC says consent is required when cookies are used to collect personal data for targeted advertising, and recommends letting visitors set cookie preferences on your website. Cookies that collect no personal data, or support things users asked for, generally do not need consent.

It is a way of passing visitors' consent choices to Google tags. Version 2 added the ad_user_data and ad_personalization signals to ad_storage and analytics_storage. Google requires consent signals for visitors from the European Economic Area to use its tags for measurement, ad personalisation and remarketing.

Google's consent mode requirement applies to traffic from the EEA. If you genuinely have no European visitors and run no European campaigns, it is not required by Google, but using a banner with consent mode is still the simplest way to follow the PDPC's recommendation for ad targeting cookies.

Yes. Shopify's Customer privacy settings include a cookie banner. With automated settings it appears for visitors in the UK and EEA when you have active markets there, and is off elsewhere by default, but you can enable it for any region. Third-party banner apps should integrate with Shopify's Customer Privacy API.

Use Google Tag Assistant to confirm the default consent state is set before tags fire and updates after the visitor chooses. Then reject all cookies in a private window and check in the browser's developer tools that no advertising cookies are set and ad pixels do not fire.

Rather have it done for you?

Fixed price, set up in your own accounts.

Order online, get a written scope, and keep full ownership of everything we set up. Questions first? Ask us in writing.