This guide walks you through implementing server-side tagging using Seers with Google Tag Manager (GTM).
It covers the complete setup process, including container configuration, domain linking, and GA4 integration.
By following these steps, you can route tracking events through a secure server container for improved accuracy, performance, and data control.
Step 1: Verify Web Container and Seers Tag
First, you have to log in to Google Tag Manager and open your web container for your domain.
-
Log in to Google Tag Manager to access your accounts page, locate your account and select your domain’s Web Container.
-
Navigate to the Tags section. Here, you’ll see all existing tags, including Seers CMP.
- If you haven’t added the Seers CMP tag yet, follow the guide to add the Seers CMP tag first.
- Close the tag and return to the Accounts page.
These steps ensure your web container is ready and the Seers CMP tag is in place before creating the server container.
Step 2. Create a Server Container
Now you have to create a new container for server-side tagging and select the target platform as Server.
-
From your Accounts page, click Create Container.
-
Name the container using your domain and append “server” for easy identification (e.g., your site - server).
-
Select Server as the target platform.
-
Click Create Container.
-
A pop-up will appear asking you to set up a tagging server. Select Manually provision tagging server and copy the Container Configuration ID displayed.
Step 3. Configure Seers Server-Side Container
Now you have to log in to Seers and set up your server-side container using the GTM configuration ID.
-
Log in to Seers and navigate to Server-Side Tagging.
-
Create a new server container.
-
Name the container appropriately, paste the Configuration ID from GTM, and click Create Container.
-
Then open the container dashboard.
-
Go to the Domain section and copy the domain URL provided by Seers.
Step 4. Link Server Container in GTM
Now you have to go back to your GTM server container and add the Seers domain URL in container settings.
-
In your GTM Server Container, go to Admin → Container Settings.
-
Paste the server domain URL provided by Seers and save the settings.
-
Navigate to the Workspace tab and preview the container.
Step 5. Set Up a Custom Domain
Now you have to set up a custom domain in Seers’ container dashboard to get the full benefits of server-side tagging.
-
In the Seers container dashboard, set up a Custom Domain, and click Add Domain.
-
Copy the DNS records provided and add them to your domain provider’s DNS settings.
-
After DNS propagation, return to Seers and click Verify.
-
Once verified, copy the Custom Domain URL.
-
Back in the GTM Server Container, go to Admin → Container Settings.
-
This time, add the Custom Domain URL.
-
Go to Workspace, select your Custom Domain URL.
-
Click preview to see the mapping of your custom domain.
Step 6. Connect Server Container to Web Container
Now you have to connect your server container to your web container by adding the server container URL in your web container’s tag configuration.
-
Open your Web Container in GTM.
-
Go to Tags and select Google Tag.
-
Open this tag’s configuration and add a Parameter:
- Parameter Name: server_container_url
-
Value: your server container’s domain URL
-
Save and Submit the changes, then Publish.
Step 7. Set Up GA4 Measurement in Server Container
Now you have to copy your GA4 measurement ID from the web container and create a constant variable in the server container.
-
In the Web Container, go to Variables and head to User-Defined Variables.
-
Open the GA4 Measurement ID and copy the mentioned value.
-
Now head to the Server Container and navigate to Variables.
-
Under User-Defined Variables, create a New variable.
-
Name: GA4 Measurement ID
-
Variable Type: Constant
-
Value: Paste your GA4 Measurement ID
-
-
Save the variable.
Step 8. Configure GTM Client in Server Container
Now you have to create a new client in the server container and link it to your GA4 measurement ID.
-
Go to Clients in server container and create a New Client.
-
Name the client as GTM Web Container.
-
Client Type: Google Tag Manager: Web Container
-
Add Container ID: {{GA4 Measurement ID}} and Uncheck any region-specific settings.
-
Save the client.
Step 9. Configure GA4 Tag in Server Container
Now you have to create a GA4 tag in the server container and set it to trigger on the appropriate client events.
-
Go to Tags and add a New Tag.
-
Name: Google Analytics GA4
-
Tag Type: Google Analytics: GA4
-
In Tag Configuration, add the Measurement ID: {{GA4 Measurement ID}}
-
Go to Triggering and add a New Trigger:
-
Name: GA4 All Events
-
Trigger Type: Custom
-
Fire on: Some Events
-
Click Select Variable and choose Built-in variable as Client Name
-
Condition the condition to equals & GA4, then save the trigger.
-
-
Save the tag.
-
Preview the server container.
Step 10. Verify Server-Side Tagging
Now you have to preview your containers and verify that your GA4 tags are firing correctly through the server container.
-
Now, open the Web Container in preview mode.
-
A pop-up will appear asking you to add your site’s URL.
-
Add your website URL and click Connect.
-
A new pop-up will appear showing the connecting status of your site.
-
Your website will open in a new window. Interact with the cookie banner on your site.
-
Then, head to the Server Container preview, and you should see the Google Analytics GA4 tag firing as expected.
Once the GA4 tag is successfully firing in the server container preview, your server-side tagging setup is complete. This confirms that events are being routed from the web container to the server container and processed correctly.