Track purchases in Google Analytics 4
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.
Get your Measurement ID and API secret
Section titled “Get your Measurement ID and API secret”You need both values from Google Analytics:
- In Google Analytics, go to Admin → Data streams and click your web stream.
- Copy the Measurement ID. It starts with G-.
- On the same page, open Measurement Protocol API secrets and click Create.
- Give the secret a name (for example BCL) and copy the Secret value.
Connect Google Analytics to BCL
Section titled “Connect Google Analytics to BCL”The setting is on the Integrations page and covers every form in your account.
-
Go to Platform Setup → Integrations.

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

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

-
Click Save Google Analytics.

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?
Thanks for your feedback.
Sorry this didn't help. WhatsApp us and we'll sort it out with you.