How to show the banner on specific pages (New Version)

Overview


You control where the consent banner appears with Start hidden for the following paths. Add one path or pattern per line. When a visitor opens a matching page, the banner starts hidden on that page.


This field replaces older options such as showing the banner only on the homepage or hiding it on selected pages. You manage all of those cases from one list.


Hiding the banner does not turn off consent enforcement. Scripts and cookies still follow the consent model in Settings > Consent model & regions.


This setting is available on the Enterprise plan. If you do not see the field, open Dashboard > Plans.


New Banner. For stores with the New version badge on Settings > Banner. On the Legacy Banner, see How to switch to the new banner or switch back to the previous version.

Legacy steps: How to show the banner on specific pages (Legacy Version).


Before you start


  • The banner must be enabled.
  • Copy the path from the browser address bar (everything after the domain). Do not paste the full URL.
  • If you use Shopify Markets or a language prefix, include that prefix in the path (for example /fr/products/blue-shirt).
  • After you save, test in a private window on a first visit, because an existing consent choice can hide the banner for other reasons.


Set up in Pandectes


  1. Open Shopify Admin > Apps > Pandectes GDPR Compliance.
  2. Go to Settings > Banner.
  3. Open the Advanced tab.
  4. Find Visibility.
  5. Enter rules in Start hidden for the following paths.
  6. Use one path or pattern per line, then save.


The app also includes examples under Show examples of usage next to the field.


How path matching works


The setting checks the path of the store URL, not the domain.


For this URL:


https://example.com/products/sample-product


The path is:


/products/sample-product


Enter:


/products/sample-product


Query strings such as ?variant=123 or ?utm_source=newsletter are not part of the path. A rule that matches /products/sample-product also matches /products/sample-product?variant=123.


Examples


Hide the banner on the privacy policy page


/policies/privacy-policy


Use this when you want visitors to read the policy without the banner covering the text. Confirm the exact path in your store; some stores use /pages/privacy-policy instead.


Hide the banner on an Impressum or imprint page


/pages/impressum


Hide the banner on the contact page


/pages/contact


Hide the banner on several specific pages


Add each path on its own line:


/policies/privacy-policy
/pages/impressum
/pages/contact


The banner starts hidden on any matching path.


Hide the banner on all product pages


^/products/


This matches every path that starts with /products/, including:


  • /products/sample-product
  • /products/blue-shirt
  • /products/example-product?variant=123


Hide the banner on all collection pages


^/collections/


Hide the banner on blog posts


^/blogs/


Hide the banner on the cart page


/cart


Hide the banner only on the homepage


^/$


^ is the start of the path and $ is the end, so this matches only /.


If your homepage uses a language prefix such as /fr or /en-gb, add that path as well:


^/$
^/fr$
^/en-gb$


Show the banner only on the homepage


This field lists pages where the banner starts hidden. To show the banner only on the homepage, hide it everywhere else:


^/(?!$).+


That pattern matches all paths except /. Examples that stay hidden:


  • /products/sample-product
  • /collections/all
  • /pages/contact
  • /policies/privacy-policy


The homepage / is not matched, so the banner can still appear there.


Show the banner only on the homepage, including homepage URLs with search parameters


If visitors reach the homepage with tracking parameters such as /?ref=email or /?utm_source=newsletter, use:


^/(?!$|\?).+


The banner can still appear on:


  • /
  • /?ref=email
  • /?utm_source=newsletter


It stays hidden on other paths, including /pages/contact?ref=email.


What still happens when the banner is hidden


Hiding the banner on a page does not grant consent and does not disable blocking.


If a visitor lands first on a hidden page and has not chosen yet:


  • Strict opt-in: only strictly necessary cookies should run until they give consent on a page where the banner is shown.
  • Opt-out: collection can start according to your Privacy settings, even if the banner is not visible on that page.


Visitors can still change their choice later from a Cookie settings menu link or the consent widget, if those are enabled.


Tips for writing path rules


  • Use one path or pattern per line.
  • Use an exact path for a single page.
  • Use a regular expression (often starting with ^) for a group of pages.
  • Avoid full URLs (https://...).
  • Keep rules as simple as possible so they do not match extra pages.
  • After saving, open each important page in a private window and confirm whether the banner appears.



Updated on: 15/09/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!