Webloped blog · 26 min read

How to add a cookie consent banner to your website in Canada

How to add a cookie consent banner to your website in Canada: what the law actually requires, how to find out what your site tracks, how to pick a consent tool, and how to install it so tracking really waits for permission. A practical guide for Canadian small businesses, with the wording and the tests included.

The short answer

A cookie consent banner is the small box that asks visitors whether your website may set cookies and run tracking scripts. Adding one properly takes about an afternoon, and it has four parts: find out what your site actually sets, choose a consent tool, install it so it loads before any tracking script, and test that nothing non-essential runs until the visitor says yes.

The reason it matters in Canada is PIPEDA, the federal privacy law. It requires meaningful consent before you collect personal information, and cookies and trackers collect personal information such as IP addresses, device details, and browsing behaviour. The Office of the Privacy Commissioner has said that tracking for advertising and analytics needs opt-in consent, not just a note buried in a privacy policy. Quebec's Law 25 is stricter still, and it applies to any business that collects personal information from people in Quebec, even if your business is in another province.

This guide is general information about Canadian rules, not legal advice. If you are unsure how PIPEDA or a provincial privacy law applies to your business in a specific way, talk to a lawyer who works in Canadian business law before you decide anything. What follows is the practical side: what to check, what to install, and how to know it works.

Do Canadian small businesses actually need a cookie banner?

Canada does not have a single cookie law like the European Union does. Cookies are regulated through PIPEDA and the substantially similar provincial privacy laws in British Columbia, Alberta, and Quebec. That confuses a lot of business owners, because the answer is never a simple yes or no. It depends on what your site sets.

If your site sets only strictly necessary cookies, you probably do not need a banner. A strictly necessary cookie is one the site needs to work at all: remembering what is in a shopping cart, keeping someone logged in, or remembering a security setting. A brochure site with no analytics, no advertising pixel, no embedded video, and no chat widget may set nothing beyond that, and then a banner would be asking permission for something you do not do. Most small business sites are not in this group, though, because most of them run at least one of the things below.

If your site runs Google Analytics, a Facebook pixel, Google Ads, an embedded YouTube video, a chat widget, or a social media feed, you need consent. Each of these sets cookies or collects identifiers that count as personal information. Analytics tracks which pages a person visits and how long they stay. An advertising pixel follows them to other sites. An embedded YouTube video can set tracking cookies even before anyone presses play. A chat widget can log an IP address and a page history. If any of these run on your site, a banner is the mechanism that asks first.

Quebec raises the bar. Quebec's Law 25, which modernized the province's privacy rules, requires clear, plain-language information about what is collected and why, and consent that is freely given for a specific purpose. It also gives the Commission d'acces a l'information the power to fine businesses for privacy failures. If you sell to Quebec customers, or if Quebec visitors find your site through search, the stricter standard is the one to build to. Many Canadian businesses simply build to the Quebec standard for everyone, because running two different consent experiences is more work than running one good one.

European visitors bring the GDPR with them. If someone in the EU or the UK visits your site, European privacy law applies to that visit, and it requires opt-in consent before non-essential cookies are set. You cannot reliably know where every visitor is before the page loads, so a banner that asks first and blocks tracking until consent is given covers the European case too. This is the main reason most consent tools default to an opt-in model rather than a notice-only model.

One more thing worth saying plainly: a banner does not make a site compliant on its own. It is one part of a privacy setup that also includes a privacy policy that says what you collect, forms that only ask for what you need, and a way for people to withdraw consent later. Our guide to whether you need a privacy policy on your website covers the policy side, and our guide to collecting email addresses on your website covers the CASL rules for your email list.

What a good cookie banner does, and what a bad one does

Most of the cookie banners you see on the web are decorations. They announce that the site uses cookies, offer a single "Accept" button, and change nothing about what the site actually does. A visitor who clicks nothing is tracked anyway, and a visitor who clicks "Accept" has no idea what they accepted. That kind of banner is worse than no banner at all, because it creates a false record of consent while the site keeps tracking.

A banner that works does five things:

  • It asks before tracking starts. No analytics, advertising, or third-party script runs until the visitor makes a choice. This is called prior blocking, and it is the single most important feature. If your analytics fires on page load and the banner only appears afterwards, the banner is not doing its job.
  • It offers a real choice. "Accept all" and "Reject all" sit side by side, equally easy to click, and there is a "Customize" or "Manage preferences" option that lets a visitor accept analytics but refuse advertising, or the other way around. A banner with only an "Accept" button, or with the reject option hidden two screens deep, is a dark pattern, and regulators in Canada and Europe have both called that out.
  • It explains in plain language. One or two short sentences about what cookies do on your site, in words a customer would understand, with a link to the full privacy policy. No legal jargon, no wall of text, and no pre-ticked boxes. Pre-ticked consent boxes do not count as consent under PIPEDA or Quebec's Law 25.
  • It remembers the choice and lets people change it. Once a visitor decides, the banner should not pop up again on every visit. And there should be a link in the footer, usually labelled "Cookie settings" or "Privacy preferences", that reopens the choices so someone can change their mind. Consent that cannot be withdrawn is not freely given.
  • It keeps a record. A consent tool should log what each visitor chose and when, so that if anyone ever asks, you can show that consent was actually given. You do not need to keep personal details about the visitor for this, just the choice, the time, and the version of the banner they saw.

Notice what is not on this list: a banner that covers the whole screen, a banner that blocks the page until someone clicks, or a banner written to trick people into accepting. Those approaches hurt your business directly. A full-screen wall drives visitors away, and a tricked acceptance is worth nothing if it is ever challenged. The banner should be visible and honest, and then get out of the way.

Step 1: Find out what your site actually sets

Before you install anything, find out what your site is already doing. Most small business owners are surprised by this list, because tracking accumulates quietly: a plugin added two years ago, an analytics script a previous designer installed, a social feed that loads a tracker with every page.

Check your browser. Open your site in a private or incognito window, right-click and choose Inspect, then open the Application tab in Chrome or the Storage tab in Firefox and look at Cookies. Click through a few pages and note every cookie name and which domain set it. Anything from a domain that is not yours, such as google.com, facebook.com, or youtube.com, is a third-party tracker, and you should know why it is there.

Use a free scanner. Several free tools will crawl your site and list every cookie and tracker it finds, grouped by category. A scanner catches things the browser check misses, such as scripts that only fire on certain pages, or a booking widget that only loads on the contact page. Run the scan on your homepage and on your two or three most visited pages, not only the homepage.

List your third-party tools. Write down every service connected to your site: Google Analytics, Google Ads, the Facebook or Meta pixel, a chat widget, a booking system, an email signup form, embedded maps, embedded videos, a review widget, and any social media feed. Each one is a source of cookies or data collection, and each one needs a category in your banner. If you find a tool you no longer use, remove it now: fewer trackers means a simpler banner, a faster site, and less to explain in your privacy policy.

Sort what you found into four categories. This is the standard grouping every consent tool uses, and it is the grouping your visitors will see:

  • Strictly necessary. The site does not work without these: cart contents, login sessions, security settings, load balancing. These run without consent, and your banner should say so.
  • Preferences or functionality. Things that remember a visitor's choices, such as language, region, or a video volume setting. Useful, but the site still works without them.
  • Analytics or statistics. Google Analytics and similar tools that measure traffic and behaviour. This is the category most small business sites need consent for.
  • Marketing or advertising. Advertising pixels, remarketing tags, and social media trackers that follow visitors across sites. This category always needs opt-in consent.

Keep this list. It becomes the list of categories in your banner, the list of cookies in your privacy policy, and the checklist you test against in Step 6. If you run a website audit, this cookie inventory belongs in it.

Step 2: Choose your consent model

There are two main models, and the right one depends on who visits your site and what you track. Getting this choice right matters more than which tool you pick, because the tool only enforces the model you configure.

Opt-in, also called prior consent. Nothing non-essential runs until the visitor actively accepts it. The visitor clicks "Accept all", or opens the preferences and turns on the categories they are comfortable with. This is the European standard under the GDPR, it is what Quebec's Law 25 expects, and it is what the Office of the Privacy Commissioner has pointed to for behavioural advertising and analytics. If your site has visitors from Quebec or Europe, or if you run advertising pixels, this is the model to use.

Notice with opt-out. The banner tells visitors what you collect and gives them an easy way to refuse, but tracking runs unless they object. The OPC has accepted this model for some lower-risk tracking where the information is not sensitive and the opt-out is genuinely easy to find and use. It is a weaker model, and it is not accepted for advertising tracking or in Quebec. It also ages badly: as privacy expectations tighten, a notice-only banner is the first thing that looks outdated.

For most Canadian small businesses, the practical answer is opt-in for everyone. It is the strictest model, so it covers Quebec, Europe, and the OPC's expectations in one setup, and it is the model every consent tool supports out of the box. The cost is small: a few visitors will decline analytics, and your traffic numbers will drop slightly. That drop is not lost customers. It is the removal of visits you were counting without permission, and the numbers you keep are the honest ones.

One decision inside the model is whether to use Google Consent Mode. If you run Google Analytics or Google Ads, Consent Mode lets Google adjust how it collects data based on what the visitor chose, instead of simply switching analytics off entirely. When a visitor declines, Google can still count the visit in an aggregated, privacy-safe way without setting cookies or identifying the person. It takes a few extra settings in Google Tag Manager or in your consent tool, and it is worth turning on if you rely on Google's numbers for decisions. Our guide to setting up Google Analytics explains the setup, and most consent tools now include a Consent Mode option you can switch on.

Step 3: Pick a consent tool

You have three ways to put a banner on your site. All three can work. The right one depends on your platform and how much control you want.

A dedicated consent management platform, or CMP. These are services built only for this job: they scan your site, categorize the cookies, show the banner, block scripts until consent is given, and keep the consent records. Several offer a free tier for small sites with limited pages, and paid plans are usually a modest monthly subscription charged in CAD or USD. They work on any website, because you add one script to your site and configure the rest in their dashboard. This is the best option for a custom-built site, and for any business that wants the blocking and the records handled properly without writing code.

A plugin or app for your platform. If you run WordPress, Wix, Squarespace, or Shopify, there are plugins and built-in features that add a banner without a separate service. WordPress has several well-established cookie plugins, Wix and Squarespace have built-in cookie banners in their settings, and Shopify has a privacy settings section with a banner option. These are usually the cheapest and simplest route, and for a small site they are often enough. The thing to check before you commit is whether the plugin actually blocks scripts before consent, or only shows a banner while the scripts run anyway. Many free banner plugins only do the second, which is decoration, not consent.

A hand-built banner. A developer can build a banner into your site directly, with a small script that holds back the tracking tags until the visitor chooses. This gives you full control over the design and the wording, and there is no monthly fee. It also means someone has to maintain it: when you add a new tracker, the banner has to be updated, and when the law changes, the code has to change too. For most small businesses, a CMP or a plugin is the better trade, because the maintenance is someone else's job.

Whichever route you take, check four things before you commit: it blocks non-essential scripts before consent, it offers Accept, Reject, and Customize as equal choices, it lets visitors reopen their preferences from the footer, and it keeps a record of consent choices. If a tool fails any of those four, keep looking.

Step 4: Install it in the right order

The order the scripts load in is the whole job. A consent tool only works if it runs before the things it is supposed to control. Get this wrong and the banner appears while Analytics has already fired, which is the most common mistake on small business sites.

Put the consent script first. The consent tool's script goes at the top of the head section of every page, before Google Analytics, before the Meta pixel, before the chat widget, and before any embedded video or map. Most CMPs give you one snippet to paste, and their instructions will say to place it first. Follow that exactly, and do not let another plugin or a theme setting move it down the page.

Route your tracking through the consent tool. This is the step people skip. Adding the banner is not enough; your tracking scripts have to be told to wait. There are two ways to do it. The clean way is to move the tags into Google Tag Manager and set each tag to fire only when the matching consent category is granted, which most CMPs connect to automatically. The simpler way, on WordPress and similar platforms, is to let the CMP or plugin handle it: it rewrites the tracking scripts so they stay paused until consent is given. Either way, the test in Step 6 is how you confirm it actually happened.

Set the categories to match your audit. Use the four categories from Step 1, and assign each tracker to the right one. Analytics goes under analytics, the advertising pixel goes under marketing, the chat widget usually goes under functionality or marketing depending on whether it tracks, and the strictly necessary cookies are listed but not blocked. If a tool does not fit any category, do not guess: look up what it sets, or remove it.

Make the banner appear on every page. A visitor can land on any page from Google, not only the homepage, so the consent script has to load site-wide. On WordPress that means adding it through the theme header or the plugin, not pasting it into a single page. On Wix, Squarespace, and Shopify, the built-in banner is site-wide by default. Check the second page a visitor might land on, such as a service page or a blog post, and confirm the banner appears there too.

Do not load the banner from a pop-up plugin. A cookie banner is not a marketing pop-up, and it should not be built with the same tool as your newsletter signup or your discount offer. Pop-up tools load late, they do not block scripts, and they do not keep consent records. Use a tool built for consent, and keep the marketing pop-ups separate.

Step 5: Write banner wording people understand

The wording is where most banners fail. They are written by lawyers, or copied from a template, and they say nothing a customer can act on. A good banner is short, honest, and specific to your site.

Here is a wording pattern that works for a typical small business site, and you can adapt it freely:

Headline: "We use cookies to understand how visitors use our site and to show relevant ads."

Body: "We use cookies for website analytics and advertising. You can accept all cookies, reject them, or choose which types to allow. Read our privacy policy to see exactly what we collect."

Buttons: "Accept all", "Reject all", and "Customize".

Three rules apply to the wording. First, say what the cookies are for, not just that they exist. "We use cookies" tells the visitor nothing. "We use cookies to measure traffic and to show ads" tells them enough to decide. Second, name the tools if they are well known: "Google Analytics" and "the Meta pixel" mean more to people than "third-party analytics providers". Third, do not use language that pushes one answer. "Accept all cookies for the best experience" is a nudge, and regulators have treated that kind of wording as a dark pattern. Both choices should sound equally normal.

The preferences screen deserves the same care. Each category gets one plain sentence: "Analytics: helps us see which pages people visit, so we know what to improve." "Marketing: lets us show ads to people who visited our site." No category should be pre-ticked, and the "Strictly necessary" category should be marked as always on, with a sentence explaining why it cannot be switched off.

Step 6: Test it like a visitor would

Testing is the step that separates a working banner from a decorative one, and it takes about fifteen minutes. Do it in a private window, because your normal browser already has your consent stored, and you need to see what a first-time visitor sees.

Test 1: nothing runs before consent. Open your site in a private window and do not touch the banner. Open the browser's developer tools, go to the Network tab, and reload the page. Look for requests to google-analytics.com, facebook.com, or any advertising domain. If you see them before you clicked anything, the blocking is not working, and you need to go back to Step 4. The banner is on the screen, but the tracking started anyway.

Test 2: rejecting stops the tracking. Still in the private window, click "Reject all" and reload the page. Check the Network tab again and check the cookies in the Application or Storage tab. Analytics and advertising cookies should be absent. Then check that the site still works properly: the menu, the form, and the booking link should all behave normally without the trackers.

Test 3: accepting turns it on. Clear the site data, reload, and this time click "Accept all". Analytics and advertising requests should now appear in the Network tab. This confirms the banner is connected to the tags, not just showing and hiding.

Test 4: the choice sticks. Reload the page after accepting. The banner should not appear again. Then find the "Cookie settings" link in the footer, click it, and confirm the preferences screen reopens with your choices shown. Change one category, save, and check that the matching tracker stops or starts accordingly.

Test 5: the phone test. Repeat the first test on your phone, in a private tab. The banner should be readable without zooming, the buttons should be big enough to tap, and the banner should not cover the phone number or the contact button. If the banner covers the whole screen on a phone, shrink it or move it to the bottom of the screen.

Run these tests again every time you add a new tool to the site. A new chat widget, a new booking system, or a new advertising campaign can quietly add a tracker that your banner does not know about, and the only way to catch it is to test.

Step 7: Connect it to your privacy policy and footer

The banner and the privacy policy are two halves of the same thing. The banner asks, and the policy explains. If they disagree, or if the policy does not mention the cookies the banner lists, the setup looks sloppy and a regulator will notice.

Update the privacy policy. Add a cookies section that lists the categories from Step 1, names the main tools, and says how long the cookies last and how a visitor can withdraw consent. The policy should also say who to contact with a privacy question, which is usually the business owner or a named contact email. Our guide to whether you need a privacy policy walks through what that page should include, and our guide to terms and conditions for Canadian websites covers the related page that many businesses add at the same time.

Add a "Cookie settings" link to the footer. It should sit next to the privacy policy link, on every page, and it should reopen the preferences screen. This is the mechanism that lets someone withdraw consent, and PIPEDA expects withdrawal to be as easy as giving consent was. If your consent tool does not provide a footer link automatically, ask your web designer to add one that triggers the preferences screen.

Set a sensible consent expiry. Most consent tools let you choose how long a visitor's choice is remembered before the banner asks again. Six to twelve months is a common choice for a small business site. Shorter than that and regular visitors get annoyed. Longer than that and the record goes stale. Whatever you choose, write it down, because it is part of your privacy setup, and it should match what the policy says.

Keep the records. Your consent tool keeps a log of choices. Make sure it is turned on, and know where to find it. You do not need to check it every day, but if a customer ever asks what you collect about them, or if a regulator ever asks how you got consent, that log is the answer.

How this works on WordPress, Wix, Squarespace, and Shopify

The steps above are the same everywhere, but the mechanics change with the platform. Here is what each one looks like in practice.

WordPress. Install a cookie consent plugin that supports prior blocking, and connect it to Google Tag Manager or to the plugin's own script blocking. The common failure on WordPress is installing a banner plugin while Analytics is still hard-coded in the theme or in another plugin, so the banner shows but the tracking runs anyway. After installing, run the Step 6 tests, and if Analytics still fires before consent, move the Analytics tag into Tag Manager and set it to wait for consent. Also check that your caching plugin is not serving a cached page with the old scripts.

Wix. Wix has a built-in cookie banner in the site settings, under Privacy and Cookies. Turn it on, choose the layout, and Wix handles the blocking for the apps it controls. The catch is third-party code: if you added a custom tracking script through the tracking tools section or an HTML embed, Wix may not block it automatically, and you will need to check it the same way as any other site.

Squarespace. Squarespace also has a built-in cookie banner, in Settings, then Privacy, then Cookie Banner. It covers Squarespace's own analytics and the integrations you enable through the settings panel. Custom code injected into the site header is not automatically blocked, so anything you added by hand needs the same treatment as on any other platform.

Shopify. Shopify has a privacy settings section with a cookie banner option, and it integrates with Shopify's own analytics and with the consent settings of the apps you install. The banner is turned on in Settings, then Customer privacy. Because a store sets more cookies than a brochure site, including cart and checkout cookies, check that the strictly necessary category is set correctly so the checkout keeps working when a visitor rejects everything else. Test a full checkout in a private window after turning the banner on.

If your site was built for you by a designer or an agency, ask them which of these applies to your site, and ask them to show you the Step 6 test passing. A banner is a small job, and a good designer will run the test as part of the work. Our guide to choosing a web designer in Canada includes the questions to ask before you hire someone for work like this.

Common mistakes that undo the whole thing

Most cookie banners fail in the same few ways. Check for these before you call the job done.

  • The banner loads after the trackers. The consent script is pasted at the bottom of the page, or a plugin loads it late, so Analytics fires first and the banner appears second. The fix is Step 4: consent first, everything else after.
  • The banner only has an Accept button. No reject option, or a reject option buried in a settings screen. Visitors cannot refuse, so the consent is not freely given, and the banner is not doing its job.
  • Pre-ticked boxes. The preferences screen opens with analytics and marketing already switched on. Pre-ticked consent does not count under PIPEDA or Quebec's Law 25, and it is one of the first things a regulator looks for.
  • The banner is only on the homepage. A visitor who lands on a service page from Google never sees it, and is tracked without being asked. The script has to load site-wide.
  • Nobody updates it. The business adds a chat widget or a new ad campaign, and the banner still lists the old cookies. The privacy policy says one thing, the banner says another, and the new tracker runs without consent. Re-run the Step 1 audit whenever you add a tool.
  • It is written to trick people. "Accept all for the best experience" in a big bright button, with "Reject" in small grey text, or a banner that makes the close button mean "Accept". Tricks like these are dark patterns, they erode trust, and regulators have called them out by name.
  • It blocks the site on a phone. A full-screen banner that covers the content, the phone number, and the contact button, with no way to dismiss it without accepting. Visitors leave instead of choosing, and the business loses the enquiry the site exists to get.

FAQ

Do I need a cookie consent banner if my website only uses Google Analytics?

Yes, in most cases. Google Analytics sets cookies and collects identifiers such as IP addresses and device information, which count as personal information under PIPEDA. The Office of the Privacy Commissioner has said that tracking for advertising and analytics purposes needs meaningful, opt-in consent. A banner that loads Analytics only after the visitor accepts is the straightforward way to meet that expectation. Our guide to setting up Google Analytics covers the setup, and turning on Google Consent Mode lets Analytics adjust to the visitor's choice instead of switching off entirely.

Do I need a cookie banner if I only do business in Canada and have no European visitors?

You still need to think about consent, because PIPEDA applies to your Canadian visitors regardless of Europe. What changes is the strictness of the model: for visitors in Canada outside Quebec, the OPC accepts a clear notice with an easy opt-out for some lower-risk tracking, while express opt-in is expected for behavioural advertising and analytics. Quebec's Law 25 is stricter and closer to the European model. And if anyone from the EU or UK visits your site, the GDPR applies to that visit, so most Canadian businesses simply use one clear opt-in banner for everyone.

What happens if my website does not have a cookie consent banner?

There is no automatic fine for missing a banner, and PIPEDA does not name cookie banners specifically. The risk is a complaint to the Office of the Privacy Commissioner or a provincial privacy regulator, which can lead to an investigation, a published finding, and an order to change your practices. Quebec's Law 25 does carry fines for privacy failures, and Google can also restrict advertising features when consent signals are missing. The bigger everyday cost is trust: visitors increasingly notice when a site tracks them without asking.

Will a cookie banner slow down my website?

A well-built banner adds very little load, usually a small script that runs before your tracking scripts. In practice it can make your site faster for visitors who decline, because the analytics, advertising, and chat scripts they refused never load at all. The banners that slow a site down are the ones added on top of everything else without removing old tracking code, so a cookie audit that removes trackers you no longer use often improves speed at the same time. Our guide to making your website load faster covers the other usual culprits.

How Webloped works

We are a web design and AI automation company based in Cambridge, Ontario. If your site needs a cookie banner, a privacy policy that matches it, or a check that your current setup actually blocks tracking before consent, we can set it up and show you the test passing. Send us a message or email us directly and we will sort it out with a fixed quote in CAD before any work starts. See our services or check how pricing works first if you prefer.

Ready when you are

Let's build your best salesperson.

Tell us about your project - we'll reply with next steps and a fixed quote in CAD.

Get a project quote