In this article, I am going to talk about GTM server-side preview mode.
Note: This article is related to the server-side tagging articles below. If you haven’t read the earlier ones, I would highly recommend going through them. You can find them here:
Now let’s get back to our main article topic of GTM server-side preview mode. We will first learn more about the differences in the preview mode of the normal client-side GTM container and server-side GTM container, then we will proceed with step-by-step tutorials and finally, see the technical details.
Comparison of preview mode client-side GTM vs server-side GTM
In a normal client-side GTM container, you need to click on the preview button, add the website URL, then click on continue to see the preview mode of the website.
But in the case of a server-side container, you don’t have to provide any URL of the website. This is because the server-side container gets its requests from the client-side GTM container and not the actual website.
You cannot use extensions like Google Tag Assistant or Google Analytics debugger for debugging the server-side GTM requests. The only tool available is Google Tag Manager’s Preview mode.
The server-side GTM container preview mode interface is similar to normal GTM containers but technically it’s different in many aspects. We will look into its details later in this article. For now, let’s start with the tutorial
Start preview
Follow the below steps to start server-side GTM container preview mode.
Note: I am assuming that you have already done setting up tags for pageviews and events in both the containers (client-side GTM container as well as server-side GTM container).
Step-1: Navigate to your server-side GTM container and click on the ‘Preview’ button on the top left-hand side.
Step-2: Once you click on the ‘Preview’ button, a new window will open like below.
Step-3: Now navigate to your website and visit any page or perform any event action. You will see that pageview requests and events data have started appearing in the preview mode of the server-side GTM container.
That is how you can start the preview mode of your server-side GTM container.
Share preview (not available)
One thing to point out here is that in a normal GTM container (client-side) you would get an option to share the preview. However, in the case of a server-side GTM container, this option is not available.
Yes, you heard right, you cannot share the preview mode with others.
Preview mode technical details
When you enable the preview mode of your server-side container, you will get a screen like the below image which shows multiple things including:
Summary
Request
Tags
Variables
Event data
Summary
The ‘Summary’ tab will show you all the event details. These event requests are generated by the client-side GTM container and then transported to the server-side GTM container.
Based on these event requests received you can fire a tag from the server-side GTM container to the actual Google Analytics server or any third-party tool.
To check the individual event request in detail you can click on them and then click on the ‘Request’ tab.
The image above shows an example of a scroll event request. You will see information such as:
Client: The client represents the vendor that claimed this request. In this case, it’s Universal Analytics. It is possible that it may not be the same as the client that generated the event data.
Incoming HTTP request: Incoming HTTP request is the server call request made to the server-side GTM container by the client-side GTM container. The request method is the GET method and the response code 200 shows that the request was successfully accepted.
You can click on the incoming HTTP request to get more technical details and you will get a screen like below.
Outgoing HTTP Request: Outbound HTTP requests are sent to the actual Google Analytics server. These requests are a summary of all requests sent by each event.
Once the incoming request is processed, based on your tagging configuration, it then sends data to the Google Analytics server or third party tool. This outgoing request may contain information on events such as page views, custom events, transactions, etc.
You can check each outgoing HTTP request and its details by clicking on it. The request method is the GET method and the response code 200 shows that the request was successfully sent.
Tags
The ‘Tags’ tab gives you the details of tags fired for the corresponding incoming event request.
You can click on the tag fired to check in more details.
Variables
The ‘Variables’ tab will give you more details about the different variables that you have created in the server-side container and their values for the corresponding event.
Event data
The ‘Event data’ tab will provide more granular details on the corresponding event and different event parameters and their values.
Quit preview
Like a normal client-side GTM container, Google has not provided any pop-up at the bottom where you can stop debugging and quit preview mode.
There is just one simple step to quit server-side GTM container preview mode, and that is by closing the browser window.
Frequently asked questions about GTM Server Side Preview Mode
What is the difference between client-side GTM preview mode and server-side GTM preview mode?
In a normal client-side GTM container, you need to click on the preview button, add the website URL, then click on continue to see the preview mode of the website.
But in the case of a server-side container, you don’t have to provide any URL of the website. This is because the server-side container gets its requests from the client-side GTM container and not the actual website.
You cannot use extensions like Google Tag Assistant or Google Analytics debugger for debugging the server-side GTM requests. The only tool available is Google Tag Manager’s Preview mode.
The server-side GTM container preview mode interface is similar to normal GTM containers but technically it’s different in many aspects.
Can you share GTM server-side preview mode?
No, in the case of a server-side GTM container, the sharing option is not available. You cannot share the preview mode with others.
Why can’t I see data layer variables in server-side GTM preview mode?
Server-side tagging is a new way to use Google Tag Manager (aka GTM) in the Google Cloud environment. Since it’s not hosted on the browser, you cannot see data layer variables in server-side GTM Container and preview mode as well. But there is a way you can set up a data layer for server-side GTM containers. Learn more about it here How to set up Data Layer for GTM Server Side Container
Register for the FREE TRAINING...
"How to use Digital Analytics to generate floods of new Sales and Customers without spending years figuring everything out on your own."
Here’s what we’re going to cover in this training…
#1 Why digital analytics is the key to online business success.
#2 The number 1 reason why most marketers are not able to scale their advertising and maximize sales.
#3 Why Google and Facebook ads don’t work for most businesses & how to make them work.
#4 Why you won’t get any competitive advantage in the marketplace just by knowing Google Analytics.
#5 The number 1 reason why conversion optimization is not working for your business.
#6 How to advertise on any marketing platform for FREE with an unlimited budget.
#7 How to learn and master digital analytics and conversion optimization in record time.
My best selling books on Digital Analytics and Conversion Optimization
Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.
Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.
Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.
Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.
About the Author
Himanshu Sharma
Founder, OptimizeSmart.com
Over 15 years of experience in digital analytics and marketing
Author of four best-selling books on digital analytics and conversion optimization
Nominated for Digital Analytics Association Awards for Excellence
Runs one of the most popular blogs in the world on digital analytics
Consultant to countless small and big businesses over the decade
Get My Step-By-Step Blueprint For Finding The Best KPIs (32 pages ebook)
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.