Open workspace

Guide · Retail and e-commerce

Online stores: ads in the right place and well-measured sales

A store lives on both sides of advertising: it shows banners to earn extra revenue and uses pixels to measure the sales of its own campaigns. This guide shows where ads cannot go, what counts as counterfeit or a deceptive store and how consent affects conversion measurement.

  • ✓Based on Google's official policies
  • ✓Ads and pixels checked together
  • ✓Read-only scan, no changes to the site
4consent signals read by Google tags
700ad clicks in 7 days, per country and domain, for conversion modeling
2 a 5xtimes more that consenting visitors usually convert, according to Google
2024year the certified CMP became required for personalized ads in the EEA and the United Kingdom

The two sides

A store shows ads and also advertises

Many stores have a blog, buying guides and category pages with AdSense or Ad Manager. In that role, the store is a publisher and follows the same policies as any site: no ads stuck to buttons, on screens with no content or on pages that deceive the visitor.

At the same time, the store invests in Google Ads, social networks and email, and installs pixels to know which campaigns sell. For visitors from Europe, Google's consent policy requires valid consent for cookies and for the use of personal data in personalized ads.

The two sides meet on the same page. A badly placed banner creates accidental clicks, and a pixel that fires before consent puts measurement at risk. That is why it is worth looking at both together.

Where the risk lives

Six points of attention on a store that monetizes

Each item is tied to a Google publisher policy or to the Search spam rules.

Banner near Buy

An ad stuck to buy, shipping or size buttons creates accidental clicks. Google may send a notice even when the mistake was not intentional.

Cart and checkout

These are task screens. Google policies do not accept ads on screens used for navigation or other visitor actions.

Order confirmed

Thank-you and error pages are cited by Google as screens without publisher content, where ads cannot appear.

Counterfeit product

Selling or promoting replicas of brands is intellectual property abuse and removes the right to show Google ads.

Store without identity

Hiding who sells, with no company, address or contact, falls under misrepresentation about the publisher.

Affiliate with no value

Pages that only copy the manufacturer's description with an affiliate link are thin affiliation under the spam policies.

In practice

What is and is not allowed on a store with ads

Common examples on WooCommerce WordPress stores and ad plugins.

Allowed

  • Ads on the blog and buying guides, away from buttons
  • Banner at the end of the category page, after the product list
  • About us page with company registration number, address and support channels
  • The store's own product review, with photos and tests done by the store
  • Ad pixels that wait for the visitor's choice in the banner

Not allowed

  • Banner between the price and the Buy button
  • Ads in the cart, at checkout or on the order confirmed page
  • Replica of a brand sneaker advertised as original
  • Social network pixel that sets a cookie before the choice in the banner
  • Affiliate page with text copied from the manufacturer

Pixels and consent

Without well-configured consent, measurement goes blind

Google Consent Mode uses four signals: ad_storage, analytics_storage, ad_user_data and ad_personalization. Google states that ad_user_data is required for measurements such as enhanced conversions and tag-based conversion tracking. When the visitor declines, the tags start sending cookieless signals.

With these signals, Google can estimate the conversions of those who declined cookies. For this, the account must have Consent Mode implemented correctly and reach 700 ad clicks in 7 days, per country and domain group. Google itself notes that those who consent usually convert 2 to 5 times more than those who decline.

Google's consent policy also asks you to identify each company that receives the data and keep the record of consent. On a store, this includes the pixels of other platforms, which must respect the same choice from the visitor.

Setup

How to prepare the store to measure sales with consent

  1. Set the default before the tagsThe initial state of the signals must load before any Google tag, with everything denied for visitors from regions that require consent.
  2. Update after the choiceWhen the visitor responds to the banner, the CMP sends the update of the four signals.
  3. Hold the other pixelsSocial network and affiliate pixels must also wait for the choice, through the CMP itself or the tag manager.
  4. Test a purchasePlace a test order declining and then accepting cookies, and check that each pixel behaved as expected.
Example of Consent Mode initial state and update
gtag('consent', 'default', {
  'ad_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied',
  'analytics_storage': 'denied'
});

// depois que o visitante aceita no banner
gtag('consent', 'update', {
  'ad_storage': 'granted',
  'ad_user_data': 'granted',
  'ad_personalization': 'granted',
  'analytics_storage': 'granted'
});

In practice

A fashion store that fixed ads and measurement at once

Before

The ad plugin inserted a banner right below the price on all product pages, and another on the order confirmed page. A social network pixel set cookies before the consent banner appeared.

After

Ads stayed only on the blog and at the end of category pages. The order confirmed page was left without ads. The pixel started waiting for the visitor's choice, and Consent Mode got the correct initial state.

The risk of accidental clicks left the product pages, and the store began to respect the visitor's choice in all pixels. With Consent Mode set up, Google tags send cookieless signals when the visitor declines, which lets Google estimate conversions if the account reaches the minimum volume.

In ConsentMode

What the audit checks on online stores

  • Measures the distance between banners and buy, shipping and size buttons
  • Points out ads in the cart, checkout, order confirmed and error pages
  • Checks whether Google tags receive the Consent Mode initial state before loading
  • Checks whether ad pixels set cookies before the choice in the banner
  • Checks whether About us, contact and privacy policy are complete

Online store frequently asked questions

Can I have AdSense on my store?

Yes, as long as the ads are on pages with content, such as the blog and guides, and away from buy buttons. Cart, checkout and order confirmed should have no ads.

Do I need a consent banner if I only sell in Brazil?

Google's consent policy applies to visitors from the EEA, the United Kingdom and Switzerland. In Brazil, the LGPD also asks for transparency about the data collected. If the store receives visits from abroad, it is worth setting up by region.

Does Consent Mode replace the cookie banner?

No. The banner, shown by a CMP, collects the choice. Consent Mode only tells Google tags about that choice.

Will I lose conversions in the report?

Those who decline cookies are not measured the same way. With Consent Mode, Google can estimate part of these conversions, if the account reaches the minimum click volume.

Does ConsentMode install or change anything on the store?

No. The audit only reads the pages as a visitor, never clicks an ad and does not submit forms or place orders.

Library

Official sources

This guide was written from these official pages. Read them directly at the source:

Check your store's ads and pixels in a single audit

The reading is done as a visitor, without changing anything, and the report shows what to change on each page.

Audit my store