Responsive Iframe Embed (/embed/widget)
For partner platforms operating under strict Content Security Policies (CSP) that prohibit arbitrary third-party JavaScript execution (e.g. enterprise portals, Shopify stores, Webflow, Squarespace, or mobile WebViews), HiTech provides an official server-rendered iframe route.
The route is available across all supported locales:
- Default:
https://hitechinsurance.ai/embed/widget - Localized English:
https://hitechinsurance.ai/en/embed/widget - Localized Spanish:
https://hitechinsurance.ai/es/embed/widget
1. Architecture & Rendering Characteristics
The iframe route is implemented as a specialized Server Component at src/app/[locale]/embed/widget/page.tsx.
Key Architectural Traits
- Zero SEO Indexing: Emits
robots: { index: false, follow: false }metadata so search engine spiders do not index isolated widget frames as duplicate thin content. - Transparent Viewport Canvas: Renders on a
background: transparentcontainer, blending seamlessly with the host container's background color or textures. - Automatic Multilingual Localization: If rendered via
/es/embed/widget, button copy and subheadlines automatically default to Spanish ("Cotización Gratis","Cobertura Inteligente para Cada Necesidad"). - Link Hardening: All outbound links use
target="_blank" rel="noopener noreferrer".
2. Embedding Code Snippets
Standard Card Embed (Responsive)
<iframe
src="https://hitechinsurance.ai/embed/widget?theme=dark&variant=card&utm=broker_portal_123"
width="100%"
height="90"
frameborder="0"
scrolling="no"
loading="lazy"
style="border: none; overflow: hidden; width: 100%; max-width: 560px;"
title="HiTech Insurance Partner Badge"
></iframe>
Compact Pill Embed
<iframe
src="https://hitechinsurance.ai/embed/widget?theme=light&variant=pill&utm=automotive_blog"
width="100%"
height="60"
frameborder="0"
scrolling="no"
loading="lazy"
style="border: none; overflow: hidden; width: 100%; max-width: 420px;"
title="HiTech Insurance Quote Pill"
></iframe>
3. Query Parameter Reference
The iframe route supports the following search parameters:
| Query Parameter | Allowed Values | Default | Purpose |
|---|---|---|---|
theme | dark | light | dark | Controls color palette: deep midnight slate gradient (#0b1120 to #0f172a) vs crisp snow white (#ffffff to #f8fafc). |
variant | card | pill | card | Dimensions and radius. card uses max-width: 560px with 14px border radius. pill uses max-width: 420px with pill-shaped 9999px radius. |
utm | string | partner_embed | Attribution source tracking token attached to the referral URL. |
cta | string | "Get Free Quote" (EN) / "Cotización Gratis" (ES) | Text inside the orange gradient action button. |
tagline | string | "Smart Coverage for Every Need..." (EN/ES) | Subtitle text displayed beneath the brand title. |
4. CMS Platform Integration Guides
WordPress (Block & Classic Editor)
- In the page or template editor, insert a Custom HTML block.
- Paste the iframe snippet above.
- If using AMP or strict security plugins (like Wordfence or iThemes), add
https://hitechinsurance.aito your permitted iframe origins.
Webflow
- Drag an Embed element from the Add panel into your desired container.
- Paste the iframe code snippet.
- Configure the Webflow parent
divtowidth: 100%,display: flex, andjustify-content: center.
Squarespace
- Click an insertion point on any page and choose the Code block.
- Ensure HTML is selected and Display Source is unchecked.
- Paste the iframe snippet.
Shopify
- Under Online Store → Themes → Customize, add a Custom Liquid section.
- Paste the responsive iframe snippet. Set the container margins to
16px 0.
5. Security & Sandbox Attributes
If your security policy enforces strict sandbox flags on external iframes, the following permissions are required:
<iframe
src="https://hitechinsurance.ai/embed/widget?utm=sandboxed_app"
sandbox="allow-scripts allow-popups allow-forms allow-same-origin"
width="100%"
height="90"
frameborder="0"
></iframe>
[!IMPORTANT] The
allow-popupsattribute is mandatory because the CTA button navigates the user into the HiTech quote funnel via a new tab (target="_blank"). Withoutallow-popups, the browser will block the user interaction.