
Rules
SEO analytics for Canadian privacy law: PIPEDA, Law 25, and consent
A consent record is only as good as the log behind it. Here is what to keep, how long to keep it, and how a Quebec retailer rebuilt its tags.
What to take away
- A consent record is evidence. If you cannot produce the notice, the choice and the withdrawal, you have no record.
- Log withdrawal the same day it arrives, and stop the tag before you stop the report.
- Set one retention period for the analytics data and a second, longer one for the consent log.
- Quebec's Law 25 requires an affirmative action before a tracking tag fires; implied consent is not enough.
- Tag changes belong in your release process, not in a marketing ticket.
The record is the compliance
PIPEDA puts the burden on the organisation. When a complaint arrives, the regulator asks what the person was shown, when, and what they chose. Memory is not evidence, and a screenshot taken after the fact proves nothing.
Build the log first, then the notice. The log is what survives an audit.
What goes in the consent log
Each entry needs enough detail that a stranger could reconstruct the decision.
Consent log entry fields
- Notice text, version number, live date
- Choice, timestamp, methodbanner or preference centre
- Tag or vendor the choice applies to
- Withdrawal request, date received, date tag stopped
- Retention date for the entry itself
The five fields carry that detail:
- Notice version
- which wording the visitor saw.
- Timestamp
- the date and time of the choice.
- Purpose
- the named use, such as ad measurement or site analytics.
- Tag names
- the tags that fired or were blocked.
- Decision
- accepted or refused.
A withdrawal adds a row with the same notice version, a new timestamp, and the tags switched off.
One row per person per purpose beats one row per person. A visitor who accepts ad measurement and refuses site analytics has made two decisions, and a single boolean field cannot hold both.
Withdrawal is a build task, not a reply
Withdrawal is where most setups break. The request reaches a shared inbox, someone replies, and the tag keeps firing for weeks.
Write the sequence down and assign it.
Withdrawal sequence
- Log request with timestamp on arrival
- Disable tag for identifier in tag manager
- Confirm tag stopped via network request
- Note effective date in the log
- Recheck at next scheduled audit
Withdrawal is a build task
- Log the request with the date and the person who made it.
- Switch the tag off in the tag manager.
- Check the cached container and any second property that carries the same tag.
- Confirm on the live site that the tag no longer fires.
- Recheck the report the next day, then close the task.
Step three is the one people skip. A tag that is switched off in the interface can still fire from a cached container or a second property.
Retention: two clocks, not one
Analytics data and consent records do not expire together.
Two retention clocks
Analytics data
- Raw event data
- Your set period
- Aggregated reports
- Longer period
- Retention rule
- Retention schedule
- Where stated
- Privacy policy
Consent record
- Raw event data
- Outlives data
- Aggregated reports
- Outlives data
- Retention rule
- Data period + limitation
- Where stated
- Policy and schedule
The data follows your retention schedule: raw event data for the period you set, aggregated reports longer. The consent record has to outlive the data, because a complaint can arrive after the data is gone. Hold the record for the data retention period plus the limitation period for legal claims in your province.
Most common law provinces set a basic limitation period of two years from discovery. Ontario, British Columbia and Alberta are among them. Quebec's Civil Code sets three years. Confirm the period where you operate, because the clock can start on the date a person learned of the loss.
A typical setup holds 14 months of raw event data and keeps the consent log for 14 months plus that limitation period. Two years gives 38 months of records, and three years gives 50 months. Some teams keep 24 months of data instead. Write down the numbers you chose and why.
Name the two periods in your privacy policy and in your internal schedule. If the numbers differ, say so, and say why.
Worked example: a Montreal retailer rebuilds its tags
A Montreal retailer runs a loyalty program and an ecommerce site. Its analytics tag sent event data to a server outside Canada, fired on page load, and had no consent check. The retailer sold in Quebec only.
Montreal retailer tag rebuild
- Map every tag, vendor and destination country
- Move tags behind an affirmative click
- Write the lognotice version, timestamp, tag names
- Set two clocksevent data and consent records
- Lawyer reviews notice and retention wording
The rebuild took four steps.
First, the retailer mapped every tag on the site and named the vendor and destination country for each. Two tags it had assumed were one were separate, with different processors.
Second, it moved the tags behind an affirmative click. Nothing fired until the visitor chose. The banner named the vendor and said the data left Canada.
Third, it wrote the log. Each choice created a row with the notice version, the timestamp and the tag names. Withdrawal created a second row and a task.
Fourth, it set the two clocks: event data for 14 months, consent records for 14 months plus Quebec's three year limitation period.
The retailer's lawyer reviewed the notice and the retention wording before launch. That review is the part you cannot do yourself; Quebec's French-language and privacy requirements are specific, and the Commission d'acces a l'information is the authority that sets them.
The tag work is a release item. Treat it like one, and it stays fixed. For where tag governance sits in the wider build, see technical SEO.
Where the federal rules sit
The Office of the Privacy Commissioner of Canada enforces PIPEDA for private-sector organisations collecting personal information in commercial activity. It publishes an overview of Canadian privacy laws covering which provinces have their own statutes.
The PIPEDA overview page describes the federal statute and its provincial counterparts. The federal commissioner can investigate a complaint and ask the Federal Court to enforce an order.
PIPEDA also carries a breach duty. Since November 1, 2018, an organisation must report a breach of security safeguards to the commissioner when it poses a real risk of significant harm. It must also keep a record of every breach.
Quebec's Law 25 is not PIPEDA with extra notices. It requires an affirmative action before tracking, and it names a privacy officer role. A business selling into Quebec follows the Quebec rule for those customers, whatever its own province says.
Law 25, formerly Bill 64, passed in June 2021. Its main duties took effect on September 22, 2022 and September 22, 2023, with the last tranche on September 22, 2024.
Consent choices change which numbers you can trust, which is why they belong in your analytics for SEO setup rather than in a legal folder.
Consent records and local data
Local citation and listing data carries the same questions. A review platform, a map listing or a directory that stores a customer's location is collecting personal information, and the consent behind it needs the same log entry.
The local SEO work and the privacy work are the same work when the data is a person.
What to check before launch
- Every tag mapped, with vendor and destination country named.
- Nothing fires before an affirmative choice.
- The log writes a row per person per purpose.
- Withdrawal has a named owner and a same-day step.
- Two retention periods stated, in the policy and in the schedule.
- A qualified Canadian lawyer has reviewed the notice and the retention wording.
For how consent changes the metrics you report upward, see SEO strategy.
Common questions
Does PIPEDA apply to analytics cookies?
Yes, when the cookie data can identify a person. The Office of the Privacy Commissioner treats an IP address or device ID as personal information in many contexts. Consent has to be meaningful and tied to a stated purpose.
How long should consent records be kept?
Longer than the analytics data. Keep the record for your data retention period plus the limitation period for legal claims where you operate. State both periods in your privacy policy so the two clocks are visible.
Can we rely on implied consent for a tracking tag?
Not in Quebec. Law 25 requires an affirmative action before a tracking technology runs. Elsewhere, implied consent may be defensible for some purposes, but it is the weaker position in a complaint. Confirm your specific case with a qualified Canadian lawyer.







