{"id":42117,"date":"2025-07-12T10:39:05","date_gmt":"2025-07-12T14:39:05","guid":{"rendered":"https:\/\/www.commoncause.org\/?page_id=42117"},"modified":"2025-08-05T20:08:29","modified_gmt":"2025-08-06T00:08:29","slug":"donate-actblue-tracking-test","status":"publish","type":"page","link":"https:\/\/www.commoncause.org\/vi\/donate-actblue-tracking-test\/","title":{"rendered":"Quy\u00ean g\u00f3p \u2013 Ki\u1ec3m tra theo d\u00f5i ActBlue"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":6,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":""},"class_list":["post-42117","page","type-page","status-publish","hentry"],"acf":{"header":{"component_page_header":{"header_type":"default","title":"Quy\u00ean g\u00f3p cho m\u1ee5c \u0111\u00edch chung","lead":"","image":"","subnavigation":false}},"sidebar":{"helper_enable_sidebar":false,"helper_media_contact":{"heading":"","manually_enter_person":false,"person":"","name":"","role":"","phone":"","email":""},"helper_links_downloads":{"heading":"","links":null}},"page_layout":[{"acf_fc_layout":"layout_wysiwyg","_acfe_flexible_toggle":"","component_wysiwyg":{"content":"Common Cause l\u00e0 t\u1ed5 ch\u1ee9c \u0111i \u0111\u1ea7u trong c\u00e1c cu\u1ed9c \u0111\u1ea5u tranh quan tr\u1ecdng \u1edf c\u1ea5p \u0111\u1ecba ph\u01b0\u01a1ng, ti\u1ec3u bang v\u00e0 qu\u1ed1c gia. S\u1ef1 \u1ee7ng h\u1ed9 c\u1ee7a b\u1ea1n th\u00fac \u0111\u1ea9y h\u00e0nh \u0111\u1ed9ng c\u01a1 s\u1edf, ph\u00e1p l\u00fd v\u00e0 l\u1eadp ph\u00e1p \u0111\u1ec3 ch\u1ed1ng l\u1ea1i c\u00e1c l\u1ee3i \u00edch \u0111\u1eb7c bi\u1ec7t, bu\u1ed9c c\u00e1c quan ch\u1ee9c \u0111\u01b0\u1ee3c b\u1ea7u ph\u1ea3i ch\u1ecbu tr\u00e1ch nhi\u1ec7m v\u00e0 x\u00e2y d\u1ef1ng n\u1ec1n d\u00e2n ch\u1ee7 m\u00e0 t\u1ea5t c\u1ea3 ng\u01b0\u1eddi M\u1ef9 x\u1ee9ng \u0111\u00e1ng \u0111\u01b0\u1ee3c h\u01b0\u1edfng."}},{"acf_fc_layout":"layout_basic_html","_acfe_flexible_toggle":"","component_basic_html":{"heading":"Test Donation Form July 2025","code":"<!-- The script tags need to be included once per page where embeds appear. Putting it in the <head> tag will be fastest. -->\r\n<script>function abConfigure(c) {window.actblueConfig = c}<\/script>\r\n<script src=\"https:\/\/secure.actblue.com\/cf\/assets\/actblue.js\" data-ab-source=\"snippet-20250709\"><\/script>\r\n<script>\r\n  actblue.addEventListener('contribute', function (contribution) {\r\n    window.dataLayer = window.dataLayer || [];\r\n    dataLayer.push({\r\n      event: 'transaction',\r\n      transaction_id: contribution.order_number,\r\n      currency: 'USD',\r\n      value: contribution.amount \/ 100, \/\/ convert from cents\r\n      ecommerce: {\r\n        transaction_id: contribution.order_number,\r\n        currency: 'USD',\r\n        value: contribution.amount \/ 100,\r\n        items: [{\r\n          item_name: contribution.name,\r\n          item_category: contribution.recurring ? 'recurring' : 'one-time',\r\n          quantity: 1,\r\n          price: contribution.amount \/ 100\r\n        }]\r\n      }\r\n    });\r\n  });\r\n<\/script>\r\n<!-- Google Tag Manager -->\r\n<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\r\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\r\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\r\n'https:\/\/www.googletagmanager.com\/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\r\n})(window,document,'script','dataLayer','GTM-PH9XXW5X');<\/script>\r\n<!-- End Google Tag Manager -->\r\n\r\n<!-- This div should be included in the page where you want the form to appear. -->\r\n<div data-ab-form\r\n data-ab-token=\"GkvezGNU1jf6BKi9orBCwReb\"\r\n data-ab-height=\"auto\"\r\n>\r\n  <!-- Fall-back content (in case the embeddable doesn't load) -->\r\n  <a href=\"https:\/\/secure.actblue.com\/donate\/july2025test-embed\">Donate<\/a>\r\n \r\n<\/div>","width":"medium"}},{"acf_fc_layout":"layout_wysiwyg","_acfe_flexible_toggle":"","component_wysiwyg":{"content":"<h3>This is a test donation form for tracking to Google Analytics.<\/h3>"}},{"acf_fc_layout":"layout_basic_html","_acfe_flexible_toggle":"","component_basic_html":{"heading":"","code":"<script>\r\n  (function () {\r\n    const tokenToNameMap = {\r\n      \"4PqTukD9cSQetETkeZHKj1KB\": \"common-cause-web\",\r\n      \"GkvezGNU1jf6BKi9orBCwReb\": \"july2025test\",\r\n      \"q6SBvycRr4r3QeFmNbSBiMbc\": \"common-cause-redirect\",\r\n      \"vPKFYFfYpfD4yCa3sAVaP8yy\": \"common-cause-web-monthly\"\r\n    };\r\n\r\n    const observer = new MutationObserver(function (mutations, obs) {\r\n      const iframe = document.querySelector('iframe[src*=\"secure.actblue.com\/cf\/embed\/form\"]');\r\n      if (!iframe) return;\r\n\r\n      const src = iframe.getAttribute(\"src\") || \"\";\r\n      const match = src.match(\/form\\\/([\\w\\d]+)\/);\r\n      const token = match ? match[1] : null;\r\n      if (!token) return;\r\n\r\n      const name = tokenToNameMap[token] || \"Unknown ActBlue Form\";\r\n\r\n      window.dataLayer = window.dataLayer || [];\r\n      window.dataLayer.push({\r\n        event: \"view_item\",\r\n        ecommerce: {\r\n          items: [{\r\n            item_id: token,\r\n            item_name: name,\r\n            item_category: \"donation\"\r\n          }]\r\n        }\r\n      });\r\n\r\n      \/\/ Stop observing after successful match\r\n      obs.disconnect();\r\n    });\r\n\r\n    \/\/ Start observing changes to the DOM\r\n    observer.observe(document.body, {\r\n      childList: true,\r\n      subtree: true\r\n    });\r\n  })();\r\n<\/script>\r\n\r\n<script>\r\n\/\/ Helper: set cookie with 3-hour expiry, added August 5th\r\nfunction setCookie(name, value) {\r\n  const expires = new Date(Date.now() + 3 * 60 * 60 * 1000).toUTCString();\r\n  document.cookie = name + '=' + encodeURIComponent(value) + '; path=\/; expires=' + expires;\r\n}\r\n\r\ndocument.addEventListener('DOMContentLoaded', function () {\r\n  \/\/ Selects the new donation button by robust selectors (advance__button class + Donate text)\r\n  const donateBtn = document.querySelector('button.advance__button');\r\n  if (donateBtn) {\r\n    donateBtn.addEventListener('click', function () {\r\n      \/\/ Find the inner text where amount is present\r\n      const btnText = donateBtn.textContent.trim();\r\n      const match = btnText.match(\/\\$([\\d.]+)\/);\r\n      const amount = match ? parseFloat(match[1]) : 1.75;\r\n\r\n      \/\/ Extract item name from URL (last path segment after \/donate\/)\r\n      let itemName = window.location.pathname.split('\/').pop() || 'donation';\r\n\r\n      \/\/ Set cookies\r\n      setCookie('donation_amount', amount);\r\n      setCookie('item_name', itemName);\r\n    });\r\n  }\r\n});\r\n<\/script>\r\n\r\n","width":"narrow"}}]},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.6 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Donate - ActBlue Tracking Test - Common Cause<\/title>\n<meta name=\"description\" content=\"Support Common Cause&#039;s mission to hold power accountable. Discover different ways to donate and make a contribution today.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.commoncause.org\/vi\/donate-actblue-tracking-test\/\" \/>\n<meta property=\"og:locale\" content=\"vi_VN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Donate - ActBlue Tracking Test\" \/>\n<meta property=\"og:description\" content=\"Support Common Cause&#039;s mission to hold power accountable. Discover different ways to donate and make a contribution today.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.commoncause.org\/vi\/donate-actblue-tracking-test\/\" \/>\n<meta property=\"og:site_name\" content=\"Common Cause\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CommonCause\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-06T00:08:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.commoncause.org\/wp-content\/uploads\/2024\/08\/JusticeDemocracy_Main.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1680\" \/>\n\t<meta property=\"og:image:height\" content=\"1120\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@CommonCause\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.commoncause.org\/donate-actblue-tracking-test\/\",\"url\":\"https:\/\/www.commoncause.org\/donate-actblue-tracking-test\/\",\"name\":\"Donate - ActBlue Tracking Test - Common Cause\",\"isPartOf\":{\"@id\":\"https:\/\/www.commoncause.org\/#website\"},\"datePublished\":\"2025-07-12T14:39:05+00:00\",\"dateModified\":\"2025-08-06T00:08:29+00:00\",\"description\":\"Support Common Cause's mission to hold power accountable. Discover different ways to donate and make a contribution today.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.commoncause.org\/donate-actblue-tracking-test\/#breadcrumb\"},\"inLanguage\":\"vi\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.commoncause.org\/donate-actblue-tracking-test\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.commoncause.org\/donate-actblue-tracking-test\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.commoncause.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Donate &#8211; ActBlue Tracking Test\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.commoncause.org\/#website\",\"url\":\"https:\/\/www.commoncause.org\/\",\"name\":\"Common Cause\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.commoncause.org\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.commoncause.org\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"vi\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.commoncause.org\/#organization\",\"name\":\"Common Cause\",\"url\":\"https:\/\/www.commoncause.org\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"vi\",\"@id\":\"https:\/\/www.commoncause.org\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.commoncause.org\/wp-content\/uploads\/2024\/05\/Common-Cause-Logo.png\",\"contentUrl\":\"https:\/\/www.commoncause.org\/wp-content\/uploads\/2024\/05\/Common-Cause-Logo.png\",\"width\":2066,\"height\":331,\"caption\":\"Common Cause\"},\"image\":{\"@id\":\"https:\/\/www.commoncause.org\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/CommonCause\",\"https:\/\/x.com\/CommonCause\",\"https:\/\/www.instagram.com\/ourcommoncause\/\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Donate - ActBlue Tracking Test - Common Cause","description":"H\u1ed7 tr\u1ee3 s\u1ee9 m\u1ec7nh c\u1ee7a Common Cause nh\u1eb1m \u0111\u1ea3m b\u1ea3o quy\u1ec1n l\u1ef1c ph\u1ea3i ch\u1ecbu tr\u00e1ch nhi\u1ec7m. Kh\u00e1m ph\u00e1 nhi\u1ec1u c\u00e1ch kh\u00e1c nhau \u0111\u1ec3 quy\u00ean g\u00f3p v\u00e0 \u0111\u00f3ng g\u00f3p ngay h\u00f4m nay.","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:\/\/www.commoncause.org\/vi\/donate-actblue-tracking-test\/","og_locale":"vi_VN","og_type":"article","og_title":"Donate - ActBlue Tracking Test","og_description":"Support Common Cause's mission to hold power accountable. Discover different ways to donate and make a contribution today.","og_url":"https:\/\/www.commoncause.org\/vi\/donate-actblue-tracking-test\/","og_site_name":"Common Cause","article_publisher":"https:\/\/www.facebook.com\/CommonCause","article_modified_time":"2025-08-06T00:08:29+00:00","og_image":[{"width":1680,"height":1120,"url":"https:\/\/www.commoncause.org\/wp-content\/uploads\/2024\/08\/JusticeDemocracy_Main.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@CommonCause","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.commoncause.org\/donate-actblue-tracking-test\/","url":"https:\/\/www.commoncause.org\/donate-actblue-tracking-test\/","name":"Donate - ActBlue Tracking Test - Common Cause","isPartOf":{"@id":"https:\/\/www.commoncause.org\/#website"},"datePublished":"2025-07-12T14:39:05+00:00","dateModified":"2025-08-06T00:08:29+00:00","description":"H\u1ed7 tr\u1ee3 s\u1ee9 m\u1ec7nh c\u1ee7a Common Cause nh\u1eb1m \u0111\u1ea3m b\u1ea3o quy\u1ec1n l\u1ef1c ph\u1ea3i ch\u1ecbu tr\u00e1ch nhi\u1ec7m. Kh\u00e1m ph\u00e1 nhi\u1ec1u c\u00e1ch kh\u00e1c nhau \u0111\u1ec3 quy\u00ean g\u00f3p v\u00e0 \u0111\u00f3ng g\u00f3p ngay h\u00f4m nay.","breadcrumb":{"@id":"https:\/\/www.commoncause.org\/donate-actblue-tracking-test\/#breadcrumb"},"inLanguage":"vi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.commoncause.org\/donate-actblue-tracking-test\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.commoncause.org\/donate-actblue-tracking-test\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.commoncause.org\/"},{"@type":"ListItem","position":2,"name":"Donate &#8211; ActBlue Tracking Test"}]},{"@type":"WebSite","@id":"https:\/\/www.commoncause.org\/#website","url":"https:\/\/www.commoncause.org\/","name":"Nguy\u00ean nh\u00e2n ph\u1ed5 bi\u1ebfn","description":"","publisher":{"@id":"https:\/\/www.commoncause.org\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.commoncause.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"vi"},{"@type":"Organization","@id":"https:\/\/www.commoncause.org\/#organization","name":"Nguy\u00ean nh\u00e2n ph\u1ed5 bi\u1ebfn","url":"https:\/\/www.commoncause.org\/","logo":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/www.commoncause.org\/#\/schema\/logo\/image\/","url":"https:\/\/www.commoncause.org\/wp-content\/uploads\/2024\/05\/Common-Cause-Logo.png","contentUrl":"https:\/\/www.commoncause.org\/wp-content\/uploads\/2024\/05\/Common-Cause-Logo.png","width":2066,"height":331,"caption":"Common Cause"},"image":{"@id":"https:\/\/www.commoncause.org\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/CommonCause","https:\/\/x.com\/CommonCause","https:\/\/www.instagram.com\/ourcommoncause\/"]}]}},"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Common Cause","distributor_original_site_url":"https:\/\/www.commoncause.org\/vi","push-errors":false,"_links":{"self":[{"href":"https:\/\/www.commoncause.org\/vi\/wp-json\/wp\/v2\/pages\/42117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.commoncause.org\/vi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.commoncause.org\/vi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.commoncause.org\/vi\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.commoncause.org\/vi\/wp-json\/wp\/v2\/comments?post=42117"}],"version-history":[{"count":36,"href":"https:\/\/www.commoncause.org\/vi\/wp-json\/wp\/v2\/pages\/42117\/revisions"}],"predecessor-version":[{"id":44376,"href":"https:\/\/www.commoncause.org\/vi\/wp-json\/wp\/v2\/pages\/42117\/revisions\/44376"}],"wp:attachment":[{"href":"https:\/\/www.commoncause.org\/vi\/wp-json\/wp\/v2\/media?parent=42117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}