Conversations · 1 min read
Track the Chat Widget in Google Analytics
Google Analytics 4 has to be on the same pages as the chat widget. The widget does not create an analytics property for you. The events are the same on a FunnelStreams site and on WordPress, Wix, Shopify, Squarespace, Duda, Weebly, or another site.
Before you start
- Your Google Analytics 4 measurement tag is already in the page head, or in a tag manager.
- You have the widget embed from Get Code. Do not paste a loader address from another product.
- The tracked events are fixed:
widget-open,widget-close, andform-submit. You cannot add your own event names.
Check that events arrive
- Install your Google Analytics 4 tag on the page.
- Go to Sites > Chat Widget, open the widget, and click Get Code.
- Paste that code on the page, in the body, below the analytics tag.
- Publish the page.
- Open the live page, open the widget, close it, and submit the chat form.
- In Google Analytics, open Events, or open DebugView while you test.
You should see
widget-open when the widget opens, widget-close when it closes, and form-submit when the chat form is submitted. They are categorized as chat. Events show for each page that has both the analytics tag and the widget.