How to setup GTM Server Container Hosting?

Currently Server Container Hosting is only available to customers using Google Tag Manager for WooCommerce PRO - Advanced Server-Side add-on (learn more here). If you want access to hosting platform without purchasing the add-on contact us.

Each subscription comes with 1 month of FREE hosting.

REQUIRED: we only host server containers under custom domains. Thus, having a domain, configured DNS and access to the DNS settings is required to complete this guide.

1. Prepare Google Tag Manager

First make sure we have new or existing GTM Container that had Server set as the Target platform during creation:

Right after creation (or in the Admin, Settings and Install Google Tag Manager section) select "Manually provision tagging server" and copy the Container Config string.

This string contains everything that is needed to connect your hosting with this GTM container:

2. Provision Server Container Hosting

Now, let's switch to our platform to provision server container hosting.

If you already have purchased a subscription of Advanced Server-Side add-on navigate to:

and log in using the email address provided during the purchase:

Then navigate to Server Container in top nav and click Create Server Container button:

In the modal fill in all fields:

  1. Hostname - type in your an URL for your server container, it needs to be subdomain in your main domain. The first part of address is something that you can freely adjust, it can be "metrics", "gtm", "events", "analytics" etc.
  2. Container Configuration - paste the string copied in the Step 1. above
  3. Region - select the region that is closest to your users' location and/or which is a legal requirement
  4. Size - indicates the amount of computational resources that will be allocated to this server container. It will have impact on the maximum traffic spikes it can handle. Don't worry about picking right value here. During first month hosting is free regardless of size and we will adjust it as needed.

When ready click "Create Container" button:

3. Configure DNS

After the server is provisioned it will appear on the list. When it's available click "setup" button next to it to continue:

Click "DNS Setup" to reveal details of DNS settings that needs to be added in your domain configuration:

The exact step needed here will depend on your DNS hosting. This is how it will look in CloudFlare:

Save the new CNAME record. New DNS settings make take a while to have an effect.

4. Container Settings

Once the DNS settings will go live the server container will be accessible and you will be able to finalize the settings. Navigate back to GTM Admin section and select Container Settings:

Click "Add URL" and paste your new server container subdomain adding "https://" in front of it. It will tell GTM where your server container is hosted and will enable preview mode, when URL is added Save it:

You can start configuring your new GTM server container. For instance you can import any of the server-side presets our plugin offers.

5. GTM Snippets Installation

When you are ready configuring both of your web and server containers you can install it on your website. In order to get GTM served from your subdomain you need to use modified GTM installation snippets. You can find them on our platform clicking again "setup" button next to the container and selecting "GTM Snippets". You can copy and paste those two snippets into appriopriate place:

  1. Our GTM for WooCommerce plugin settings
  2. Directly into your theme code
  3. Into settings of your Cookie Banner or Consent Management Platform widget

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.