/Documentation

How to install Google Tag Manager (GTM) on Shopify properly

Updated Nov 23, 2026

Before you begin

Step 1. Create a web GTM container

  1. 1.
Create container
choose Web as the target platform

Step 2. Create a server GTM container and host it on Stape

  1. 1.

Step 3. Install and configure the Stape Conversion Tracking app

Inject GTM tab
Data Layer tab
App embeds

Step 4. Set up Shopify GA4 tags in the web GTM container

Create the Google tag

  1. 1.
click Create variable
Google tag: Configuration settings
Click Add parameter
Fill in
Add tag
Other Google
Click Google tag
select the variable you've just created

Create the event name variable

  1. 1.
Go to Variables
Click Variable configuration
Enable Set Default Value

Create the trigger

  1. 1.
Add trigger
Click Trigger Configuration
Keep All Custom Events selected

Create the GA4 event tag

Go to Tags
Google Analytics
Select Google Analytics: GA4 Event
set up GA4 event

Important:

Step 5. Set up GA4 in the server GTM container

  1. 1.
Check that the GA4 client is there
Add tag
Click Tag Configuration
Select Google Analytics: GA4
Click Triggering
Click Trigger Configuration
Select Some Events
Save the tag

Testing

  1. 1.
DevTools → Network
Open Preview mode
check that the GA4 event tag fires
purchase
Open Admin → DebugView

Was this article helpful?

Comments

Can’t find what you are looking for?