Advanced GA4 integration for Gorgias
Connect Gorgias live chat events with Shopify revenue in Google Analytics 4

The direct answer
How does Littledata connect Gorgias to GA4?
A short script from Littledata relays four Gorgias live chat events to Google Analytics 4: widget opened, widget closed, message sent, and message received. Littledata's server-side Shopify tracking sends add to cart, checkout, and purchase events to the same GA4 property, so you can see how chat conversations lead to orders.
- Chat linked to revenue - compare conversion rate for shoppers who chatted against those who didn't.
- Chat by channel and product - split live chat usage by marketing channel or product, and spot trends.
- Usability checks - look at widget open rate by screen size or browser.
Which Gorgias events can you track in GA4?
| GA4 event | When it fires |
|---|---|
| gorgias_widget_opened | The chat widget is opened |
| gorgias_widget_closed | The chat widget is closed |
| gorgias_message_sent | A customer sends a message |
| gorgias_message_received | A customer receives a message |
How do I set up Gorgias tracking?
Connect Shopify to GA4
Install Littledata from the Shopify App Store and connect your GA4 property.
Add the Gorgias script
Paste Littledata's script into your Shopify theme.liquid file. It waits for the Gorgias widget to load, then passes chat events to GA4 with the gtag library.
Test in Realtime
Open the chat widget on your store and check the events in GA4's Realtime report. They appear under Reports > Engagement > Events within 24 hours.
Build a chat segment
Create a segment of users with a gorgias_message_received event and compare their purchase rate with users who didn't chat.
Adapt the script The full script is published in the help center, so you can change it to track other Gorgias events or send them to another destination. Get the Gorgias script
Where do Gorgias events appear in GA4 reports?
Gorgias has its own help desk analytics, but they stop at the conversation. Once the Littledata script is live, chat events show up in Google Analytics 4 next to your Shopify orders, in two places.
Realtime report, for testing. Open the chat widget on your store and send a message. The gorgias_widget_opened and gorgias_message_sent events show up in GA4's Realtime report, so you can confirm the script works before you rely on the data. If gtag hasn't loaded when a chat event fires, the script queues the event until Google Analytics is ready.
Reports > Engagement > Events, for analysis. Within 24 hours, all four Gorgias events appear in the standard Events report alongside Littledata's add to cart, checkout, and purchase events.
With the events in GA4, you can answer questions such as:
- Do shoppers who chat buy more? Build a segment of users with a gorgias_message_received event and compare their ecommerce conversion rate with users who didn't receive a message.
- Does more messaging lead to more sales? Look at the volume of chat events per user and see whether a certain amount of messaging drives purchasing.
- Where does chat demand come from? Break chat events down by marketing channel, product, screen size, or browser.

Works with the apps you already use
Littledata's revenue tracking works alongside Gorgias and the rest of your Shopify stack.
- Own the data in Google Analytics - orders, refunds, and checkout steps sent server-side.
- Sessions stitched together automatically - link chat interactions with adds to cart and purchases.
- Orders from the Gorgias sales channel - add a gorgias / app source/medium rule so they aren't reported as (not set).
- Works with Recharge, Klaviyo, Shopify and more - one data layer for GA4, Klaviyo, and Meta.
