{"id":6457,"date":"2024-06-06T17:46:44","date_gmt":"2024-06-06T17:46:44","guid":{"rendered":"https:\/\/lite14.net\/blog\/?p=6457"},"modified":"2024-06-06T17:47:04","modified_gmt":"2024-06-06T17:47:04","slug":"how-to-implement-third-party-tags-in-google-tag-manager","status":"publish","type":"post","link":"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/","title":{"rendered":"How to Implement Third-party Tags in Google Tag Manager"},"content":{"rendered":"<div class=\"flex-1 overflow-hidden\">\n<div class=\"react-scroll-to-bottom--css-avzmz-79elbk h-full\">\n<div class=\"react-scroll-to-bottom--css-avzmz-1n7m0yu\">\n<div class=\"flex flex-col text-sm pb-9\">\n<div class=\"w-full text-token-text-primary\" dir=\"auto\" data-testid=\"conversation-turn-59\" data-scroll-anchor=\"true\">\n<div class=\"py-2 juice:py-[18px] px-3 text-base md:px-4 m-auto md:px-5 lg:px-1 xl:px-5\">\n<div class=\"mx-auto flex flex-1 gap-3 text-base juice:gap-4 juice:md:gap-5 juice:lg:gap-6 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem]\">\n<div class=\"group\/conversation-turn relative flex w-full min-w-0 flex-col agent-turn\">\n<div class=\"flex-col gap-1 md:gap-3\">\n<div class=\"flex flex-grow flex-col max-w-full\">\n<div class=\"min-h-[20px] text-message flex flex-col items-start whitespace-pre-wrap break-words [.text-message+&amp;]:mt-5 juice:w-full juice:items-end overflow-x-auto gap-2\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"c39dce29-3c3c-4c47-85be-6b52cfc97bfa\">\n<div class=\"flex w-full flex-col gap-1 juice:empty:hidden juice:first:pt-[3px]\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\n<p>Implementing third-party tags in Google Tag Manager (GTM) is essential for businesses that rely on various marketing, analytics, and tracking services. GTM offers a centralized, flexible solution to manage all your tags without directly modifying the website code. This tutorial will provide a comprehensive guide on setting up and using third-party tags in GTM, ensuring your implementation is efficient and effective.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 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:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#_1_Set_Up_Google_Tag_Manager\" >\u00a01. Set Up 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:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Creating_a_Container\" >Creating a Container<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Installing_GTM_on_Your_Website\" >Installing GTM on Your Website<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#_2_Obtain_the_Third-Party_Tag_Code\" >\u00a02. Obtain the Third-Party Tag Code<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#_3_Create_a_New_Tag_in_GTM\" >\u00a03. Create a New Tag in GTM<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Creating_the_Tag\" >Creating the Tag<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#_4_Configure_the_Tag\" >\u00a04. Configure the Tag<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Using_Built-In_Templates\" >Using Built-In Templates<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Using_Custom_HTML_Tag\" >Using Custom HTML Tag<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#_5_Add_Triggers\" >\u00a05. Add Triggers<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Choosing_or_Creating_Triggers\" >Choosing or Creating Triggers<\/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:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#_6_Test_the_Tag_Configuration\" >\u00a06. Test the Tag Configuration<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Using_GTM_Preview_Mode\" >Using GTM Preview Mode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Using_Tag_Debugging_Tools\" >Using Tag Debugging Tools<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#_7_Publish_Your_Container\" >\u00a07. Publish Your Container<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Submitting_and_Publishing_Changes\" >Submitting and Publishing Changes<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Example_Implementations\" >Example Implementations<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Example_1_Implementing_a_Facebook_Pixel\" >Example 1: Implementing a Facebook Pixel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Example_2_Implementing_a_Custom_HTML_Tag_for_a_Third-Party_Service\" >Example 2: Implementing a Custom HTML Tag for a Third-Party Service<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Advanced_Tips\" >Advanced Tips<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Using_Variables\" >Using Variables<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Error_Handling\" >Error Handling<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#Consent_Management\" >Consent Management<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"_1_Set_Up_Google_Tag_Manager\"><\/span>\u00a01. Set Up Google Tag Manager<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Creating_a_Container\"><\/span>Creating a Container<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Log in to GTM<\/strong>:\n<ul>\n<li>Visit <a href=\"https:\/\/tagmanager.google.com\/\" target=\"_new\" rel=\"noreferrer noopener\">Google Tag Manager<\/a> and log in with your Google account.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a Container<\/strong>:\n<ul>\n<li>If you don\u2019t have a container, click <strong>Create Account<\/strong>. Provide your account name (usually your company name), country, and container name (usually your website name).<\/li>\n<li>Choose the container type (Web, iOS, Android, or AMP).<\/li>\n<li>Click <strong>Create<\/strong> and agree to the terms of service.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Installing_GTM_on_Your_Website\"><\/span>Installing GTM on Your Website<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Get the GTM Code Snippet<\/strong>:\n<ul>\n<li>After creating the container, GTM will provide a code snippet.<\/li>\n<li>Copy the code snippet.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add the GTM Code to Your Website<\/strong>:\n<ul>\n<li>Paste the first part of the snippet immediately after the opening <code>&lt;head&gt;<\/code> tag on every page of your website.<\/li>\n<li>Paste the second part of the snippet immediately after the opening <code>&lt;body&gt;<\/code> tag on every page of your website.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"_2_Obtain_the_Third-Party_Tag_Code\"><\/span>\u00a02. Obtain the Third-Party Tag Code<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li><strong>Identify the Third-Party Service<\/strong>:\n<ul>\n<li>Determine which third-party service (e.g., Facebook Pixel, LinkedIn Insight Tag, Twitter Universal Website Tag) you need to implement.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Get the Tag Code<\/strong>:\n<ul>\n<li>Visit the third-party service\u2019s website and follow their instructions to generate the tag code. This often involves setting up an account and configuring your tracking settings.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"_3_Create_a_New_Tag_in_GTM\"><\/span>\u00a03. Create a New Tag in GTM<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Creating_the_Tag\"><\/span>Creating the Tag<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><b>Go to the\u00a0tags Section<\/b>:<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"min-h-[20px] text-message flex flex-col items-start whitespace-pre-wrap break-words [.text-message+&amp;]:mt-5 juice:w-full juice:items-end overflow-x-auto gap-2\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"ce66aa11-e4de-4eb6-ba51-9f82f8aaf7fb\">\n<div class=\"flex w-full flex-col gap-1 juice:empty:hidden juice:first:pt-[3px]\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\n<ul>\n<li>In your GTM container, navigate to the <strong>Tags<\/strong> section in the left-hand menu.<\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong>Create a New Tag<\/strong>:\n<ul>\n<li>Click on <strong>New<\/strong> to create a new tag.<\/li>\n<li>Name your tag descriptively, such as &#8220;Facebook Pixel&#8221; or &#8220;LinkedIn Insight Tag&#8221;.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"_4_Configure_the_Tag\"><\/span>\u00a04. Configure the Tag<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Using_Built-In_Templates\"><\/span>Using Built-In Templates<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Choose Tag Type<\/strong>:\n<ul>\n<li>Click on <strong>Tag Configuration<\/strong>.<\/li>\n<li>GTM provides built-in templates for several popular third-party tags, such as Google Analytics, Facebook Pixel, and LinkedIn Insight Tag. Select the relevant tag type from the list.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Enter Tag Details<\/strong>:\n<ul>\n<li>For example, if using the Facebook Pixel, you\u2019ll need to enter your Facebook Pixel ID.<\/li>\n<li>Fill in any additional required fields based on the tag type. This could include specific event names or custom parameters.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Using_Custom_HTML_Tag\"><\/span>Using Custom HTML Tag<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Select Custom HTML Tag<\/strong>:\n<ul>\n<li>If GTM doesn\u2019t have a built-in template for your third-party tag, select <strong>Custom HTML Tag<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Paste the Tag Code<\/strong>:\n<ul>\n<li>Copy the tag code you obtained from the third-party service and paste it into the HTML text area in GTM.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"_5_Add_Triggers\"><\/span>\u00a05. Add Triggers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Choosing_or_Creating_Triggers\"><\/span>Choosing or Creating Triggers<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Click on Triggering<\/strong>:\n<ul>\n<li>Click on <strong>Triggering<\/strong> to add a trigger to your tag.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Choose an Existing Trigger<\/strong>:\n<ul>\n<li>Select an existing trigger from the list. Common triggers include <strong>All Pages<\/strong>, <strong>Page View<\/strong>, <strong>Click<\/strong>, or <strong>Form Submission<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a New Trigger<\/strong>:\n<ul>\n<li>If necessary, create a new trigger by clicking on the <strong>+<\/strong> button.<\/li>\n<li>Choose the trigger type (e.g., Page View, Click).<\/li>\n<li>Configure the trigger conditions based on when you want the tag to fire (e.g., all pages, specific page URL, button clicks).<\/li>\n<li>Name and save the trigger.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"_6_Test_the_Tag_Configuration\"><\/span>\u00a06. Test the Tag Configuration<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Using_GTM_Preview_Mode\"><\/span>Using GTM Preview Mode<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Enable Preview Mode<\/strong>:\n<ul>\n<li>Click on <strong>Preview<\/strong> in GTM to enable preview mode. This will open the GTM Debug console.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Check the Tag on Your Website<\/strong>:\n<ul>\n<li>Open your website in a new tab with the GTM debug console active.<\/li>\n<li>Navigate through your website to verify that the third-party tag fires correctly according to the triggers you set.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Using_Tag_Debugging_Tools\"><\/span>Using Tag Debugging Tools<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Google Tag Assistant<\/strong>:\n<ul>\n<li>Install the <a target=\"_new\" rel=\"noreferrer noopener\">Google Tag Assistant<\/a> Chrome extension.<\/li>\n<li>Use this tool to verify that the third-party tag is firing as expected.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Browser Developer Tools<\/strong>:\n<ul>\n<li>Open your browser\u2019s developer tools (usually by pressing <code>F12<\/code> or right-clicking on the page and selecting <strong>Inspect<\/strong>).<\/li>\n<li>Go to the <strong>Network<\/strong> tab to check for requests made by the third-party tag.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"_7_Publish_Your_Container\"><\/span>\u00a07. Publish Your Container<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Submitting_and_Publishing_Changes\"><\/span>Submitting and Publishing Changes<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Submit Your Changes<\/strong>:\n<ul>\n<li>Once you\u2019ve confirmed that the tag is working correctly, return to GTM.<\/li>\n<li>Click on <strong>Submit<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Publish Your Container<\/strong>:\n<ul>\n<li>Add a version name and description summarizing the changes.<\/li>\n<li>Click <strong>Publish<\/strong> to make your changes live.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Example_Implementations\"><\/span>Example Implementations<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Example_1_Implementing_a_Facebook_Pixel\"><\/span>Example 1: Implementing a Facebook Pixel<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Create the Tag<\/strong>:\n<ul>\n<li>Go to <strong>Tags<\/strong> &gt; <strong>New<\/strong>.<\/li>\n<li>Click <strong>Tag Configuration<\/strong> and select <strong>Facebook Pixel<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Enter Pixel ID<\/strong>:\n<ul>\n<li>Enter your Facebook Pixel ID.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add Trigger<\/strong>:\n<ul>\n<li>Click on <strong>Triggering<\/strong> and select <strong>All Pages<\/strong> or create a custom trigger.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Save and Publish<\/strong>:\n<ul>\n<li>Save the tag, submit, and publish the container.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Example_2_Implementing_a_Custom_HTML_Tag_for_a_Third-Party_Service\"><\/span>Example 2: Implementing a Custom HTML Tag for a Third-Party Service<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Create the Tag<\/strong>:\n<ul>\n<li>Go to <strong>Tags<\/strong> &gt; <strong>New<\/strong>.<\/li>\n<li>Click <strong>Tag Configuration<\/strong> and select <strong>Custom HTML Tag<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Paste the Tag Code<\/strong>:\n<ul>\n<li>Copy the third-party tag code and paste it into the HTML text area.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add Trigger<\/strong>:\n<ul>\n<li>Click on <strong>Triggering<\/strong> and select an appropriate trigger (e.g., All Pages).<\/li>\n<\/ul>\n<\/li>\n<li><strong>Save and Publish<\/strong>:\n<ul>\n<li>Save the tag, submit, and publish the container.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Advanced_Tips\"><\/span>Advanced Tips<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Using_Variables\"><\/span>Using Variables<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Create Custom Variables<\/strong>:\n<ul>\n<li>Use GTM variables to dynamically insert data into your tags. For example, create a variable to capture the page URL or user ID.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Configure Variable Settings<\/strong>:\n<ul>\n<li>Go to the <strong>Variables<\/strong> section in GTM.<\/li>\n<li>Click on <strong>New<\/strong> to create a new variable.<\/li>\n<li>Choose the variable type (e.g., URL, Data Layer Variable).<\/li>\n<li>Configure the variable settings as needed.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Use Variables in Tags<\/strong>:\n<ul>\n<li>In your tag configuration, use the variables by referencing them within the tag code or settings.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h4><span class=\"ez-toc-section\" id=\"Error_Handling\"><\/span>Error Handling<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>Ensure that your custom HTML tags include error handling to prevent issues if the third-party service is unavailable.<\/li>\n<li>Implement Error Handling in Custom HTML Tags.<\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"Consent_Management\"><\/span>Consent Management<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li><strong>Integrate with Consent Management Platforms (CMPs)<\/strong>:<\/li>\n<\/ol>\n<ul>\n<li>Ensure compliance with privacy regulations by integrating your tags with a consent management tool like Google Consent Mode or a third-party CMP.<\/li>\n<li>Use triggers and variables to conditionally fire tags based on user consent.<\/li>\n<\/ul>\n<p><strong>2. Configure Tags Based on User Consent<\/strong><\/p>\n<p>By following these detailed steps, you can efficiently implement and manage third-party tags using Google Tag Manager. GTM provides a centralized and flexible way to handle various marketing and analytics tags, ensuring your website remains easy to maintain and update. Regular testing, updating, and documentation will help maintain the effectiveness and reliability of your third-party tag implementations, ultimately contributing to better data accuracy and more effective marketing efforts.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Implementing third-party tags in Google Tag Manager (GTM) is essential for businesses that rely on various marketing, analytics, and tracking services. GTM offers a centralized,&#8230;<\/p>\n","protected":false},"author":210,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[270],"tags":[],"class_list":["post-6457","post","type-post","status-publish","format-standard","hentry","category-digital-marketing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Implement Third-party Tags in Google Tag Manager - Lite14 Tools &amp; 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:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-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 Third-party Tags in Google Tag Manager - Lite14 Tools &amp; Blog\" \/>\n<meta property=\"og:description\" content=\"Implementing third-party tags in Google Tag Manager (GTM) is essential for businesses that rely on various marketing, analytics, and tracking services. GTM offers a centralized,...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/\" \/>\n<meta property=\"og:site_name\" content=\"Lite14 Tools &amp; Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-06T17:46:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-06T17:47:04+00:00\" \/>\n<meta name=\"author\" content=\"admin3\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin3\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/\"},\"author\":{\"name\":\"admin3\",\"@id\":\"https:\/\/lite14.net\/blog\/#\/schema\/person\/3fcb0f4c8bd53264d6447eb6a6d36e81\"},\"headline\":\"How to Implement Third-party Tags in Google Tag Manager\",\"datePublished\":\"2024-06-06T17:46:44+00:00\",\"dateModified\":\"2024-06-06T17:47:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/\"},\"wordCount\":1056,\"publisher\":{\"@id\":\"https:\/\/lite14.net\/blog\/#organization\"},\"articleSection\":[\"Digital Marketing\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/\",\"url\":\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/\",\"name\":\"How to Implement Third-party Tags in Google Tag Manager - Lite14 Tools &amp; Blog\",\"isPartOf\":{\"@id\":\"https:\/\/lite14.net\/blog\/#website\"},\"datePublished\":\"2024-06-06T17:46:44+00:00\",\"dateModified\":\"2024-06-06T17:47:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lite14.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Implement Third-party Tags in Google Tag Manager\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lite14.net\/blog\/#website\",\"url\":\"https:\/\/lite14.net\/blog\/\",\"name\":\"Lite14 Tools &amp; Blog\",\"description\":\"Email Marketing Tools &amp; Digital Marketing Updates\",\"publisher\":{\"@id\":\"https:\/\/lite14.net\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lite14.net\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/lite14.net\/blog\/#organization\",\"name\":\"Lite14 Tools &amp; Blog\",\"url\":\"https:\/\/lite14.net\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lite14.net\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/lite14.net\/blog\/wp-content\/uploads\/2025\/09\/cropped-lite-logo.png\",\"contentUrl\":\"https:\/\/lite14.net\/blog\/wp-content\/uploads\/2025\/09\/cropped-lite-logo.png\",\"width\":191,\"height\":178,\"caption\":\"Lite14 Tools &amp; Blog\"},\"image\":{\"@id\":\"https:\/\/lite14.net\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/lite14.net\/blog\/#\/schema\/person\/3fcb0f4c8bd53264d6447eb6a6d36e81\",\"name\":\"admin3\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lite14.net\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a47a48d3f454a7aa919c16c5d03a6b63ff4ecdd1d2405bfba02f09414226574?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a47a48d3f454a7aa919c16c5d03a6b63ff4ecdd1d2405bfba02f09414226574?s=96&d=mm&r=g\",\"caption\":\"admin3\"},\"url\":\"https:\/\/lite14.net\/blog\/author\/adeyemoemmanuel001\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Implement Third-party Tags in Google Tag Manager - Lite14 Tools &amp; 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:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/","og_locale":"en_US","og_type":"article","og_title":"How to Implement Third-party Tags in Google Tag Manager - Lite14 Tools &amp; Blog","og_description":"Implementing third-party tags in Google Tag Manager (GTM) is essential for businesses that rely on various marketing, analytics, and tracking services. GTM offers a centralized,...","og_url":"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/","og_site_name":"Lite14 Tools &amp; Blog","article_published_time":"2024-06-06T17:46:44+00:00","article_modified_time":"2024-06-06T17:47:04+00:00","author":"admin3","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin3","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#article","isPartOf":{"@id":"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/"},"author":{"name":"admin3","@id":"https:\/\/lite14.net\/blog\/#\/schema\/person\/3fcb0f4c8bd53264d6447eb6a6d36e81"},"headline":"How to Implement Third-party Tags in Google Tag Manager","datePublished":"2024-06-06T17:46:44+00:00","dateModified":"2024-06-06T17:47:04+00:00","mainEntityOfPage":{"@id":"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/"},"wordCount":1056,"publisher":{"@id":"https:\/\/lite14.net\/blog\/#organization"},"articleSection":["Digital Marketing"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/","url":"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/","name":"How to Implement Third-party Tags in Google Tag Manager - Lite14 Tools &amp; Blog","isPartOf":{"@id":"https:\/\/lite14.net\/blog\/#website"},"datePublished":"2024-06-06T17:46:44+00:00","dateModified":"2024-06-06T17:47:04+00:00","breadcrumb":{"@id":"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/lite14.net\/blog\/2024\/06\/06\/how-to-implement-third-party-tags-in-google-tag-manager\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lite14.net\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Implement Third-party Tags in Google Tag Manager"}]},{"@type":"WebSite","@id":"https:\/\/lite14.net\/blog\/#website","url":"https:\/\/lite14.net\/blog\/","name":"Lite14 Tools &amp; Blog","description":"Email Marketing Tools &amp; Digital Marketing Updates","publisher":{"@id":"https:\/\/lite14.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lite14.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/lite14.net\/blog\/#organization","name":"Lite14 Tools &amp; Blog","url":"https:\/\/lite14.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lite14.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/lite14.net\/blog\/wp-content\/uploads\/2025\/09\/cropped-lite-logo.png","contentUrl":"https:\/\/lite14.net\/blog\/wp-content\/uploads\/2025\/09\/cropped-lite-logo.png","width":191,"height":178,"caption":"Lite14 Tools &amp; Blog"},"image":{"@id":"https:\/\/lite14.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/lite14.net\/blog\/#\/schema\/person\/3fcb0f4c8bd53264d6447eb6a6d36e81","name":"admin3","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lite14.net\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a47a48d3f454a7aa919c16c5d03a6b63ff4ecdd1d2405bfba02f09414226574?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a47a48d3f454a7aa919c16c5d03a6b63ff4ecdd1d2405bfba02f09414226574?s=96&d=mm&r=g","caption":"admin3"},"url":"https:\/\/lite14.net\/blog\/author\/adeyemoemmanuel001\/"}]}},"_links":{"self":[{"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/posts\/6457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/users\/210"}],"replies":[{"embeddable":true,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/comments?post=6457"}],"version-history":[{"count":2,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/posts\/6457\/revisions"}],"predecessor-version":[{"id":6467,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/posts\/6457\/revisions\/6467"}],"wp:attachment":[{"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/media?parent=6457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/categories?post=6457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lite14.net\/blog\/wp-json\/wp\/v2\/tags?post=6457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}