Lockii sends booking and checkout events to Google Analytics, Facebook Pixel, and PostHog when you add your tracking IDs. You can also turn on Lockii Web Analytics for first-party session data inside your reporting hub.
In the app: Settings → Website & Embeds (scroll to Analytics & Tracking)
When tracking is configured, Lockii automatically fires events as customers browse products, start checkout, add payment details, and complete a booking. Purchase events are tied to a stable customer identifier so completed bookings show up reliably in Google Analytics, even when the customer pays with Apple Pay or Google Pay.
Lockii Web Analytics runs separately. It collects first-party session data on your hosted pages and embedded widgets, which you can review under Reporting → Web Analytics.
PostHog runs alongside your other tools. When you add a PostHog project key, Lockii sends page views, product views, checkout steps, and purchase events to your PostHog project.
Go to Settings → Website & Embeds.
Scroll to Analytics & Tracking.
Paste your Google Analytics Measurement ID (GA4: G-XXXXXXXXXX).
Paste your Facebook Pixel ID if you use Meta ads.
Changes save automatically.
In the same Analytics & Tracking section, paste your PostHog Project API Key (phc_...).
Optional: set PostHog API Host if you use PostHog EU Cloud, US Cloud, or a self-hosted instance. Leave blank to use PostHog US Cloud.
Changes save automatically.
Place a test booking and confirm events appear in your PostHog live events view.
In the same section, toggle Lockii Web Analytics on.
Open Reporting → Web Analytics to see sessions, funnel steps, traffic sources, and revenue attribution.
Place a test booking on your live site (not preview mode).
Check Google Analytics Realtime, your Pixel events dashboard, or PostHog live events.
Confirm you see page views, checkout steps, and a purchase event after payment.
Bookings complete on Lockii's booking domain (book.lockii.app, or your custom booking domain if you have one connected), not on your website's domain. These one-time steps in your GA4 admin keep sessions and conversion attribution accurate across that hop. Lockii carries the visitor's Google Analytics identity from your website through to checkout automatically, but Google also needs to know the two domains belong together.
Cross-domain tracking — In Google Analytics go to Admin → Data streams → your web stream → Configure tag settings → Configure your domains, and add book.lockii.app (and your custom booking domain if you use one). This tells Google to treat your website and your booking pages as one continuous journey.
List unwanted referrals — In the same tag settings area, open List unwanted referrals and add:
lockii.app (covers book.lockii.app and related Lockii booking domains)
your own website domain (for example yourcompany.com)
your custom booking domain, if you use one
This stops Google from treating hops between your website and Lockii as a new referral source, so the original source (for example a Google Ads click) keeps the credit.
If you are seeing unexpected referral traffic from your own site or from Lockii in Google Analytics, add those domains here.
Measurement Protocol API secret (optional, recommended) — Go to Admin → Data streams → your web stream → Measurement Protocol API secrets and click Create. Copy the secret and paste it into Settings → Website & Embeds → Analytics & Tracking → GA4 Measurement Protocol API Secret in Lockii. With this configured, Lockii sends a server-confirmed purchase event to your Google Analytics property the moment payment succeeds — so conversions are recorded even if the customer closes the page before payment completes, uses an ad blocker, or their browser blocks tracking. Lockii deduplicates this against the normal browser event, so purchases are never double-counted.
Event
When it fires
Platforms
Page view
Customer loads a booking page
Google Analytics, Facebook Pixel, PostHog
View item (product_viewed in Lockii Web Analytics)
Customer views a product in your browse widget or hosted page
All platforms when configured
Begin checkout / InitiateCheckout
Customer opens checkout with items and dates selected
Google Analytics, Facebook Pixel, PostHog
Add payment info / AddPaymentInfo
Customer enters payment details on the checkout form
Google Analytics, Facebook Pixel, PostHog
Purchase
Payment succeeds and the booking is confirmed
Google Analytics, Facebook Pixel, PostHog
Purchase events include booking value, currency, order ID, and customer email where available. If you have added a Measurement Protocol API secret, Lockii also sends a server-confirmed purchase event after payment succeeds, deduplicated against the browser event.
Lockii sets a user_id in Google Analytics after checkout so purchases from the same customer stitch together across sessions.
Lockii customer IDs (for example customer_abc123) are sent as-is.
Email addresses and phone numbers are hashed before they reach Google Analytics. Raw contact details never leave Lockii as a user ID.
Purchase events use a reliable delivery method so the event is less likely to be lost when the customer is redirected to their confirmation page.
When a customer moves from your website into an embedded widget or on to checkout, Lockii carries their Google Analytics client and session identity across automatically, so the whole journey appears as one session attributed to the original traffic source.
If you use Google Ads enhanced conversions, Lockii also sends hashed email and name data when a customer is identified at checkout.
Complete the Google Analytics setup checklist above — cross-domain tracking and List unwanted referrals are the two settings that most commonly cause bookings to show up as referral traffic instead of the ad or search click that actually drove them.
Seeing unexpected referrals from your own website or Lockii? Add your domain and lockii.app under Admin → Data streams → Configure tag settings → List unwanted referrals.
Test on your deployed site. Some website builders block embedded scripts in preview mode.
Use Lockii Web Analytics to see where customers drop off in the booking funnel, then pair with Google Analytics or PostHog for deeper product analytics.
Add a privacy policy note that covers analytics and pixel tracking on your booking pages.