Skip to main content

Iframe settings

trigger/exclude the Geo Redirect tracking code from Iframes

Written by Chiara

Iframe Safe Mode

The Iframe settings toggle in the Advanced Settings of your Geo Redirect campaign controls whether the redirect script is allowed to run when it is loaded inside an <iframe>.

Default state: OFF

By default the toggle is disabled, meaning the redirect script runs regardless of whether the page is loaded in a top-level browser window or inside an iframe. This is the correct setting for most sites.

What enabling the toggle does

When you enable Iframe Safe Mode, the redirect script detects whether it is executing inside an iframe (by checking window.self !== window.top). If it is inside an iframe, the script does nothing — the redirect is skipped entirely for that page load.

When to enable it

Enable this option if you are experiencing unexpected redirects triggered by page-builder or visual-editor tools that render your site inside an iframe for their live-preview environment. The most common case is the conflict with Elementor: Elementor's editor opens your page in an iframe, and without this toggle the redirect script fires inside the editor, breaking the editing experience.

Other situations where enabling it may help:

  • Any page-builder that uses iframe-based live previews (Divi, WPBakery, Beaver Builder, etc.).

  • Third-party A/B testing or personalisation tools that embed your page in an iframe for visual editing.

Trade-off

Enabling Iframe Safe Mode suppresses the redirect for all iframe contexts — not just page-builder editors. If your site legitimately embeds your pages in iframes as part of its normal operation (for example, partner integrations, preview widgets, or embeddable checkout flows), those embedded pages will no longer be redirected when the toggle is on. Review whether any of your real visitor flows rely on iframe-based embeds before enabling this option.

Did this answer your question?