How to set up Stape server GTM Magento 2 plugin
Updated Mar 24, 2025
1. Log in to your Magento Admin.
2. Go to Magento Marketplace, then choose Stape Server GTM plugin, click Add to cart and proceed to Checkout.

Please note that the plugin is entirely free, and all plugin functions - except the Cookie Keeper - can be used regardless of whether you use the Stape service or not. The Cookie Keeper function will only work if you use the Stape service on any tariff and have activated it in your container settings.
3. Follow the instructions provided to install the extension on your Magento 2 site.
5. In your Magento account go to Stores and choose Configuration.

6. Choose Stape and click on Server Side GTM.

7. Paste your WEB container ID, Custom domain and Custom Loader from your container. Don’t forget to click the Save config button.

8. You also have an option to send data layer with the help of Magento 2 extension. Simply enable two boxes to send e-commerce and user data.
- View item
- View collection
- Add to cart
- View cart
- Begin checkout
- Payment info
- Purchase
User data:
- Email
- First name
- Last name
- Customer ID

9. Once you have a server GTM container for the Magento site up and running, you can start setting up server-side tagging for needed platforms. For example, we already have blog posts describing setting up server-side Universal Analytics, Google Analytics 4, Facebook, TikTok, Snapchat, etc.