All features Website & Marketing
Website & Marketing

Clinic website builder & marketing tools — technical details

The landing page builder creates a public-facing marketing website for the clinic, separate from the patient portal. It is served from the same installation, uses the clinic's own domain or subdomain, and feeds new-patient enquiries directly into the clinic's patient list.

GA4 / gtag.js Schema.org / JSON-LD UTM tracking

Landing page builder

Architecture

includes/landing_page.php + includes/landing_migrations.php define the landing page schema and migrations. pages/landing_builder.php is the drag-and-drop builder UI (admin side). pages/landing_public.php serves the public-facing page.

AI content generation

api/landing_ai.php uses the AI pipeline to generate section copy (about the clinic, services, doctor bio) from a short prompt entered by the clinic admin. Generated copy is editable before publishing.

Contact form

api/landing_contact.php receives contact form submissions, writes them to landing_leads, and dispatches a notification email to the clinic. Leads can be converted to patient records with one click from the admin side.

File uploads

api/landing_upload.php handles image uploads for the landing page (clinic photo, doctor headshots, banners). Files are stored in /uploads/landing/ and served directly.

White-label

When FEATURE_WHITELABEL is enabled: the "Powered by MindFlow" footer link is removed, the From address in all patient emails uses the clinic's own domain (via SMTP settings), and the patient portal URL can use a custom subdomain.

Analytics & tracking

Google Analytics

The clinic admin enters a GA4 Measurement ID in Settings → Analytics. The header.php template injects the gtag.js snippet on every page (main app, patient portal, and landing page).

Search Console

A Search Console verification meta tag can be added from Settings → Analytics. It appears on the public-facing pages for domain property verification.

Lead source tracking

landing_leads captures UTM parameters (utm_source, utm_medium, utm_campaign) from the URL at the time of form submission. Referral source is also stored on the patient record when a lead is converted.

Email templates

Template system

includes/email_templates.php defines all transactional email templates (appointment confirmation, reminder, prescription sent, invoice, ABHA linked, etc.) as PHP functions rendering HTML with the clinic's branding injected.

Custom templates

The Custom Emailer plugin (plugins/custom-emailer/) adds a UI for sending ad-hoc rich HTML or plain-text emails to any patient or any email address — outside the normal transactional flow.

Email delivery

includes/mailer.php uses PHPMailer with configurable SMTP (Settings → Email / SMTP). TLS/SSL is enforced. All outgoing emails are logged in email_logs with recipient, subject, status, and timestamp.

Ready to see it in action?

The demo has real sample data — appointments, patients, prescriptions — so you can explore freely.

Try the demo ← All features