Guide 135 · Setup · GA4 + Tag Manager
Install GA4 on Shopify: the Google & YouTube channel connects your property
Shopify has one install method Google calls strongly preferred: the free Google & YouTube channel. Connect the GA4 property in the channel and Shopify sends the shop's ecommerce events — views, checkouts, purchases — to GA4 with no code and no Tag Manager. The setup is four steps in Shopify's own guide, and the trap is the second tag: a GA4 tag in the theme or in Tag Manager beside the channel counts every purchase twice.
After step 3, the channel shows the GA4 property connected, and a visit to the shop shows in the GA4 Realtime report. A test purchase arrives once, not twice.
Download the reference: the Shopify GA4 reference (JSON) (815 bytes, MD5 aa2bfa37e8d230d27e92b84ea3f402d4). The Shopify setup from Shopify's help pages, counted in Python: 4 steps in the guide, and the purchase value excludes 2 things — tax and shipping.
What you need
- A Shopify store. The channel installs inside the Shopify admin.
- A Google account and a GA4 property with a web data stream. Create the property and the stream first, and note the Tag ID, which starts with G-.
- The Editor role on the GA4 account if the property was not created by the account signing in.
- A store that is not password protected. Google Analytics cannot track events until the online store's private mode is off.
- No GA4 tag already in the theme or in Tag Manager. Remove any old gtag snippet or Tag Manager GA4 tag first, or the channel's events and the old tag's events double up.
The trace
- Create the Google account and the GA4 account. You need a Google account to use Google Analytics. Create the GA4 account if it does not exist yet.
- Create the GA4 property and the web data stream. Create a GA4 property, then create a web data stream for the store's domain. Make a note of the Tag ID — it starts with
G-— because the channel asks for it in the next step. - Add the GA4 tags through the Google & YouTube channel. Install the Google & YouTube sales channel in the Shopify admin. You do not have to connect the shopping feed to complete the GA4 setup. Follow the steps in Google's Shopify: Set up your Google tag article: connect the Google account, select the GA4 property, and confirm. The channel then sends the shop's ecommerce events to GA4 automatically.
- Link Google Ads only if the shop advertises. The fourth step in Shopify's guide links the Google Analytics account to the Google Ads account. Skip it if the shop does not advertise — it is a separate connection, not part of getting data in.
- Confirm the events arrive once. Browse the shop, add a product to the cart, and place a test order. Check the GA4 Realtime report: the visit and the purchase each appear once. If the purchase appears twice, a second GA4 tag is running somewhere — in the theme, in Customer events, or in Tag Manager — and it has to come out.
- Know what the purchase value is. In GA4, the purchase value excludes shipping and taxes. A GA4 revenue total below Shopify's sales is normal for that reason alone; a GA4 total above Shopify's is the sign of a duplicate tag.
Dead ends
DEAD END — ADDING GA4 IN TAG MANAGER ON TOP OF THE CHANNEL. Shopify warns that GA4 in Tag Manager in addition to the built-in integration can duplicate tracking. Pick one: the channel, or Tag Manager. For most shops the channel is the right pick, because Shopify's own logic records the ecommerce events.
DEAD END — LEAVING AN OLD GTAG SNIPPET IN THE THEME. A manually pasted gtag.js snippet beside the channel sends the same events a second time. Check the theme files, the checkout settings, and Customer events for old code before connecting the channel.
DEAD END — CHECKING STANDARD REPORTS ON THE SAME DAY. New data can take 24 to 48 hours to appear in standard GA4 reports. Check Realtime on the day of the install, not the standard reports.
End state
The Google & YouTube channel is installed and the GA4 property is connected. Shopify sends the shop's ecommerce events to GA4 with no code, the purchase value excludes tax and shipping as documented, and Realtime shows each visit and each purchase once.
Sources
- Shopify's help pages — Setting up Google Analytics 4 — the four setup steps, the Google & YouTube channel, the Tag ID note, and the automatically tracked ecommerce events
- Analytics Help — [GA4] Find your Google tag ID — the Tag ID starts with G- and lives on the web stream details page
- Analytics Help — Confirm that you are collecting data — many reports and explorations can take 24 to 48 hours to process data; Realtime confirms collection sooner
- Google Analytics developer docs — Measure ecommerce — the purchase example: value excludes tax and shipping, which are separate parameters
Checked 11 November 2026. The steps above are the ones in Shopify's help pages and Google's tag ID page, both opened 11 November 2026. No step in this guide was run inside a live Analytics property or a live Shopify store, because both need a Google sign-in and this site does not sign in as anyone. The reference file was checked in Python: its figures were recomputed from the documentation values and match the numbers on this page. Shopify and Google move menu items without warning; if a path on this page no longer matches, the linked help page is the current map.