Server-Side Tagging Url
How to Set Up Server-Side Tagging URL with Google Tag Manager and Stape
1. Setting Up Server-Side Container in GTM
Follow these steps to configure your sGTM container using Stape:
- Create a Server Container in Google Tag Manager.
- Go to Google Tag Manager.
- In the Admin section, click on the + under the Container column.
- Name your container, select Server as the type, and click Create.
- Choose Manually provision tagging server.
- Copy your Container Config as we will need it for the next steps.
2. Set Up Your Server Container on Stape
- Visit Stape.io and log in or create an account.
- Click Create Container at the top right.
- Fill in the required details:
- Container Name (this doesn’t need to match your sGTM container name).
- Container Configuration: Paste the config you copied from Google Tag Manager.
- Server Location: Choose a location close to your primary audience (this cannot be changed later).
- Click Create Container.
3. Select a Plan and Deploy
- Choose a plan—start with the Free plan if you’re testing or just beginning.
- Click Continue with Free plan.
4. Verify Deployment
- Once set up, you’ll see your container’s status, configuration, and plan details.
- Deployment typically takes about 5 minutes.
- Refresh the page to check the status—if everything is set up correctly, the status should show “Running”.
Recommended: Set Up a Custom Domain for Server-Side Tagging
To enhance your server-side tracking, it's recommended to set up a custom domain for your Google Tag Manager Server container. Using a custom tagging server URL helps establish first-party cookies, improving tracking accuracy. Example: If your website domain is example.com, your custom tagging server URL should be something like ss.example.com.
Custom Domain Setup Options
1 How to Set Up a Custom Subdomain
- Add a Custom Domain in Stape
- Log in to your Stape account.
- Select your container, scroll down, and click Add Custom Domain.
2. Connect Your Custom Domain
Manually
- After adding your custom domain in Stape, DNS records will be generated for verification.
- The required DNS records depend on your server location and chosen CDN option:
- CDN Options: Disable CDN: No CDN will be used.
- Stape Global CDN: Automatically serves scripts from servers closest to your users.
- Own CDN: Routes traffic through your website’s DNS provider. This option matches the IP address of your website and sGTM custom domain, allowing - first-party cookies with extended durations.
Adding a Custom Domain with a CNAME Record
-
Adding a custom domain with a CNAME record.
-
You must create one CNAME record if you do not use Global CDN. You must create two CNAME records if you use Global CDN.
-
Once your custom domain is verified, you should see the status ready below the tagging server URL in the Stape admin. If there are any problems with verifying a custom domain, please follow this guide on troubleshooting a custom domain.
-
Go to your Google Tag Manager Server container -> Admin -> Container Settings -> Add the URL in Server container URLs
-
Need Help?
If you encounter any issues during the setup process or need assistance configuring the server-side tagging Url, our support team is here to help. Reach out to us at support@webgarh.co.in for prompt assistance.