GTM Server-Side Integration
This is the most advanced implementation. You can deploy the Server Container using various providers, including Google Cloud, Amazon Web Services (AWS), Stape, Taggrs, or similar services.
This guide focuses on the most accessible solutions, such as Stape or Taggrs. To deploy using Google Cloud, AWS, or any other provider, refer to their official documentation or contact us for a custom integration.
Architecture Overview
Server-Side integration requires two distinct GTM containers:
- Web Container: This container receives events directly from your website or application. It then forwards this data to the Server Container for processing.
- Server Container: Deployed on a third-party service (Stape, Taggrs, etc.), this container receives data from the Web Container, transforms it to match the required schemas of platforms like GA4 or Facebook, and sends it to the final endpoints.
Setup Process
Complete the following steps to finalize your integration:
- Create a GTM Server Container.
- Deploy the Server Container using your preferred solution:
- Create a GTM Web Container.
- Download and import the Workspaces for both containers.
- Configure the container settings.
- Edit the Constant and Request Header Variables in the Server-Side Workspace.
- Configure the container settings to allow Tag Assistant debugging.