Unable to disable Builder tracking cookie for GDPR

Subject: builderSessionId Cookie Re-enabling Despite builder.canTrack = false

Hello Builder.io Support,

We’re currently implementing GDPR compliance on our website using a consent banner. Based on this forum recommendation, we are setting:

builder.canTrack = false;

However, we’ve noticed that the builderSessionId cookie is still being re-enabled when navigating between pages or after a page refresh.

Could you advise how others have successfully handled this scenario? We’re using Next.js as our framework.

Here are a few additional details:

Looking forward to your guidance.

I solved this by moving builder.canTrack = false; outside the useEffect, so it runs on the first render.