Documentation

get_exit_analysis

Where visitors leave, and what they were doing before they left — engagement, frustration, scroll depth and clicks on the exit page.

When to use it

When you know conversion is weak but not where the store loses people. It separates "this page frustrated them" from "this traffic was never interested".

Ask for it like this

You do not name the tool. These are questions that make an assistant reach for it:

Where are people leaving my store?
Are my ads sending people to a page that does not match the ad?

How to read the result

  • High frustration plus exit is a UX problem. Low engagement plus a single-page exit is a bounce or irrelevant traffic.
  • Watch for the ad-mismatch signature: median session duration under 15 seconds, over 80% single-page exits, and the URL carrying ad parameters such as gclid or fbadid.

Parameters

limit
numberdefault: 20
Maximum exit pages to return.

Shared parameters it accepts

Documented in full on the tool reference index.

Date window — defaults to the last 30 days.

dateFrom
stringdefault: 30 days ago
Start of the window, YYYY-MM-DD. Inclusive.
dateTo
stringdefault: today
End of the window, YYYY-MM-DD. Inclusive.

Session filters — narrow the result to one audience.

device
enum
Keep only sessions on this device class.
mobiletabletdesktop
visitorType
enum
Keep only first-time or only returning visitors.
newreturning
utmSource
string
Keep only sessions from this UTM source, for example google.
utmMedium
string
Keep only sessions from this UTM medium, for example cpc.
utmCampaign
string
Keep only sessions from this UTM campaign name.
theme
string
Keep only sessions that rendered this Shopify theme id (bare numeric id). Use it to isolate one arm of a theme A/B test. Sessions recorded before 7 August 2026 carry no theme id and drop out.

Every tool also accepts merchantId, which resolves from your connection. You never pass it.

What comes back

JSON. These are the top-level keys; date-scoped tools additionally carry a _meta block with the server date and the data coverage envelope.

exitPages
Per URL: exits, converting and non-converting exits, single-page exits, median session duration, average engagement and frustration, and scroll, click, rage and dead-click behaviour on the exit page.

Pairs with