Metrics
Which channel brought that install? Attribution for Shopify apps
Why most Shopify app installs show up as direct in GA4, what the App Store sends to your property, and how to tie each install back to the click that led to it.
· 4 min read
You pay for ads, post in communities and write articles, and installs go up. Which of those brought them? Google Analytics on your App Store listing should answer that, and mostly it doesn't: the install event tends to arrive with no source at all. This guide explains what the Shopify App Store sends to your Google Analytics property, why installs come out as "direct", and how to tie each install back to the click that led to it.
What the App Store sends to Google Analytics
Two things, set up in two places:
- Your GA4 measurement ID on the listing (Partner Dashboard, the app's listing, Tracking information). Visits to your listing then arrive like visits to any site, with their source, medium and campaign. Clicking Install sends
add_to_cart. - A Measurement Protocol API secret, created in Google Analytics under your data stream and entered in the same Tracking information section. With it, the App Store sends server-side events:
shopify_app_install, when a merchant finishes installing, withapi_key,shop_id,shop_nameandshop_url;shopify_app_ad_click, when a merchant reaches your listing from a Shopify App Store ad, withsurface_typeandsurface_detail.
The event parameters only appear in reports once you add them as event-scoped custom dimensions, and Shopify notes they can take up to 24 hours to show up. Without the API secret you see the Install click, but never the finished install.
The listing can also carry a Meta Pixel; the App Store sends installs to it through Meta's Conversions API in the same way.
Why installs come out as direct
The finished install is a server-side event that happens after the merchant has left your listing for the install screens in their store. It often doesn't carry the session the merchant arrived in, so Google Analytics files it under (direct). Across the apps we run, about three in four shopify_app_install events since September 2026 arrived as (direct).
So the install event tells you that a store installed, and usually not where from. The Install click, add_to_cart, still has the source of the visit it happened in, but it isn't an install: some merchants click and never finish.
Tying each install to its click
The Partner API knows every install for certain (RELATIONSHIP_INSTALLED, with the shop and the time), and knows nothing about where it came from. Google Analytics knows where Install clicks came from, and not which shop finished. Put the two side by side by time:
- Read every Install click from Google Analytics with its source, medium, campaign and the minute it happened.
- For each install from the Partner API, look for the nearest Install click shortly before it that no other install has claimed. Twenty minutes is the window we use.
- If two clicks from different sources are equally close, don't guess: leave that install untraced.
- If there is no click, fall back to the source on the
shopify_app_installevent, which is right when it isn't(direct). - Store every read. Keep the clicks and the matches in your own database, so the history doesn't depend on how far back Google Analytics lets you read at minute detail.
The result is a list of installs with a likely source, campaign by campaign. Joined to your own data, it answers the question that matters: did the stores from that campaign stay, and do they pay?
What it can't do
- It is a sample, not a total. Some installs stay untraced. Report "traced installs from Facebook" rather than "installs from Facebook".
- Time zones matter. Google Analytics reports in the property's time zone; the Partner API in UTC. We have met a property whose declared time zone didn't match its own data, so check the offset against a few installs you know.
- Busy minutes are ambiguous. The more installs and clicks fall in the same few minutes, the less certain nearest-click matching gets, and the more installs stay untraced.
- No click, no trace. An install whose merchant never clicked Install on your listing (because it was installed from somewhere other than the listing page) has no click to match, so it shows up only in the Partner API.
A use case: the Traffic tab
We built this for our own apps: in Hybrid Workspace, each app's Traffic tab shows where installs come from, and a campaign opens into the stores it brought, with which of them kept the app, closed or pay. It runs on the steps above, so it shows traced installs, labelled as such.
To find out what those installs pay you, the MRR guide shows how to replay the Partner API's events.
Sources
- Track your listing traffic, Shopify developer documentation
- Measurement Protocol (Google Analytics 4), Google for Developers
- Custom dimensions and metrics, Google Analytics Help
- Recommended events: add_to_cart, Google for Developers
- AppEventTypes, Shopify Partner API reference
- Conversions API, Meta for Developers