Connect your Google Analytics 4 (GA4) property to Patient Prism to send call outcomes, such as new patient opportunities, to GA4 as custom events. You can then see phone results next to your website data and use them in GA4 reports.
Setup has four steps:
- In GA4, copy your Measurement ID and create an API secret.
- In Patient Prism, add the GA4 integration.
- In Patient Prism, create a trigger that decides which calls to report.
- In GA4, set your reporting identity to Device-based.
Before you start, make sure you have:
- Editor (or higher) access to the GA4 property you want to send data to.
- Access to the Integrations and Triggers pages in Patient Prism.
Step 1: Get your Measurement ID and API secret from GA4
Patient Prism needs two values from the GA4 web data stream you want to send events to. Both are on the same page.
- Sign in to Google Analytics and open the property.
- Click Admin (the gear icon, bottom left).
- Under Data collection and modification, click Data streams.
- Click Web, then select your website’s data stream.
- Copy the Measurement ID (it starts with G-). Keep it handy for Step 2.
- On the same page, under Events, click Measurement Protocol API secrets.
- If prompted, review and accept the User Data Collection Acknowledgement.
- Click Create, enter a nickname such as Patient Prism, then click Create again.
- Copy the Secret value.
Tip: Create a dedicated secret for Patient Prism rather than reusing one from another tool. That way you can delete it later without breaking anything else. For more detail, see Google’s guide to generating API secrets.
Step 2: Add the GA4 integration in Patient Prism
This tells Patient Prism which GA4 property to send events to.
- In Patient Prism, go to Manage > Integrations.
- Select Google Analytics 4.
- Name the integration. Use something you’ll recognize later, such as the website or location it covers.
- Paste the Measurement ID from Step 1.
- Paste the API secret (the Secret value) from Step 1.
- Save the integration.
Note: Each integration connects to one GA4 data stream. If you track more than one website, add a separate integration for each.
Step 3: Create a trigger to report calls to GA4
The trigger decides which calls are sent to GA4 as events. This example reports every call Patient Prism classifies as a New Opportunity.
- In Patient Prism, go to Manage > Triggers (next-web.patientprism.com/manage/triggers).
- Click +Create in the top right.
- Make sure the correct company is selected, then name the trigger. Example: GA4: All New Opportunity Calls.
- Select the Call Analysis Updated event.
- Set the condition for the calls you want to report. To report all new opportunities, use Classification - Has Any - New Opportunity.
- In the Actions section, select Report Events To Google Analytics.
- Select the integration you created in Step 2.
- Enter an Event Name. This is exactly how the event will appear in GA4, so follow the naming rules below.
- Keep the default parameters, or click Insert to add more. Each parameter sends that detail about the call along with the event.
- Select Run Once so each call is only reported once, then click Save in the top right.
Event name rules
GA4 sets these rules. Event names must:
- Start with a letter.
- Use only letters, numbers, and underscores. No spaces.
- Be 40 characters or fewer.
- Not start with
google_,ga_, orfirebase_.
Good examples: new_opportunity_call and appointment_booked_call. Names are case sensitive, so New_Opportunity_Call and new_opportunity_call count as two different events.
Tip: To report calls for just one location, add a second condition: Location Equals [location name].
Step 4: Set reporting identity to Device-based in GA4
GA4’s default identity options use Google signals, which can cause GA4 to hide rows with low counts to protect privacy. Call events are low volume, so they can disappear from reports. Device-based identity avoids this.
- In GA4, click Admin.
- Under Data display, click Reporting identity.
- Click Show all below the options. Device-based is hidden until you do.
- Select Device-based, then click Save.
This setting only changes how GA4 counts users in reports, not the data it collects. It applies retroactively, and you can switch back at any time.
After setup
Check that events are arriving
New events can take up to 24 hours to appear in GA4. Once a call matching your trigger has been analyzed, go to Admin > Data display > Events in GA4 and look for your event name.
Mark the event as a key event (optional)
Mark the event as a key event if you want calls to count as conversions in GA4 reports. You can do this before the first call arrives.
- In GA4, go to Admin > Data display > Key events.
- Click New key event.
- Enter the event name exactly as it appears in your trigger (it’s case sensitive).
- Click Save.
Key events only count from the moment you mark them. For more detail, see Google’s guide to marking events as key events.
Important: If you already send these calls to Google Ads through the Patient Prism Google Ads integration, don’t also import this GA4 key event into Google Ads. The same call would be counted twice.
Troubleshooting
| Problem | What to check |
|---|---|
| No events after 24 to 48 hours | Confirm the Measurement ID and API secret come from the same data stream. Then confirm at least one call has matched the trigger’s conditions since you saved it. |
| The event name in GA4 isn’t what you expected | Names are case sensitive and must follow the rules in Step 3. If you fix the name in the trigger, GA4 treats it as a new event. |
| Events show in some reports but not others | Check that reporting identity is set to Device-based (Step 4). |
| Events stopped arriving after working before | The API secret may have been deleted in GA4. Create a new one and update the integration in Patient Prism. |