Kickstart your GTM experiments with this repository
This repo contains boilerplate code for working with Google Tag Manager in a pure Web, a Server Google Tag Manager setup, or hybrid setup, including a demo e-commerce website. You'll find the templates to set up GTM Web and Server container, and a demo e-commerce website you can easily run or deploy on a cloud service.
The GTM configurations are set up to showcase both Enhanced Conversions & Consent mode with Google Ads only.
- Set up Google Tag Manager.
- Deploy the sample e-commerce website.
- Go to the web data stream in Google Analytics and ensure the correct stream URL is set.
This is not an officially supported Google product.
Copyright 2022 Google LLC. This solution, including any related sample code or data, is made available on an “as is,” “as available,” and “with all faults” basis, solely for illustrative purposes, and without warranty or representation of any kind. This solution is experimental, unsupported and provided solely for your convenience. Your use of it is subject to your agreements with Google, as applicable, and may constitute a beta feature as defined under those agreements. To the extent that you make any data available to Google in connection with your use of the solution, you represent and warrant that you have all necessary and appropriate rights, consents and permissions to permit Google to use and process that data. By using any portion of this solution, you acknowledge, assume and accept all risks, known and unknown, associated with its usage, including with respect to your deployment of any portion of this solution in your systems, or usage in connection with your business, if at all.