Fix Bloomreach Data Hub Tracking Failures in Safari
Bloomreach tracking fails in Safari because Apple’s Intelligent Tracking Prevention restricts third-party cookies and caps the lifespan of cookies set through JavaScript to seven days or less.

To restore tracking, you need to diagnose network requests in Web Inspector, deploy a Custom Tracking Domain to establish first-party cookie context, and verify that consent management callbacks fire before the Web SDK initializes.
How mature is your CRM setup?
Find out in minutes with a free CRM maturity check.
| Failure Root Cause | Safari Diagnostic Symptom | Impact on Data Hub | Recommended Technical Fix |
|---|---|---|---|
| ITP Third-Party Cookie Blocking | Network tab shows requests to bloomreach.com; Storage tab shows no _br_uid_2 cookie or cookie expires within 7 days | Visitor profiles fragment into multiple anonymous records per session | Configure Custom Tracking Domain via DNS CNAME to route requests through first-party subdomain |
| CNAME Cloaking Cookie Lifetime Cap | _br_uid_2 cookie appears but expires within 7 days despite Custom Tracking Domain setup | Soft visitor IDs reset weekly, breaking multi-week customer journey attribution | Implement server-side tracking via Bloomreach Tracking API to store identifiers server-side outside browser storage policies |
| Consent Banner Callback Race Condition | Network tab shows no tracking requests until after consent banner is dismissed, then requests appear | Tracking suppressed for initial page views; consent state not reflected in first-party data | Attach Web SDK initialization to CMP consent callback; verify callback fires only after explicit consent grant |
| Content Blocker Script Interception | Console shows “Blocked by content blocker”; Network tab shows exponea.min.js as cancelled or blocked | Web SDK fails to load; no tracking occurs regardless of consent or domain configuration | Disable Safari content blockers and extensions to test; consider alternative script delivery method or allowlist domain in content filter settings |
Why Bloomreach Tracking Fails in Apple Safari
Apple’s Intelligent Tracking Prevention blocks third-party cookies and limits the lifespan of cookies created by scripts in non-first-party contexts. When Bloomreach tracking requests originate from a third-party domain, Safari treats them as cross-site tracking and either blocks cookie creation or expires cookies within seven days, depending on user interaction patterns. This prevents the soft visitor identifier (stored in the _br_uid_2 cookie) from persisting across sessions, fragmenting customer profiles into separate anonymous records.
The restriction applies specifically to cookies set through JavaScript in third-party contexts. Safari also clears local storage and session storage when users leave a site, removing any alternative storage mechanisms your implementation might rely on.
If your Bloomreach configuration sends tracking requests directly to Bloomreach endpoints without routing through a first-party domain, Safari’s privacy model treats the request as cross-site, triggering the restriction.
Consent management platforms add a second layer of complexity. If the consent banner loads asynchronously and the Bloomreach Web SDK initializes before consent is granted, Safari may suppress tracking calls entirely. Even after users grant consent, the Web SDK may not re-initialize automatically, leaving tracking disabled for the remainder of the session.
Diagnosing Tracking Requests in Safari Web Inspector
Open Safari Web Inspector by pressing Option-Command-I, then navigate to the Network tab to inspect what happens when a page loads. Filter the network log by the tracking endpoint URL or search for requests containing track or exponea to isolate Bloomreach traffic.
Look for the HTTP response code: a 2xx response indicates the request reached Bloomreach; a 4xx or 5xx code shows the request failed; a cancelled or blocked request appears greyed out and often indicates a Content Security Policy violation or content blocker interference.
Switch to the Storage tab and expand the Cookies section to verify whether the _br_uid_2 cookie exists after the page loads. If the cookie is absent, the Web SDK either did not initialize or Safari blocked cookie creation. Check the cookie’s expiration date; if it shows a date within seven days, Safari has capped the lifetime due to CNAME cloaking or third-party context.
Console errors provide additional diagnostic signals. Search the console for messages containing Refused to connect, CORS, or Blocked by content blocker. These indicate network policy violations, cross-origin request failures, or script blocking by browser extensions or content filtering tools. Temporarily disable any Safari extensions and refresh the page to test whether blocking is the cause.
Configuring a Custom Tracking Domain for Safari
A Custom Tracking Domain routes tracking requests through a first-party subdomain of your own site, placing them in first-party context and exempting them from third-party cookie restrictions.
Set up a DNS CNAME record that points a subdomain (such as analytics-api.yourdomain.com) to Bloomreach’s tracking infrastructure. The CNAME record must match the format specified in Bloomreach documentation for your region and deployment.
After creating the CNAME record, configure the Bloomreach Web SDK to use the custom domain as the API base URL. This requires updating your SDK initialization code to reference the custom domain instead of the default Bloomreach endpoint.
Voxwise has found that clients often overlook DNS propagation delays during onboarding; allow up to 48 hours for the CNAME to resolve globally before testing, and use a DNS lookup tool to verify propagation to multiple geographic locations.
Test the configuration by inspecting the Network tab again. Tracking requests should now appear as first-party requests to your custom domain rather than third-party requests to Bloomreach. The _br_uid_2 cookie should persist for the full session and carry over to subsequent visits, provided Safari’s standard cookie retention policies apply.
How mature is your CRM setup?
Find out in minutes with a free CRM maturity check.
Comparing Custom Tracking Domains and Server-Side Tracking
Custom Tracking Domains mitigate Safari’s third-party cookie restrictions by repositioning tracking requests as first-party, but they remain subject to Safari’s seven-day cap on client-side JavaScript cookies. If a user does not visit your site for eight days, the soft visitor identifier expires and the next visit creates a new profile.
Server-side tracking bypasses browser storage restrictions entirely by routing events through your backend infrastructure using the Bloomreach Tracking API. Your server sends tracking requests directly to Bloomreach without involving the browser’s cookie and storage policies. This approach preserves visitor identifiers indefinitely because cookies are stored server-side and transmitted via HTTP headers, outside Safari’s JavaScript restrictions.
Server-side tracking requires more implementation overhead: you must capture user events on your backend, construct properly formatted Bloomreach API payloads, and handle authentication and error responses. Custom Tracking Domains require only DNS configuration and SDK initialization changes. For sites with high traffic or complex event schemas, server-side tracking offers superior data quality and resilience; for simpler implementations, Custom Tracking Domains provide adequate persistence with minimal engineering effort.
Aligning CMP Consent Callbacks with Web SDK Loading
Consent management platforms load consent banners asynchronously, creating a race condition where the Bloomreach Web SDK may initialize before users grant consent. If the SDK initializes before consent is obtained, Safari suppresses tracking calls as a privacy safeguard. Even after users interact with the consent banner, the Web SDK does not automatically resume tracking unless you explicitly re-initialize it.
Configure your CMP to fire a callback function only after users grant consent, and pass that callback to the Bloomreach Web SDK initialization. The initialization must occur inside the callback, not before it.
This ensures the SDK only starts tracking after explicit consent is confirmed. If your CMP supports a consent state listener, attach the Web SDK initialization to that listener so the SDK re-initializes whenever consent status changes.
Test the flow by opening the Network tab, loading the page, and observing whether tracking requests fire before or after you interact with the consent banner. Requests should not appear until after consent is granted. If tracking requests appear before consent, your initialization logic is executing prematurely.
Verifying Visitor Identifier Persistence Across Sessions
Soft visitor identifiers stored in the _br_uid_2 cookie must persist across browser sessions to maintain a continuous customer journey history. Open Web Inspector, navigate to Storage > Cookies, and record the value and expiration date of the _br_uid_2 cookie. Close the browser entirely, wait at least one minute, then reopen the site and check whether the cookie value remains unchanged.
If the cookie value changes on each visit, Safari is either expiring the cookie prematurely or your configuration is not persisting it. Check the cookie’s expiration date; if it shows a date within seven days from the current date, Safari’s cap is in effect and you need to implement either a Custom Tracking Domain or server-side tracking to extend persistence.
If the cookie is absent on the second visit, verify that your Bloomreach configuration includes the correct API base URL and that consent is being granted. Soft visitor identifiers only initialize after explicit consent is confirmed, so a missing cookie after consent is usually a sign that the Web SDK did not initialize or that tracking requests failed silently.
Frequently Asked Questions
Safari caps the lifespan of cookies set through JavaScript in third-party contexts to seven days, expiring the _br_uid_2 cookie even if your configuration specifies a longer retention period. To extend persistence beyond seven days, deploy a Custom Tracking Domain to place cookies in first-party context, or route tracking through a server-side implementation where identifiers are stored server-side outside browser storage policies.
Server-side tracking bypasses browser-level cookie and storage restrictions because identifiers are stored on your backend and transmitted via HTTP headers rather than browser cookies. However, server-side tracking still requires explicit user consent before any tracking occurs, as consent is a legal and ethical requirement independent of the technical mechanism used to capture events.
Content blockers can intercept and prevent the exponea.min.js script from loading, which stops the Web SDK from initializing entirely. If the script is blocked, no tracking occurs regardless of consent or domain configuration. Test by temporarily disabling Safari extensions and content blockers; if tracking resumes, the blocker is the cause and you may need to allowlist your domain or delivery domain in the content filter settings.
A cancelled request (shown greyed out in the Network tab with no HTTP status code) indicates Safari blocked the request due to privacy policy violations or content blocking. A 403 Forbidden or 401 Unauthorized response indicates the request reached the server but authentication or authorization failed. A 0 status code or CORS error indicates a cross-origin policy violation. Check the request headers to confirm the endpoint URL and method match your Bloomreach configuration.
Audit Your Tracking Setup
Safari’s privacy restrictions require deliberate configuration to maintain tracking continuity. Inspect your current setup in Web Inspector, verify cookie persistence across sessions, and implement either a Custom Tracking Domain or server-side tracking to align with Safari’s storage model.
Voxwise recommends auditing your CMP consent callback timing and testing with content blockers disabled to isolate the root cause before deploying changes to production.