Many stores treat consent as a switch: tracking on if the visitor clicks accept, everything off otherwise. That is safe, but it throws away data you are allowed to keep. A tiered approach is both more careful and more useful.
Three tiers
Essential. What you need to run the site and count visits without recognising anyone. A session cookie that groups one visit's pages, nothing persistent, nothing shared. In Waiso these events are kept for 30 days for aggregate reporting.
Measurement. First-party analytics: recognising a returning browser so you can see which channel brought a customer back. Data stays with you and your processor; it is not shared with ad platforms.
Marketing. Sharing conversions and audiences with advertising platforms, with click IDs and hashed contact details so they can match them.
How regions decide the default
What happens before a visitor chooses depends on where they are.
In the EU and UK, nothing beyond essential is allowed until the visitor opts in. Some regulators, such as France's CNIL, exempt narrowly defined audience measurement from consent; if your counsel agrees that applies to you, measurement can run before the choice.
In the United States, most state privacy laws are opt-out: tracking can run until the visitor opts out of "sale" or "sharing", and the Global Privacy Control browser signal counts as an opt-out.
Sensitive businesses, such as health or financial services, should require an explicit opt-in for marketing everywhere, and avoid sending product names or URLs to ad platforms.
Applying it per event
The important design choice is to decide per event, not per page load. A visitor who arrives undecided, browses, and then accepts should have their later events shared, and, if your rules allow, the events they generated while deciding. A visitor who later withdraws consent should have their marketing cookies removed on their next request, not at the next deploy.
The result
Your reports keep counting every visit at the level the law allows, your ad platforms receive every conversion they are entitled to, and you can explain exactly why each piece of data was or was not shared.