Skip to content

Track purchases in Google Analytics 4

Updated

Track purchases in Google Analytics 4 (0:19)

Google Analytics 4 (GA4) shows how many people visit your BCL homepage and forms, and which of them paid. You connect it once for your whole account: a Measurement ID for visits and a Measurement Protocol API secret for purchases.

These are the events your GA4 property receives from BCL:

Event When Sent from
page_view A customer opens your homepage, a form or a receipt. Browser
begin_checkout The customer clicks the pay button. On a lead form this is generate_lead. Browser
purchase The payment succeeds. Includes the order number, amount and form name. BCL’s server

BCL sends the purchase from its server, so ad blockers cannot stop it. BCL sends it only for successful payments. For pending COD and bank transfer orders, BCL sends it when you mark them paid.

You need both values from Google Analytics:

  1. In Google Analytics, go to Admin → Data streams and click your web stream.
  2. Copy the Measurement ID. It starts with G-.
  3. On the same page, open Measurement Protocol API secrets and click Create.
  4. Give the secret a name (for example BCL) and copy the Secret value.

The setting is on the Integrations page and covers every form in your account.

  1. Go to Platform Setup → Integrations.

    The Platform Setup menu in the BCL sidebar, with Integrations highlighted

  2. On the Google Analytics card, click Connect (Manage once it is set up).

    The Google Analytics card with the Connect button highlighted

  3. In the panel, under GA4 property, paste your ID into Measurement ID and your secret into Measurement Protocol API secret.

    The Google Analytics panel with the Measurement ID and Measurement Protocol API secret fields highlighted

  4. Click Save Google Analytics.

    The Save Google Analytics button highlighted at the bottom of the panel

A few things make your GA4 reports more useful:

  • Check purchases in BCL. Go to Tools → Marketing Logs and open the Google Analytics tab. Each row is a purchase BCL sent to your property. See Marketing Pixel Logs.
  • Mark purchase as a key event. In Google Analytics, go to Admin → Events and mark purchase as a key event. The event then shows as a conversion in your reports.
  • Add the Google Ads tag on each form. If you also run Google Ads, GA4 does not replace the form’s Google Ads tag. See Track Google Ads conversions on a form.

Common issues

Do I add Google Analytics to every form?

No. You set Google Analytics once for your account, on the Google Analytics card under Platform Setup → Integrations, and it covers your homepage and all your forms.

I see visits in Google Analytics but no purchases. Why?

BCL sends purchases from its server. The server needs the Measurement Protocol API secret. Add it under your Measurement ID on the Google Analytics card and click Save Google Analytics.

Why does BCL say my Measurement ID is not valid?

It must be a Google Analytics 4 ID: G- followed by 10 letters and numbers, for example G-AB12CD34EF. Old Universal Analytics IDs (UA-) do not work.

Was this article helpful?

Cookie settings

We use Google Analytics to see which guides help and where readers get stuck. It is on by default; you can turn it off. Your choice is saved on this device.