Many established real estate agencies, channel partners, and developers already operate existing websites or project microsites (such as *propzilla.in*, WordPress landing pages, Webflow sites, or custom React/Next.js portals). Historically, connecting an external website to your CRM required hiring developers to write backend webhook glue code for every single contact form, support form, and WhatsApp button.

With Propiofy SmartPixel & LeadSense™ (`propiofy-sdk.js` v1.0.0), your external web team never has to write a single API call. You simply drop one pre-configured `<script>` tag into your website's <head>, and Propiofy automatically handles:

  • Live Visitor Analytics: Real-time pageviews, unique visitors, session duration, bounce rate, referrer domains, and UTM ad campaign attribution (utm_source, utm_medium, utm_campaign).
  • Contact Form Lead Capture: Automatically detects standard HTML <form> submissions and creates a CRM lead tagged with `[WEB] Website Contact Form`.
  • Customer Support Form Capture: Automatically detects support/helpdesk forms and creates a CRM lead + note tagged with `[SUP] Website Support Form`.
  • Click-to-WhatsApp Lead Capture: Intercepts clicks on any wa.me or api.whatsapp.com link or button and logs a high-intent CRM lead tagged with `[WA] Website Click-to-WhatsApp` before redirecting the buyer to WhatsApp.
Zero Developer Effort: Your data-tenant-id and data-site-key are automatically generated and pre-filled inside your Propiofy Admin Dashboard. You never have to look up UUIDs or construct JSON payloads manually.

Step 1 — Open Propiofy Integrations Hub & Whitelist Your Website Domain

Because your external website (for example, https://www.propzilla.in) runs on its own domain and sends browser events to Propiofy (https://www.propiofy.com), Propiofy uses Dynamic Multi-Tenant CORS & Domain Whitelisting to protect your CRM from unauthorized cross-origin spam.

  • Log in to Propiofy Admin: Navigate to Integrations & Apps Hub (/integrations) in your left sidebar.
  • Select Propiofy SmartPixel & LeadSense™: Click Connect Seamlessly (or Manage Connection & Assets) on the Propiofy SmartPixel & LeadSense™ card under the *Website & WhatsApp SDK* tab.
  • Enter Your Whitelisted External Domains: In the Whitelisted External Website Domains field, enter the domain(s) where you plan to embed the script (comma-separated, e.g. propzilla.in, www.propzilla.in, luxury.myagency.com).
  • Click Connect & Verify Now: Your domain whitelist and auto-generated pk_live_... site key are immediately activated.

Step 2 — Copy Your Pre-Filled 1-Line `propiofy-sdk.js` Snippet

At the top of the Propiofy SmartPixel & LeadSense™ drawer, you will see your ready-to-use script tag with your agency's data-tenant-id and data-site-key already filled in:

html <script src="https://www.propiofy.com/sdk/v1/propiofy-sdk.js" data-tenant-id="YOUR_AUTO_FILLED_TENANT_ID" data-site-key="pk_live_YOUR_AUTO_FILLED_SITE_KEY" async ></script>

Click the Copy 1-Line Script button.

Step 3 — Paste the Script into Your External Website

You can install the 1-line script on any website stack in under 2 minutes:

  • Standard HTML / PHP / Custom Websites: Open your global header file (index.html or header.php) and paste the <script> tag right before the closing </head> tag.
  • WordPress (Elementor / Astra / Divi / WPCode): Go to *Appearance → Theme File Editor → header.php* (or use the *WPCode Insert Headers and Footers* plugin) and paste the snippet into the Header section.
  • Next.js / React Single-Page Applications: Add the script inside your root app/layout.tsx <head> (or using Next.js <Script strategy="afterInteractive" />). propiofy-sdk.js automatically hooks into history.pushState and popstate so SPA route transitions are tracked seamlessly!
  • Google Tag Manager (GTM): Create a new Custom HTML Tag, paste the <script> snippet, set the trigger to All Pages (Page View), and click Publish.

Step 4 — How Contact Forms & Support Forms Are Captured Automatically

Once propiofy-sdk.js is on the page, it listens for any <form> submission across your website. It automatically inspects your form inputs (name, phone, mobile, email, property, budget, message) and sends the lead to your Propiofy CRM while allowing your existing website form action to continue normally.

  • Contact & Property Inquiry Forms: Automatically tagged in your CRM with the cyan `[WEB] Website Contact Form` badge.
  • Support & Helpdesk Forms: Any form on a /support or /help page — or any <form> where you add data-propiofy-form="support" — is automatically tagged with the amber `[SUP] Website Support Form` badge.
  • Ignoring Specific Forms (e.g., Login or Search Bars): Password fields are ignored automatically. If you ever want the SDK to skip a specific form, simply add data-propiofy-ignore="true" to that <form> tag.

html <!-- Optional: Explicitly mark a form as a Support Form or attach a Property Name --> <form data-propiofy-form="support" data-property-interest="PropZilla Gurgoan Sector 65"> <input type="text" name="name" placeholder="Your Name" required /> <input type="tel" name="phone" placeholder="Mobile Number" required /> <textarea name="message" placeholder="How can our support team help?"></textarea> <button type="submit">Submit Support Request</button> </form>

Step 5 — How Click-to-WhatsApp Leads Flow into Your CRM

Most Indian real estate websites lose 60–70% of their attribution because buyers click a floating WhatsApp icon (https://wa.me/919876543210?text=Hi...) instead of filling out a long form.

propiofy-sdk.js solves this out of the box:

  • Whenever a visitor clicks any link or button pointing to wa.me/, api.whatsapp.com/send, whatsapp://send, or carrying a data-propiofy-whatsapp attribute, the SDK immediately fires a non-blocking keepalive beacon to Propiofy.
  • If the visitor previously typed their name, phone number, or email into any input field on your site, the SDK automatically attaches their contact profile to the WhatsApp click event!
  • The lead appears immediately in CRM & Lead Management (/crm-lead) with the green `[WA] Website Click-to-WhatsApp` origin badge, complete with the exact property page URL and pre-filled WhatsApp message.

Step 6 — Verify Your Setup in 10 Seconds

You can verify your integration right now:

1. Inside Propiofy Admin → Integrations → Propiofy SmartPixel & LeadSense™, click Send Test Website Lead to send a simulated external website lead into your CRM. 2. Open CRM & Lead Management (/crm-lead) and use the Origin Provider filter bar at the top of the table to filter by Website Contact Form, Website Support Form, or Click-to-WhatsApp. 3. Open Analytics (/analytics) to view live visitor sessions, top property pages, and traffic sources streaming from your external website.