Honor In-Page Opt-Outs with disable_tracking
Add disable_tracking to the SightMap embed URL and SightMap fires no analytics or logging for that visitor's session. Use it to honor an opt-out made in your own cookie banner, consent tool, or "do not track" setting.
The parameter is part of the SightMap® Query String API and has been live since October 20, 2026. It’s off by default, and it does not require account configuration or requests to Engrain to implement.
Who this is for
This guide is for developers who embed SightMap on a website they build or maintain.
| Audience | Typical use |
|---|---|
| Web agencies | Connect your website's cookie consent banner directly to the embedded SightMap. |
| In-house agencies | Apply one opt-out rule across a portfolio of property websites. |
| PMS and PropTech vendors | Pass a visitor's consent choice from your platform into SightMap. |
Use disable_tracking when a visitor declines analytics or tracking cookies on your site, or turns on a "do not track" setting you provide.
How it works
SightMap reads disable_tracking when the embed loads. If the parameter is present, SightMap runs normally for that session but sends nothing to GA4 or PostHog. The parameter takes no value.
SightMap already honors Global Privacy Control (GPC). Adding disable_tracking covers the case GPC can't: a choice the visitor makes on your page rather than in their browser.
GPC catches visitors with a browser signal, while disable_tracking catches visitors who opt out on your site.
| Global Privacy Control (GPC) | disable_tracking | |
|---|---|---|
| Who sets it | The visitor's browser or extension | Your page, in the embed URL |
| What it does | A browser-wide privacy preference | An opt-out made in your site's own UI |
| Setup | None. SightMap detects it automatically | Append the parameter when the visitor opts out |
| Scope | Every site the visitor uses | Your SightMap embed only |
How to implement disable_tracking
disable_tracking- Find your embed URL. It looks like
https://sightmap.com/embed/{embed_id}, with any other query string parameters you already use. - Check the visitor's consent on page load. Read the choice from your cookie banner, consent tool, or your own setting.
- Append the parameter if they opted out. Add
disable_trackingto the query string. If the URL has no other parameters, start with ?. Otherwise, add&disable_tracking. - Reload the page when the visitor's consent changes. SightMap reads the parameter only on load. If a visitor opts out after the map is open, set the IFrame's src again with the parameter added.
Example URLs
No other parameters:
https://sightmap.com/embed/e8ywkqrqwlx?disable_trackingCombined with other Query String API parameters:
https://sightmap.com/embed/e8ywkqrqwlx?unit_number=738&disable_trackingTest your integration
- Open your page and opt out of tracking in your consent UI.
- Open your browser's developer tools and inspect the SightMap IFrame. Confirm its src includes
disable_tracking. - In the Network tab, clear the log, then click around the map: select units, open details, change floors.
- Filter requests for
google-analyticsandposthog. With the parameter present, no requests from the SightMap embed should appear. - Opt back in, confirm the embed reloads without the parameter, and check that analytics requests resume.
Integration notes
- The parameter applies to one session. SightMap reads
disable_trackingeach time the embed loads and doesn't remember the visitor's previous choice. Make sure your website checks the visitor's consent and adds the parameter on every page load when tracking is disabled. - Your page owns the decision. SightMap doesn't read your cookies or your consent tool directly.
- The map works the same with tracking off. Visitors can still browse units, view details, and apply.
- It works with both integration models: pop-up IFrame and embedded in-line. For a pop-up, add the parameter to the URL your link or modal opens.
- It doesn't change analytics on your own site. Your consent tool still controls your page's tags.
FAQs
Do I need to contact Engrain to turn this on?
No. The parameter works on any SightMap embed as soon as you add it to the URL.
What happens if a visitor opts out after the map has loaded?
If a visitor opts out while SightMap is open, reload the entire webpage immediately, including the SightMap embed. Make sure the reloaded embed URL includes disable_tracking. SightMap reads this parameter when it loads, so reloading ensures the visitor's updated consent choice takes effect. Until the embed reloads, SightMap may continue tracking.
Will my SightMap reporting change?
It depends on how you track SightMap activity. The parameter prevents SightMap from sending analytics data to GA4, which may affect reports that rely on that data. However, it does not affect the SightMap Metrics API, which collects anonymous interaction data without using cookies or tracking individual visitors.
Updated about 3 hours ago

