Advanced GA4 integration for Gorgias

Connect Gorgias live chat events with Shopify revenue in Google Analytics 4

Gorgias
+
Littledata
Gorgias live chat events 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.

Learn more

Which Gorgias events can you track in GA4?

GA4 eventWhen it fires
gorgias_widget_openedThe chat widget is opened
gorgias_widget_closedThe chat widget is closed
gorgias_message_sentA customer sends a message
gorgias_message_receivedA customer receives a message

How do I set up Gorgias tracking?

1

Connect Shopify to GA4

Install Littledata from the Shopify App Store and connect your GA4 property.

2

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.

3

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.

4

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

Littledata connecting Gorgias, Recharge, and Klaviyo with Shopify revenue tracking

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.

Frequently asked questions

Scale faster with the top ecommerce data platform