Skip to content

Track Chat Widget Activity Using Google Analytics 4 (GA4)

This article provides guidance on integrating Patient Copilot’s Chat Widget with Google Analytics 4 to monitor user interactions effectively across funnel steps, website pages, Wordpress websites and any other integration like Shopify, Wix or Squarespace.


Event Reference for GA4

Understanding what each event tracks helps you validate and use the data more effectively in GA4.

Event Name
Trigger ConditionCategoryLabel

widget-open

When the widget is opened

Live Chat

Widget Open

widget-close

When the widget is closed

Live Chat

Widget Close
form-submit
When a chat form is submitted

Live Chat

Form Submitted


Testing & Debugging Tips

Use these techniques to confirm your event tracking is correctly set up and working in real time.

  1. Google Tag Assistant Extension: Monitor events as you interact with the widget.
  2. GA4 DebugView: Track real-time events in your Google Analytics dashboard.
  3. Network Logs: Use browser DevTools → Network tab to verify event payloads.
  4. Live Test: Open, close, and submit the chat form to validate the respective events.

Frequently Asked Questions

**Q: Will this track users across all pages? Yes, as long as the widget and tracking script are embedded on those pages. **

Q: Can I customize the events tracked by the Chat Widget? Currently, the Chat Widget tracks a predefined set of events. Custom event tracking is not supported. Q: Where can I view the Chat Widget events in GA4? Navigate to the “Events” section in your GA4 property to view the tracked Chat Widget events.