{"id":10596,"date":"2024-11-14T17:25:06","date_gmt":"2024-11-14T17:25:06","guid":{"rendered":"https:\/\/ceowebltd.com\/blog\/?p=10596"},"modified":"2024-11-14T17:25:06","modified_gmt":"2024-11-14T17:25:06","slug":"how-to-implement-server-side-google-tag-manager","status":"publish","type":"post","link":"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/","title":{"rendered":"How to implement server-side Google Tag Manager"},"content":{"rendered":"<p>Server-Side Google Tag Manager (SSGTM) is an advanced method of using Google Tag Manager (GTM) where the tag firing process is handled on a server rather than the client (browser) side. This implementation enhances privacy, performance, and control over how data is sent to third-party platforms. Server-side GTM provides several advantages, such as increased data security, reduced page load times, and better management of user consent for tracking.<\/p>\n<p>This guide will walk you through the process of implementing Server-Side Google Tag Manager and its key benefits.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#What_is_Server-Side_Google_Tag_Manager\" title=\"What is Server-Side Google Tag Manager?\">What is Server-Side Google Tag Manager?<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#Benefits_of_Server-Side_GTM\" title=\"Benefits of Server-Side GTM\">Benefits of Server-Side GTM<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#Prerequisites_for_Server-Side_Google_Tag_Manager\" title=\"Prerequisites for Server-Side Google Tag Manager\">Prerequisites for Server-Side Google Tag Manager<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#Steps_to_Implement_Server-Side_Google_Tag_Manager\" title=\"Steps to Implement Server-Side Google Tag Manager\">Steps to Implement Server-Side Google Tag Manager<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#Step_1_Create_a_Server-Side_Container_in_Google_Tag_Manager\" title=\"Step 1: Create a Server-Side Container in Google Tag Manager\">Step 1: Create a Server-Side Container in Google Tag Manager<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#Step_2_Set_Up_a_Server_to_Host_the_Container\" title=\"Step 2: Set Up a Server to Host the Container\">Step 2: Set Up a Server to Host the Container<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#Step_3_Set_Up_the_Server-Side_Tagging_Environment\" title=\"Step 3: Set Up the Server-Side Tagging Environment\">Step 3: Set Up the Server-Side Tagging Environment<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#Step_4_Set_Up_Client-Side_to_Server-Side_Communication\" title=\"Step 4: Set Up Client-Side to Server-Side Communication\">Step 4: Set Up Client-Side to Server-Side Communication<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#Step_5_Set_Up_Tags_and_Triggers_in_the_Server-Side_Container\" title=\"Step 5: Set Up Tags and Triggers in the Server-Side Container\">Step 5: Set Up Tags and Triggers in the Server-Side Container<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#Step_6_Test_and_Debug\" title=\"Step 6: Test and Debug\">Step 6: Test and Debug<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#Step_7_Publish_the_Server-Side_Container\" title=\"Step 7: Publish the Server-Side Container\">Step 7: Publish the Server-Side Container<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#Conclusion\" title=\"Conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"What_is_Server-Side_Google_Tag_Manager\"><\/span>What is Server-Side Google Tag Manager?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Server-Side Google Tag Manager is a feature that allows the management of tags on a server rather than in the browser. Instead of firing tags directly from the user\u2019s browser (client-side), the data is first sent to a server container, which processes the information and then forwards it to various third-party platforms (such as Google Analytics, Facebook, etc.).<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Benefits_of_Server-Side_GTM\"><\/span>Benefits of Server-Side GTM<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Improved Performance<\/strong>: Reduces client-side load because the browser does not need to load multiple JavaScript libraries, which can enhance page speed.<\/li>\n<li><strong>Enhanced Data Privacy<\/strong>: Server-side tags can collect, process, and forward data without exposing sensitive user data directly to third-party services, helping ensure better privacy compliance.<\/li>\n<li><strong>Reduced Ad Blockers Impact<\/strong>: Since requests are routed through a server rather than the client, server-side tagging is less likely to be blocked by ad blockers.<\/li>\n<li><strong>Greater Control and Security<\/strong>: Server-side tagging gives you more control over the data that is sent to third-party services, and you can manage user consent and privacy preferences at the server level.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Prerequisites_for_Server-Side_Google_Tag_Manager\"><\/span>Prerequisites for Server-Side Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before you begin implementing server-side Google Tag Manager, you need the following:<\/p>\n<ul>\n<li>A Google Cloud Platform (GCP) account to host the server container.<\/li>\n<li>A Google Tag Manager account with admin access.<\/li>\n<li>A basic understanding of cloud computing and server management.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Steps_to_Implement_Server-Side_Google_Tag_Manager\"><\/span>Steps to Implement Server-Side Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Step_1_Create_a_Server-Side_Container_in_Google_Tag_Manager\"><\/span>Step 1: Create a Server-Side Container in Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Login to Google Tag Manager<\/strong>:\n<ul>\n<li>Go to <a href=\"https:\/\/tagmanager.google.com\" target=\"_new\" rel=\"noopener\">Google Tag Manager<\/a> and log in to your account.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a New Container<\/strong>:\n<ul>\n<li>In the GTM dashboard, click on the <strong>Admin<\/strong> section.<\/li>\n<li>Under the <strong>Container<\/strong> column, select <strong>Create Container<\/strong>.<\/li>\n<li>Choose <strong>Server<\/strong> as the container type. This will configure your container to work in server-side mode.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Configure the Container<\/strong>:\n<ul>\n<li>Name your container and select the <strong>Server<\/strong> option.<\/li>\n<li>After creating the container, Google Tag Manager will provide you with a unique container ID.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_2_Set_Up_a_Server_to_Host_the_Container\"><\/span>Step 2: Set Up a Server to Host the Container<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To run a server-side container, you need a server to host the container. Google provides an option to use <strong>Google Cloud Platform (GCP)<\/strong> to host your container.<\/p>\n<ol>\n<li><strong>Sign In to Google Cloud<\/strong>:\n<ul>\n<li>Go to <a target=\"_new\" rel=\"noopener\">Google Cloud Console<\/a> and log in with your Google account.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a New Project<\/strong>:\n<ul>\n<li>From the Google Cloud Console, click on <strong>Select a Project<\/strong> and create a new project for your GTM server-side container.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Enable the GTM Server-Side API<\/strong>:\n<ul>\n<li>In your Google Cloud project, navigate to <strong>APIs &amp; Services<\/strong> and enable the <strong>Tag Manager Server-Side API<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set Up App Engine<\/strong>:\n<ul>\n<li>GTM server-side containers are hosted on Google Cloud\u2019s App Engine, so you need to set up <strong>App Engine<\/strong>.<\/li>\n<li>In the <strong>Google Cloud Console<\/strong>, go to the <strong>App Engine<\/strong> section, click <strong>Create Application<\/strong>, and select your region.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Deploy the Container<\/strong>:\n<ul>\n<li>Follow the prompts in the Google Cloud Console to deploy the GTM container. You will be asked to deploy the container image to your App Engine instance.<\/li>\n<\/ul>\n<p>This deployment will automatically create a secure endpoint (with a URL) to which you can send data from your website.<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_3_Set_Up_the_Server-Side_Tagging_Environment\"><\/span>Step 3: Set Up the Server-Side Tagging Environment<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Once your container is hosted on a server, you can configure it similarly to the client-side Google Tag Manager interface, but with additional server-side options.<\/p>\n<ol>\n<li><strong>Configure Tags<\/strong>:\n<ul>\n<li>Go back to your GTM dashboard, and in the server-side container, you can configure tags just like in the client-side container. For example, you can configure tags for Google Analytics, Google Ads, Facebook Pixel, or custom server-side tags.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set Up Data Streams<\/strong>:\n<ul>\n<li>You will need to set up data streams that define how data is passed between your website (client-side) and the server container.<\/li>\n<li>For example, use <strong>HTTP Requests<\/strong> to send data from the client (browser) to the server container.<\/li>\n<li>You can do this by configuring a <strong>Measurement Protocol<\/strong> to send events from your website to the server container via HTTP requests.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_4_Set_Up_Client-Side_to_Server-Side_Communication\"><\/span>Step 4: Set Up Client-Side to Server-Side Communication<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>To send data from your website to the server container, you need to implement a <strong>client-side container<\/strong> (your regular GTM container) that will forward data to the server container.<\/p>\n<ol>\n<li><strong>Create a New Client-Side Container<\/strong>:\n<ul>\n<li>In Google Tag Manager, create a new <strong>web container<\/strong> for your website.<\/li>\n<li>Install the GTM snippet on your website as you would for a typical GTM implementation.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Configure HTTP Request to Server Container<\/strong>:\n<ul>\n<li>Inside the client-side GTM container, create tags that send data to the server-side container via HTTP requests. You can use <strong>Custom HTML tags<\/strong> or <strong>JavaScript<\/strong> to send data to the server endpoint.<\/li>\n<li>The request typically involves sending the data as <strong>JSON<\/strong> or <strong>URL parameters<\/strong> to the server container\u2019s endpoint URL.<\/li>\n<\/ul>\n<p>Example of sending data from the client to the server container:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">javascript<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><span class=\"\" data-state=\"closed\"><button class=\"flex gap-1 items-center select-none py-1\">Copy code<\/button><\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-javascript\"><span class=\"hljs-title function_\">fetch<\/span>(<span class=\"hljs-string\">'https:\/\/&lt;server-container-url&gt;\/collect'<\/span>, {<br \/>\n  <span class=\"hljs-attr\">method<\/span>: <span class=\"hljs-string\">'POST'<\/span>,<br \/>\n  <span class=\"hljs-attr\">headers<\/span>: {<br \/>\n    <span class=\"hljs-string\">'Content-Type'<\/span>: <span class=\"hljs-string\">'application\/json'<\/span><br \/>\n  },<br \/>\n  <span class=\"hljs-attr\">body<\/span>: <span class=\"hljs-title class_\">JSON<\/span>.<span class=\"hljs-title function_\">stringify<\/span>({ <span class=\"hljs-attr\">event<\/span>: <span class=\"hljs-string\">'page_view'<\/span>, <span class=\"hljs-attr\">page_url<\/span>: <span class=\"hljs-variable language_\">window<\/span>.<span class=\"hljs-property\">location<\/span>.<span class=\"hljs-property\">href<\/span> })<br \/>\n});<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_5_Set_Up_Tags_and_Triggers_in_the_Server-Side_Container\"><\/span>Step 5: Set Up Tags and Triggers in the Server-Side Container<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Add Tags<\/strong>:\n<ul>\n<li>In your server-side GTM container, configure tags that correspond to the platforms where you want to send data (e.g., Google Analytics, Facebook, etc.).<\/li>\n<li>You can set up standard tags like Google Analytics (GA4) or custom tags using JavaScript or third-party APIs to forward data.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set Up Triggers<\/strong>:\n<ul>\n<li>Create triggers in the server container to fire the tags based on the data received from the client-side container.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_6_Test_and_Debug\"><\/span>Step 6: Test and Debug<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Preview Mode<\/strong>:\n<ul>\n<li>Use the <strong>Preview<\/strong> mode in both client-side and server-side GTM containers to test the implementation. This allows you to ensure that data is properly sent from the website to the server and processed accordingly.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Use Server Logs<\/strong>:\n<ul>\n<li>Check server logs in Google Cloud to verify that data is being received and processed correctly by the server-side container.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Monitor Tag Firing<\/strong>:\n<ul>\n<li>In Google Tag Manager\u2019s server container interface, use the <strong>Tag Assistant<\/strong> to monitor the firing of tags and troubleshoot any issues.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Step_7_Publish_the_Server-Side_Container\"><\/span>Step 7: Publish the Server-Side Container<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Once you\u2019ve confirmed that everything is working correctly in preview mode and testing, you can <strong>publish<\/strong> the server-side container to make it live. This will ensure that all data processing and forwarding to third-party platforms is done through the server-side GTM setup.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Server-Side Google Tag Manager provides an enhanced and more secure way to manage tags for your website, offering better control over data privacy, performance, and security. Implementing server-side GTM involves setting up a server container, deploying it on Google Cloud, configuring tags and triggers, and setting up communication between client-side and server-side containers. By following these steps, you can leverage the power of server-side tagging to optimize your tracking and analytics setup while ensuring data privacy and security.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Server-Side Google Tag Manager (SSGTM) is an advanced method of using Google Tag Manager (GTM) where the tag firing process is handled on a server&#8230;<\/p>\n","protected":false},"author":214,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-10596","post","type-post","status-publish","format-standard","hentry","category-digital-marketing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to implement server-side Google Tag Manager - CEOweb Ltd. Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to implement server-side Google Tag Manager - CEOweb Ltd. Blog\" \/>\n<meta property=\"og:description\" content=\"Server-Side Google Tag Manager (SSGTM) is an advanced method of using Google Tag Manager (GTM) where the tag firing process is handled on a server...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"CEOweb Ltd. Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-14T17:25:06+00:00\" \/>\n<meta name=\"author\" content=\"Emmanuel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Emmanuel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/\",\"url\":\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/\",\"name\":\"How to implement server-side Google Tag Manager - CEOweb Ltd. Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\"},\"datePublished\":\"2024-11-14T17:25:06+00:00\",\"dateModified\":\"2024-11-14T17:25:06+00:00\",\"author\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\"},\"breadcrumb\":{\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ceowebltd.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to implement server-side Google Tag Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#website\",\"url\":\"https:\/\/ceowebltd.com\/blog\/\",\"name\":\"CEOweb Ltd. Blog\",\"description\":\"Guest Posting - Digital Marketing &amp; Web Services\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ceowebltd.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f\",\"name\":\"Emmanuel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g\",\"caption\":\"Emmanuel\"},\"url\":\"https:\/\/ceowebltd.com\/blog\/author\/emmanuel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to implement server-side Google Tag Manager - CEOweb Ltd. Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"How to implement server-side Google Tag Manager - CEOweb Ltd. Blog","og_description":"Server-Side Google Tag Manager (SSGTM) is an advanced method of using Google Tag Manager (GTM) where the tag firing process is handled on a server...","og_url":"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/","og_site_name":"CEOweb Ltd. Blog","article_published_time":"2024-11-14T17:25:06+00:00","author":"Emmanuel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Emmanuel","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/","url":"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/","name":"How to implement server-side Google Tag Manager - CEOweb Ltd. Blog","isPartOf":{"@id":"https:\/\/ceowebltd.com\/blog\/#website"},"datePublished":"2024-11-14T17:25:06+00:00","dateModified":"2024-11-14T17:25:06+00:00","author":{"@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f"},"breadcrumb":{"@id":"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ceowebltd.com\/blog\/how-to-implement-server-side-google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ceowebltd.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to implement server-side Google Tag Manager"}]},{"@type":"WebSite","@id":"https:\/\/ceowebltd.com\/blog\/#website","url":"https:\/\/ceowebltd.com\/blog\/","name":"CEOweb Ltd. Blog","description":"Guest Posting - Digital Marketing &amp; Web Services","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ceowebltd.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/4759c204c0b0f1d134ec16e8ec777a6f","name":"Emmanuel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ceowebltd.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9e883d40261b9b272de51992551b3eec4df631b7579a4fbec69c36a006dcbaf2?s=96&d=mm&r=g","caption":"Emmanuel"},"url":"https:\/\/ceowebltd.com\/blog\/author\/emmanuel\/"}]}},"_links":{"self":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/users\/214"}],"replies":[{"embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/comments?post=10596"}],"version-history":[{"count":1,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10596\/revisions"}],"predecessor-version":[{"id":10597,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/posts\/10596\/revisions\/10597"}],"wp:attachment":[{"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/media?parent=10596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/categories?post=10596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ceowebltd.com\/blog\/wp-json\/wp\/v2\/tags?post=10596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}