{"id":7009,"date":"2025-11-15T18:34:23","date_gmt":"2025-11-15T18:34:23","guid":{"rendered":"https:\/\/sweepwidget.com\/docs\/?p=7009"},"modified":"2026-11-19T10:28:16","modified_gmt":"2026-11-19T10:28:16","slug":"google-tag-manager-integration","status":"publish","type":"post","link":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration","title":{"rendered":"Google Tag Manager Integration"},"content":{"rendered":"<p><strong>Plan required: Business or higher.<\/strong><\/p>\n<p>Google Tag Manager (GTM) lets you manage marketing tags without editing code. When you connect GTM to SweepWidget, your container loads on your giveaway and receives SweepWidget events in the dataLayer. You can then send them to Google Analytics 4, ad platforms and other tools.<\/p>\n<h3 id=\"what-youll-track-with-google-tag-manager\">What You&#8217;ll Track with Google Tag Manager<\/h3>\n<p>Once integrated, GTM receives events for:<\/p>\n<ul>\n<li>Page loads \u2013 every time someone views your giveaway<\/li>\n<li>Giveaway entries \u2013 when an entrant submits the entry form (successes and errors)<\/li>\n<li>Entry method completions \u2013 each bonus action an entrant completes (successes and errors)<\/li>\n<li>Widget interactions \u2013 refreshes and logouts<\/li>\n<\/ul>\n<p>All SweepWidget action events start with <strong>sw_sweepwidget_<\/strong>. The page-load event is named <strong>SweepWidget<\/strong>.<\/p>\n<h3 id=\"where-the-container-runs\">Where the container runs<\/h3>\n<p>Your GTM container loads inside SweepWidget&#8217;s page:<\/p>\n<ul>\n<li>On the hosted landing page (sweepwidget.com\/c\/&#8230;), it runs on that page.<\/li>\n<li>On an embedded giveaway, it runs inside the giveaway iframe (also on sweepwidget.com), not on your website&#8217;s page. The GTM container on your own website does not receive these events.<\/li>\n<\/ul>\n<p>If you need giveaway events on your own website&#8217;s page, use the JavaScript callbacks described in the Webhooks guide (Enterprise plan).<\/p>\n<h3 id=\"setting-up-gtm-integration\">Setting Up GTM Integration<\/h3>\n<h4 id=\"step-1-open-the-google-tag-manager-settings\">Step 1: Open the Google Tag Manager settings<\/h4>\n<p>In your SweepWidget dashboard, click <strong>API Integrations<\/strong> in the left menu. Then click <strong>Google Tag Manager<\/strong>.<\/p>\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"581\" src=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/tracking-pixel-1-2-1024x581.png\" alt=\"\" class=\"wp-image-7015\"\/><\/figure>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"585\" src=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/GTM-2-1024x585.png\" alt=\"\" class=\"wp-image-7016\"\/><\/figure>\n<h4 id=\"step-2-enter-your-container-id\">Step 2: Enter Your Container ID<\/h4>\n<p>In the <strong>Container ID<\/strong> field, enter your GTM Container ID (it starts with &#8220;GTM-&#8220;, like GTM-XXXXXX).<\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"565\" src=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/gtm-1024x565.png\" alt=\"\" class=\"wp-image-7162\" srcset=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/gtm-1024x565.png 1024w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/gtm-300x166.png 300w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/gtm-768x424.png 768w, https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/gtm.png 1500w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<p>Click <strong>Save Changes<\/strong>.<\/p>\n<p>Important: only enter your Container ID (GTM-XXXXXX), not the entire GTM script.<\/p>\n<h3 id=\"finding-your-gtm-container-id\">Finding Your GTM Container ID<\/h3>\n<h4 id=\"step-1-access-google-tag-manager\">Step 1: Access Google Tag Manager<\/h4>\n<p>Go to tagmanager.google.com and sign in with your Google account.<\/p>\n<h4 id=\"step-2-create-or-select-a-container\">Step 2: Create or Select a Container<\/h4>\n<p>If you already have a GTM container, select it from your account list. If not, create a new container:<\/p>\n<ul>\n<li>Click Create Account (if you don&#8217;t have one) or Create Container (if adding to an existing account)<\/li>\n<li>Enter an account name and select your country<\/li>\n<li>Enter a container name (usually your website domain)<\/li>\n<li>Select Web as the target platform<\/li>\n<li>Click Create and accept the terms<\/li>\n<\/ul>\n<h4 id=\"step-3-copy-your-container-id\">Step 3: Copy Your Container ID<\/h4>\n<p>Your Container ID is shown in the top right corner of the GTM interface (format: GTM-XXXXXX). Copy it and paste it into the SweepWidget integration field.<\/p>\n<h3 id=\"setting-up-tags-in-gtm\">Setting Up Tags in GTM<\/h3>\n<h4 id=\"create-data-layer-variables\">Create Data Layer Variables<\/h4>\n<p>Create three variables of type <strong>Data Layer Variable<\/strong> with these names: <strong>eventCategory<\/strong>, <strong>eventAction<\/strong> and <strong>eventLabel<\/strong>.<\/p>\n<h4 id=\"create-a-trigger-for-sweepwidget-events\">Create a Trigger for SweepWidget Events<\/h4>\n<ul>\n<li>In GTM, go to Triggers and click New<\/li>\n<li>Select <strong>Custom Event<\/strong> as the trigger type<\/li>\n<li>In the Event Name field, enter: <strong>sw_.*<\/strong> (this matches all SweepWidget action events)<\/li>\n<li>Check <strong>Use regex matching<\/strong><\/li>\n<li>Name your trigger (e.g., &#8220;SweepWidget \u2013 All Events&#8221;)<\/li>\n<li>Click Save<\/li>\n<\/ul>\n<p>To also catch page loads, create a second Custom Event trigger with the Event Name <strong>SweepWidget<\/strong> (no regex).<\/p>\n<h4 id=\"create-a-tag-example-send-to-google-analytics\">Create a Tag (Example: Send to Google Analytics)<\/h4>\n<ul>\n<li>Go to Tags and click New<\/li>\n<li>Select Google Analytics: GA4 Event<\/li>\n<li>Enter your GA4 Measurement ID<\/li>\n<li>Set Event Name to {{Event}}<\/li>\n<li>Add Event Parameters: \u2013 Parameter Name: event_category, Value: {{eventCategory}} \u2013 Parameter Name: event_label, Value: {{eventLabel}}<\/li>\n<li>In the Triggering section, select your &#8220;SweepWidget \u2013 All Events&#8221; trigger<\/li>\n<li>Name your tag (e.g., &#8220;SweepWidget to GA4&#8221;)<\/li>\n<li>Click Save<\/li>\n<\/ul>\n<h3 id=\"testing-your-gtm-setup\">Testing Your GTM Setup<\/h3>\n<h4 id=\"using-preview-mode\">Using Preview Mode<\/h4>\n<ul>\n<li>In GTM, click Preview in the top right corner<\/li>\n<li>Enter your giveaway&#8217;s hosted landing page URL (sweepwidget.com\/c\/&#8230;)<\/li>\n<li>Click Connect<\/li>\n<li>Interact with your giveaway (enter, complete actions)<\/li>\n<li>In the Tag Assistant panel, you should see events such as sw_sweepwidget_enter_giveaway and sw_sweepwidget_insert_entry<\/li>\n<li>Click each event to check that your tags fire<\/li>\n<\/ul>\n<h4 id=\"publishing-your-container\">Publishing Your Container<\/h4>\n<p>Once everything works in Preview mode:<\/p>\n<ul>\n<li>Click Submit in the top right<\/li>\n<li>Add a version name and description (e.g., &#8220;Added SweepWidget tracking&#8221;)<\/li>\n<li>Click Publish<\/li>\n<\/ul>\n<h3 id=\"events-pushed-to-datalayer\">Events Pushed to dataLayer<\/h3>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Event name<\/th>\n<th>When it fires<\/th>\n<th>eventCategory<\/th>\n<th>eventLabel examples<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>SweepWidget<\/td>\n<td>Giveaway page loads<\/td>\n<td>Widget Page Load<\/td>\n<td>Giveaway title<\/td>\n<\/tr>\n<tr>\n<td>sw_sweepwidget_enter_giveaway<\/td>\n<td>Entrant submits the entry form<\/td>\n<td>Enter giveaway<\/td>\n<td>&#8220;Enter giveaway success&#8221;, &#8220;Enter giveaway error: duplicate IP address&#8221;<\/td>\n<\/tr>\n<tr>\n<td>sw_sweepwidget_insert_entry<\/td>\n<td>Entrant completes a bonus entry method<\/td>\n<td>Insert entry<\/td>\n<td>&#8220;Insert entry: visit_a_page&#8221;, &#8220;Insert entry error: duplicate&#8221;<\/td>\n<\/tr>\n<tr>\n<td>sw_sweepwidget_login_error<\/td>\n<td>Entry form blocked by a security check<\/td>\n<td>Insert entry<\/td>\n<td>&#8220;Insert entry error: VPN detected&#8221;<\/td>\n<\/tr>\n<tr>\n<td>sw_sweepwidget_reload_widget<\/td>\n<td>Widget is refreshed<\/td>\n<td>Reload widget<\/td>\n<td>&#8220;Reload widget success&#8221;<\/td>\n<\/tr>\n<tr>\n<td>sw_sweepwidget_logout<\/td>\n<td>Entrant logs out<\/td>\n<td>Logout<\/td>\n<td>&#8220;Logout success&#8221;<\/td>\n<\/tr>\n<tr>\n<td>sw_sweepwidget_duplicate_wallet_address<\/td>\n<td>Crypto wallet address already used<\/td>\n<td>Duplicate crypto wallet address<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>sw_sweepwidget_invalid_phone_number<\/td>\n<td>Invalid phone number<\/td>\n<td>Insert entry<\/td>\n<td>&#8220;Insert entry error: invalid phone number&#8221;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>There is no separate login-success event.<\/p>\n<h4 id=\"datalayer-structure\">dataLayer Structure<\/h4>\n<p>Each action event includes:<\/p>\n<ul>\n<li>event \u2013 event name (sw_ prefix, lower case, underscores)<\/li>\n<li>eventCategory \u2013 category of the action (see the table)<\/li>\n<li>eventAction \u2013 the original event name (e.g., &#8220;SweepWidget insert entry&#8221;)<\/li>\n<li>eventLabel \u2013 details, including success or the error reason<\/li>\n<\/ul>\n<h4 id=\"example-datalayer-push\">Example dataLayer Push<\/h4>\n<p>When an entrant completes a Visit a Page entry method, the dataLayer receives:<\/p>\n<pre><code>{\n  event: &quot;sw_sweepwidget_insert_entry&quot;,\n  eventCategory: &quot;Insert entry&quot;,\n  eventAction: &quot;SweepWidget insert entry&quot;,\n  eventLabel: &quot;Insert entry: visit_a_page&quot;\n}<\/code><\/pre>\n<p>The text after &#8220;Insert entry: &#8221; is SweepWidget&#8217;s internal name for the entry method.<\/p>\n<h3 id=\"advanced-use-cases\">Advanced Use Cases<\/h3>\n<h4 id=\"sending-events-to-multiple-platforms\">Sending Events to Multiple Platforms<\/h4>\n<p>With GTM, you can send the same SweepWidget events to several platforms at once:<\/p>\n<ul>\n<li>Google Analytics 4<\/li>\n<li>Meta Pixel<\/li>\n<li>LinkedIn Insight Tag<\/li>\n<li>Hotjar<\/li>\n<li>Any custom tracking solution<\/li>\n<\/ul>\n<p>Create multiple tags that use the same SweepWidget trigger.<\/p>\n<h4 id=\"creating-conversion-triggers\">Creating Conversion Triggers<\/h4>\n<ul>\n<li>For giveaway entries, create a Custom Event trigger for <strong>sw_sweepwidget_enter_giveaway<\/strong> and add the condition eventLabel equals <strong>Enter giveaway success<\/strong>. Without this condition the trigger also fires on blocked entries.<\/li>\n<li>For bonus actions, use <strong>sw_sweepwidget_insert_entry<\/strong> with eventLabel starting with **Insert entry: **.<\/li>\n<li>Use these triggers to fire conversion tags for Google Ads, Facebook Ads, etc.<\/li>\n<\/ul>\n<h3 id=\"troubleshooting\">Troubleshooting<\/h3>\n<h4 id=\"events-not-appearing-in-preview-mode\">Events Not Appearing in Preview Mode?<\/h4>\n<ul>\n<li>Verify Container ID: make sure you entered the correct GTM-XXXXXX ID in SweepWidget and clicked Save Changes.<\/li>\n<li>Check the plan: GTM needs the Business plan or higher.<\/li>\n<li>Check the security setting: if <strong>Remove SweepWidget Google Analytics tracking<\/strong> is ticked on the giveaway&#8217;s Security tab, no SweepWidget events are pushed. Untick it to use GTM.<\/li>\n<li>Preview the hosted page: for embedded giveaways the container runs inside the giveaway iframe. Preview the hosted landing page URL instead of your website page.<\/li>\n<li>Check dataLayer: open the browser console on the hosted landing page, type dataLayer and press Enter to see if events are being pushed.<\/li>\n<\/ul>\n<h4 id=\"tags-not-firing\">Tags Not Firing?<\/h4>\n<ul>\n<li>Check trigger configuration: use <strong>sw_.*<\/strong> with regex matching enabled.<\/li>\n<li>Use the real event names from the table above. Names such as sw_contest_entry or sw_user_login do not exist.<\/li>\n<li>Verify tag setup: ensure your tag has the correct trigger attached.<\/li>\n<li>Publish your container: Preview mode shows what will happen; you need to publish for changes to go live.<\/li>\n<\/ul>\n<h3 id=\"best-practices\">Best Practices<\/h3>\n<ul>\n<li>Use consistent naming for SweepWidget tags and triggers.<\/li>\n<li>Create Data Layer Variables for eventCategory, eventAction and eventLabel.<\/li>\n<li>Always test in Preview mode before publishing.<\/li>\n<li>Use GTM&#8217;s version descriptions to document your changes.<\/li>\n<li>Group related tags, triggers and variables into folders.<\/li>\n<\/ul>\n<h3 id=\"need-help\">Need Help?<\/h3>\n<ul>\n<li>Contact SweepWidget support through the Contact Us page in your dashboard<\/li>\n<li>Visit Google&#8217;s GTM Quick Start Guide for help setting up your container<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Plan required: Business or higher. Google Tag Manager (GTM) lets you manage marketing tags without editing code. When you connect GTM to SweepWidget, your container loads on your giveaway and receives SweepWidget events in the dataLayer. You can then send them to Google Analytics 4, ad platforms and other tools. What You&#8217;ll Track with Google Tag Manager Once integrated, GTM receives events for: Page loads \u2013 every time someone views your giveaway Giveaway entries \u2013 when an entrant submits the entry form (successes and errors) Entry method completions \u2013 each bonus action an entrant completes (successes and errors) Widget interactions \u2013 refreshes and logouts All SweepWidget action events start with sw_sweepwidget_. The page-load event is named SweepWidget. Where the container runs Your GTM container loads inside SweepWidget&#8217;s page: On the hosted landing page (sweepwidget.com\/c\/&#8230;), it runs on that page. On an embedded giveaway, it runs inside the giveaway iframe (also on sweepwidget.com), not on your website&#8217;s page. The GTM container on your own website does not receive these events. If you need giveaway events on your own website&#8217;s page, use the JavaScript callbacks described in the Webhooks guide (Enterprise plan). Setting Up GTM Integration Step 1: Open the Google Tag Manager settings In your SweepWidget dashboard, click API Integrations in the left menu. Then click Google Tag Manager. Step 2: Enter Your Container ID In the Container ID field, enter your GTM Container ID (it starts with &#8220;GTM-&#8220;, like GTM-XXXXXX). Click Save Changes. Important: only enter your Container ID (GTM-XXXXXX), not the entire GTM script. Finding Your GTM Container ID Step 1: Access Google Tag Manager Go to tagmanager.google.com and sign in with your Google account. Step 2: Create or Select a Container If you already have a GTM container, select it from your account list. If not, create a new container: Click Create Account (if you don&#8217;t have one) or Create Container (if adding to an existing account) Enter an account name and select your country Enter a container name (usually your website domain) Select Web as the target platform Click Create and accept the terms Step 3: Copy Your Container ID Your Container ID is shown in the top right corner of the GTM interface (format: GTM-XXXXXX). Copy it and paste it into the SweepWidget integration field. Setting Up Tags in GTM Create Data Layer Variables Create three variables of type Data Layer Variable with these names: eventCategory, eventAction and eventLabel. Create a Trigger for SweepWidget Events In GTM, go to Triggers and click New Select Custom Event as the trigger type In the Event Name field, enter: sw_.* (this matches all SweepWidget action events) Check Use regex matching Name your trigger (e.g., &#8220;SweepWidget \u2013 All Events&#8221;) Click Save To also catch page loads, create a second Custom Event trigger with the Event Name SweepWidget (no regex). Create a Tag (Example: Send to Google Analytics) Go to Tags and click New Select Google Analytics: GA4 Event Enter your GA4 Measurement ID Set Event Name to {{Event}} Add Event Parameters: \u2013 Parameter Name: event_category, Value: {{eventCategory}} \u2013 Parameter Name: event_label, Value: {{eventLabel}} In the Triggering section, select your &#8220;SweepWidget \u2013 All Events&#8221; trigger Name your tag (e.g., &#8220;SweepWidget to GA4&#8221;) Click Save Testing Your GTM Setup Using Preview Mode In GTM, click Preview in the top right corner Enter your giveaway&#8217;s hosted landing page URL (sweepwidget.com\/c\/&#8230;) Click Connect Interact with your giveaway (enter, complete actions) In the Tag Assistant panel, you should see events such as sw_sweepwidget_enter_giveaway and sw_sweepwidget_insert_entry Click each event to check that your tags fire Publishing Your Container Once everything works in Preview mode: Click Submit in the top right Add a version name and description (e.g., &#8220;Added SweepWidget tracking&#8221;) Click Publish Events Pushed to dataLayer Event name When it fires eventCategory eventLabel examples SweepWidget Giveaway page loads Widget Page Load Giveaway title sw_sweepwidget_enter_giveaway Entrant submits the entry form Enter giveaway &#8220;Enter giveaway success&#8221;, &#8220;Enter giveaway error: duplicate IP address&#8221; sw_sweepwidget_insert_entry Entrant completes a bonus entry method Insert entry &#8220;Insert entry: visit_a_page&#8221;, &#8220;Insert entry error: duplicate&#8221; sw_sweepwidget_login_error Entry form blocked by a security check Insert entry &#8220;Insert entry error: VPN detected&#8221; sw_sweepwidget_reload_widget Widget is refreshed Reload widget &#8220;Reload widget success&#8221; sw_sweepwidget_logout Entrant logs out Logout &#8220;Logout success&#8221; sw_sweepwidget_duplicate_wallet_address Crypto wallet address already used Duplicate crypto wallet address sw_sweepwidget_invalid_phone_number Invalid phone number Insert entry &#8220;Insert entry error: invalid phone number&#8221; There is no separate login-success event. dataLayer Structure Each action event includes: event \u2013 event name (sw_ prefix, lower case, underscores) eventCategory \u2013 category of the action (see the table) eventAction \u2013 the original event name (e.g., &#8220;SweepWidget insert entry&#8221;) eventLabel \u2013 details, including success or the error reason Example dataLayer Push When an entrant completes a Visit a Page entry method, the dataLayer receives: { event: &quot;sw_sweepwidget_insert_entry&quot;, eventCategory: &quot;Insert entry&quot;, eventAction: &quot;SweepWidget insert entry&quot;, eventLabel: &quot;Insert entry: visit_a_page&quot; } The text after &#8220;Insert entry: &#8221; is SweepWidget&#8217;s internal name for the entry method. Advanced Use Cases Sending Events to Multiple Platforms With GTM, you can send the same SweepWidget events to several platforms at once: Google Analytics 4 Meta Pixel LinkedIn Insight Tag Hotjar Any custom tracking solution Create multiple tags that use the same SweepWidget trigger. Creating Conversion Triggers For giveaway entries, create a Custom Event trigger for sw_sweepwidget_enter_giveaway and add the condition eventLabel equals Enter giveaway success. Without this condition the trigger also fires on blocked entries. For bonus actions, use sw_sweepwidget_insert_entry with eventLabel starting with **Insert entry: **. Use these triggers to fire conversion tags for Google Ads, Facebook Ads, etc. Troubleshooting Events Not Appearing in Preview Mode? Verify Container ID: make sure you entered the correct GTM-XXXXXX ID in SweepWidget and clicked Save Changes. Check the plan: GTM needs the Business plan or higher. Check the security setting: if Remove SweepWidget Google Analytics tracking is ticked on the giveaway&#8217;s Security tab, no SweepWidget events are pushed. Untick it to use GTM. Preview the hosted page: for embedded giveaways the container runs inside the giveaway iframe. Preview the hosted landing page URL<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[161,59],"tags":[],"class_list":["post-7009","post","type-post","status-publish","format-standard","hentry","category-analytics","category-integrations"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Google Tag Manager Integration<\/title>\n<meta name=\"description\" content=\"By integrating GTM with your SweepWidget giveaways, you can track user interactions, connect multiple analytics platforms, and customize your tracking setup with precision.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Tag Manager Integration\" \/>\n<meta property=\"og:description\" content=\"By integrating GTM with your SweepWidget giveaways, you can track user interactions, connect multiple analytics platforms, and customize your tracking setup with precision.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration\" \/>\n<meta property=\"og:site_name\" content=\"SweepWidget Help Docs\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-15T18:34:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-19T10:28:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/tracking-pixel-1-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1400\" \/>\n\t<meta property=\"og:image:height\" content=\"794\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"SweepWidget\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"SweepWidget\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration\"},\"author\":{\"name\":\"SweepWidget\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\"},\"headline\":\"Google Tag Manager Integration\",\"datePublished\":\"2025-11-15T18:34:23+00:00\",\"dateModified\":\"2026-11-19T10:28:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration\"},\"wordCount\":1185,\"image\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/tracking-pixel-1-2-1024x581.png\",\"articleSection\":[\"Analytics (Tracking Pixel)\",\"Integrations\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration\",\"name\":\"Google Tag Manager Integration\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/tracking-pixel-1-2-1024x581.png\",\"datePublished\":\"2025-11-15T18:34:23+00:00\",\"dateModified\":\"2026-11-19T10:28:16+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\"},\"description\":\"By integrating GTM with your SweepWidget giveaways, you can track user interactions, connect multiple analytics platforms, and customize your tracking setup with precision.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration#primaryimage\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/tracking-pixel-1-2.png\",\"contentUrl\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/tracking-pixel-1-2.png\",\"width\":1400,\"height\":794},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/google-tag-manager-integration#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Tag Manager Integration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#website\",\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/\",\"name\":\"SweepWidget Help Docs\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/#\\\/schema\\\/person\\\/4cca2bc9c600116750eca1bfff6648e0\",\"name\":\"SweepWidget\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?s=96&d=mm&r=g\",\"caption\":\"SweepWidget\"},\"sameAs\":[\"https:\\\/\\\/sweepwidget.com\\\/docs\"],\"url\":\"https:\\\/\\\/sweepwidget.com\\\/docs\\\/author\\\/sweepwidget\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google Tag Manager Integration","description":"By integrating GTM with your SweepWidget giveaways, you can track user interactions, connect multiple analytics platforms, and customize your tracking setup with precision.","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:\/\/sweepwidget.com\/docs\/google-tag-manager-integration","og_locale":"en_US","og_type":"article","og_title":"Google Tag Manager Integration","og_description":"By integrating GTM with your SweepWidget giveaways, you can track user interactions, connect multiple analytics platforms, and customize your tracking setup with precision.","og_url":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration","og_site_name":"SweepWidget Help Docs","article_published_time":"2025-11-15T18:34:23+00:00","article_modified_time":"2026-11-19T10:28:16+00:00","og_image":[{"width":1400,"height":794,"url":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/tracking-pixel-1-2.png","type":"image\/png"}],"author":"SweepWidget","twitter_card":"summary_large_image","twitter_misc":{"Written by":"SweepWidget","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration#article","isPartOf":{"@id":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration"},"author":{"name":"SweepWidget","@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0"},"headline":"Google Tag Manager Integration","datePublished":"2025-11-15T18:34:23+00:00","dateModified":"2026-11-19T10:28:16+00:00","mainEntityOfPage":{"@id":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration"},"wordCount":1185,"image":{"@id":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration#primaryimage"},"thumbnailUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/tracking-pixel-1-2-1024x581.png","articleSection":["Analytics (Tracking Pixel)","Integrations"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration","url":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration","name":"Google Tag Manager Integration","isPartOf":{"@id":"https:\/\/sweepwidget.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration#primaryimage"},"image":{"@id":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration#primaryimage"},"thumbnailUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/tracking-pixel-1-2-1024x581.png","datePublished":"2025-11-15T18:34:23+00:00","dateModified":"2026-11-19T10:28:16+00:00","author":{"@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0"},"description":"By integrating GTM with your SweepWidget giveaways, you can track user interactions, connect multiple analytics platforms, and customize your tracking setup with precision.","breadcrumb":{"@id":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration#primaryimage","url":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/tracking-pixel-1-2.png","contentUrl":"https:\/\/sweepwidget.com\/docs\/wp-content\/uploads\/2025\/11\/tracking-pixel-1-2.png","width":1400,"height":794},{"@type":"BreadcrumbList","@id":"https:\/\/sweepwidget.com\/docs\/google-tag-manager-integration#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sweepwidget.com\/docs\/"},{"@type":"ListItem","position":2,"name":"Google Tag Manager Integration"}]},{"@type":"WebSite","@id":"https:\/\/sweepwidget.com\/docs\/#website","url":"https:\/\/sweepwidget.com\/docs\/","name":"SweepWidget Help Docs","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sweepwidget.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sweepwidget.com\/docs\/#\/schema\/person\/4cca2bc9c600116750eca1bfff6648e0","name":"SweepWidget","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91c2f57672b440838a4205ff021607b3d77efd9ac80a80984ce065da067e51e?s=96&d=mm&r=g","caption":"SweepWidget"},"sameAs":["https:\/\/sweepwidget.com\/docs"],"url":"https:\/\/sweepwidget.com\/docs\/author\/sweepwidget"}]}},"_links":{"self":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/7009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/comments?post=7009"}],"version-history":[{"count":4,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/7009\/revisions"}],"predecessor-version":[{"id":7791,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/posts\/7009\/revisions\/7791"}],"wp:attachment":[{"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/media?parent=7009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/categories?post=7009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sweepwidget.com\/docs\/wp-json\/wp\/v2\/tags?post=7009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}