База знања

The Page Builder Sandwich cookie consent banner

Design a GDPR-style cookie banner with blocks that blocks tracking until the visitor agrees, with Google Consent Mode and an optional rule for visitors outside the EU.

Page Builder Sandwich Pro includes a cookie consent banner that you design with blocks, and that really blocks tracking until the visitor agrees.

Create the banner

  1. Open Page Builder Sandwich → Marketing → Cookie banner and choose **Create a ready-made
  2. banner: a bar at the bottom of the screen with a short text, Analytics and Marketing tick boxes, and Accept all, Save my choice and Necessary only** buttons. Edit it like any popup.

  3. Switch on Show a cookie banner and choose Save.

To design your own: link buttons to #consent-accept (everything), #consent-reject (necessary only) and #consent-save (the ticked boxes, which must be named analytics and marketing). A link to #consent-open anywhere on your site (in the footer, for example) shows the banner again, so a visitor can change their mind.

What it blocks

Until the visitor agrees:

  • the Google Analytics, Tag Manager and Meta Pixel tags set up under Conversion tracking do
  • not load, and no event is sent;

  • Google Consent Mode starts with every signal denied;
  • any other script you list (by its WordPress handle, as analytics or marketing) stays switched
  • off, and so does any script written as <script type="text/plain" data-<prefix>-consent="analytics">, where <prefix> is the class prefix shown on the plugin's settings screen.

The choice is kept for 180 days (you can change this) in one cookie on your own site. If a visitor takes consent back, the page reloads so nothing that already ran keeps tracking.

Visitors outside the EU

By default every visitor must agree first. You can switch on Outside the EU, EEA and UK: load tracking until the visitor says no: it applies only when your host or CDN reports the visitor's country (for example Cloudflare's CF-IPCountry header) and that country is outside the EU, EEA, UK and Switzerland. The banner is still shown, and a visitor whose country is unknown is treated as inside the EU.

The banner works with page caching: every visitor gets the same page, and their own choice is applied in their browser.

Овај чланак још увек није преведен на ваш језик, па зато читате верзију на енглеском језику.

Најновије са блога

О чему смо писали када је реч о хостингу, SEO-у и вођењу сајтова великих размера.

SEO и изградња линкова са хостинг слоја: поглед оператера за 2026. годину

Како хостинг утиче на индексирање и вредност линкова у 2026. години: одржавање страница индексираним, провера старих домена пре израде сајтова на њима, изградња линкова без отиска (footprint-а) и искрен осврт на то шта инфраструктура може, а шта не може да учини за SEO.

Прочитајте чланак →

Како учинити WordPress брзим и безбедним: Контролна листа за перформансе и прикључке

Практична контролна листа за брз и безбедан WordPress: кеширање на нивоу сервера, кеш објеката по сајту, неколицина додатака вредних коришћења, одржавање стека ажурним и WooCommerce странице које никада не смете кеширати.

Прочитајте чланак →

Како изабрати управљани веб-хостинг у 2026. години: Водич за купце

Шта заправо разликује добар управљани хостинг од јефтиног сервера са контролним панелом — миграције, резервне копије, изолација, право кеширање и поштено скалирање — и како да то процените пре него што се обавежете.

Прочитајте чланак →

Прочитајте блог →

И даље сте заглављени?

Подршка је укључена у сваки план, служба је отворена 24 сата дневно и можете нам писати на било ком од наших 58 језика — одговарамо вам на вашем језику.

Контактирајте подршку → Сви чланци →