Conversion tracking

ShowroomPro automatically forwards ring-builder conversions to the analytics tools already on the jeweler's website when website forwarding is enabled. Events run on the host page, where the visitor's ad-click attribution lives, not in a separate iframe session.

#Install and enable

  1. Install the dashboard's embed.js snippet (inline, popup, or floating).
  2. In Tracking & Analytics, enable Send ring builder events to my website's analytics. It is on by default for new installs. Existing detected installs stay off until the jeweler opts in. Remove older manual conversion listeners first to avoid duplicate events.
  3. Make sure GA4, Google Tag Manager, or Meta Pixel is installed on the host page and permitted by the site's consent settings. ShowroomPro does not install host tags or bypass their consent controls.
  4. Complete a test design. The dashboard shows the latest tool detection and last browser dispatch per website. Dispatch is not confirmation of provider receipt, attribution, or a reported conversion. Ad blockers can block events or the health report.

For Shopify or Squarespace sites that cannot load the external widget script, use plain iframe + small listener in the install guide. This uses the same forwarder and setting but still requires permission to run inline JavaScript. A bare iframe without the listener keeps in-frame tracking and fixed height.

#Events and safe parameters

Quiz milestoneGA4 through gtagGTM through dataLayerMeta through fbq
Design createdgenerate_leadshowroompro_leadLead (standard)
Design approveddesign_approvedshowroompro_design_approvedDesignApproved (custom)

Parameters are design_id, quiz_type (engagement_ring or wedding_band), and event_id. An optional placement label is included when provided as data-placement="homepage" on a widget container/script, or as sp_placement on a fallback iframe URL. Use a short non-personal campaign/placement label, not a URL or customer information. Labels containing email-like or phone-like content are omitted. Names, emails, phone numbers, prices, and conversion values are never part of the browser conversion payload.

Stable IDs are sp:design_created:DESIGN_ID and sp:design_approved:DESIGN_ID. Meta also receives this as its eventID option, also used by Meta Conversions API when a server connection is configured.

Each milestone is dispatched once per design per tool. Browser storage keeps the guard across reloads; when storage is blocked, it lasts for the current page only. The listener validates the iframe origin and source window. Unknown messages and unavailable or throwing analytics tools cannot break the quiz.

The host acknowledges the listener with its detected tools. An enabled quiz suppresses its own jeweler GA4 conversions only when the host has gtag, and its Meta conversions only when the host has fbq. Missing destinations keep their configured in-frame delivery, so an empty host or a host with only one platform does not lose the other conversions. A dataLayer alone does not prove that GTM has a destination tag, so it does not suppress native frame delivery. If there is no working listener, or forwarding is off, all configured tracking stays in-frame. Direct quiz links keep tracking in-frame. Those GA4 conversions explicitly target only the jeweler's measurement ID, not ShowroomPro's own GA property.

#Recorded conversions

ShowroomPro records three business conversions for every studio, whether or not any ad platform is connected: the first generated design in a session, a customer approving a design, and a customer entering the won pipeline stage. These records are the source of truth. They appear in each customer's Conversions history and as Sales and Sale value in Lead sources analytics. Recording starts when this feature is installed; earlier activity is not backfilled.

Choose the won pipeline stage (default Completed) and sale currency in Settings → Pipeline → Sale tracking. Each genuine entry into that stage records one sale; saving notes or repeatedly saving the same stage does not create another. Moving a customer into the won stage (by dragging the card or changing its status) first asks for the sale value; it is saved in the same update so the sale is recorded with it. Skip for now moves the customer without a value, and Cancel leaves them where they were. To add or correct the value later, edit the latest Sale in the customer's Conversions history; earlier sales keep their recorded values. Analytics count each customer once, at their latest sale. Leaving the amount empty omits it; zero is a valid amount. There is no automatic Shopify/order amount lookup.

#Server-side connections

Ad connections read from the recorded conversions above; they never create or change them.

In Tracking & Analytics, first save your Pixel ID and/or GA4 Measurement ID. Then add a Meta Conversions API access token and/or GA4 Measurement Protocol API secret for that same destination. Secrets are encrypted at rest, entered in password fields, and never returned in full. Leaving a secret field blank preserves it; Disconnect removes it and cancels pending deliveries. Replacing a credential cancels the old connection's pending events rather than replaying them to a potentially different account. Only future events use the replacement. Sandbox studios never send, including test events.

MilestoneMeta server eventGA4 server event
First generated design in a sessionLeadgenerate_lead
Customer approves a designDesignApproveddesign_approved
Customer enters the chosen won stagePurchasepurchase

Only conversions recorded while a connection is saved are queued for it. Each send reads the current recorded conversion, so a sale amount edited before delivery is sent at the new value. Amounts edited after a provider accepted the event are not resent or adjusted at Meta or Google.

Meta matching and deduplication: the server hashes normalized email and international phone numbers with SHA-256. The widget reads the host's existing _fbp, GA client and session cookies and carries them into quiz attribution. An existing _fbc, or an _fbc-format value constructed from the captured fbclid and its capture time, supports click matching. Lead requests may also include the quiz-start IP and browser user agent. Those two fields are held separately, never returned through APIs or written to delivery logs, deleted after the lead's Meta attempt finishes, and expire after at most 24 hours if not used. The cleanup worker runs every 15 seconds while the application is running; expired data is not sent. Later approvals and sales do not use them. Server and browser Meta copies share event name and event ID, so Meta can merge them instead of counting them twice.

GA4 identity and duplicate avoidance: the server uses the host GA client ID and session ID when available. Otherwise it uses a stable, non-contact-derived customer/session identifier. Google receives event details and identifiers, not emails or phone numbers. GA4 does not generally deduplicate leads/approvals by event_id. While a GA4 server connection is saved, ShowroomPro disables its own browser GA4 conversion calls and conversion dataLayer pushes for that quiz. Page views remain browser-side. Remove your own duplicate GTM/manual tags too. Configure generate_lead, design_approved and/or purchase as key events and import the desired actions into Google Ads.

Testing: Meta's Send test requires a code from Events Manager → Test Events and does not create a live conversion. Google uses its debug validation endpoint, which checks event structure but does not authenticate the API secret or record the event. The result says so explicitly; verify the API secret belongs to the selected stream in GA4. Provider failures are reported without echoing credentials or customer details.

Delivery: conversions and their per-provider queue entries are recorded atomically with the design/approval/stage change. A database uniqueness constraint prevents duplicate queue entries. Explicit rate limits and retryable Meta failures use exponential backoff, up to eight attempts. Invalid/revoked credentials pause that provider and show a connection warning. Completed events are never sent again. Changing the destination ID cancels events queued for the previous ID. The last 20 provider deliveries show sent, queued, retry, paused, failed, cancelled or uncertain status; use Refresh status for the latest.

An ambiguous Google network timeout, server error or interrupted send is marked uncertain, not automatically resent: Google could already have accepted it. Meta can retry the same event ID within its deduplication window; older interrupted claims are also marked uncertain. Events older than each provider's acceptance window are failed rather than silently delivered too late. A successful GA4 HTTP response means accepted for processing, not confirmed attribution, secret validation, or appearance in reports.

Update your studio privacy notice and obtain the consent your business requires before enabling these connections. Server sending is an explicit studio opt-in; it is not a way to override a visitor's privacy obligations.

Choose inclusive From/To dates (UTC, up to one year) and download Google Ads offline conversions. The CSV is built from recorded conversions (including studios without a Meta or GA4 connection) and includes only leads, approvals and sales with a captured gclid, at their current values. No Google Ads OAuth connection or direct upload is needed. In Google Ads, create click-import conversion actions named exactly:

  • ShowroomPro Lead
  • ShowroomPro Design approved
  • ShowroomPro Sale

The columns are Google Click ID, Conversion Name, Conversion Time, Conversion Value, and Conversion Currency. Times include +00:00; values are blank when not recorded. Upload through Google Ads' conversion imports. Google Ads eligibility and lookback windows still apply. Avoid importing a milestone into the same bidding goal both through GA4 and through this CSV.

#Set up ad conversions

  1. GA4: open Admin → Events and mark generate_lead as a key event.
  2. Google Ads: link your GA4 property, then open Goals → Conversions → New conversion action → Import → Google Analytics 4 properties. Import generate_lead.
  3. GTM: create a Custom Event trigger named showroompro_lead. Create Data Layer Variables for quiz_type, design_id, and event_id as needed, and attach the intended conversion tag.
  4. Meta: choose the standard Lead event as the campaign optimization event. Use Test Events to check it. DesignApproved is a separate custom event.
  5. Split by quiz: register quiz_type as an event-scoped custom dimension in GA4; use it in reports, GTM trigger conditions, or Meta custom-conversion rules to distinguish engagement rings from wedding bands.

Avoid attaching a second GA4 or Meta tag to the GTM trigger if the same conversion already goes through gtag or fbq. Choose one delivery route per destination. The forwarder sends both the native call and the dataLayer signal; it cannot deduplicate independently configured GTM tags or old manual listeners.

Test with GTM Preview, GA4 DebugView/Realtime, and Meta Test Events. A live embed with no detected tools shows a dashboard warning. GA4 detection means a gtag function was available; GTM detection means a push-capable dataLayer was available, not proof a GTM container processed it.

#Advanced: manual listeners

Most installs do not need one. Turn automatic forwarding off before adding custom conversion listeners. See the parent-event reference for lifecycle events and the public widget API.

html
<script>
window.addEventListener("message", function (e) {
  if (e.origin !== "https://www.showroompro.ai") return;
  var iframe = Array.prototype.find.call(document.querySelectorAll("iframe"),
    function (f) { return f.contentWindow === e.source; });
  var d = e.data;
  if (!iframe || !d || d.source !== "showroompro" ||
      d.event !== "design_created" || typeof d.design_id !== "string") return;
  var id = "sp:design_created:" + d.design_id;
  var key = "my-studio:lead:" + id;
  try { if (sessionStorage.getItem(key)) return; } catch (_) {}
  if (typeof window.gtag !== "function") return;
  window.gtag("event", "generate_lead", {
    design_id: d.design_id, event_id: id, quiz_type: d.quiz_type
  });
  try { sessionStorage.setItem(key, "1"); } catch (_) {}
});
</script>

This example is for a host-page GA4 tag only. Do not forward the whole raw message to an ad platform. Only copy the documented non-personal parameters.