{"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\/fr\/donate-actblue-tracking-test\/","title":{"rendered":"Faire un don \u2013 Test de suivi 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":"Faire un don \u00e0 Common Cause","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 est un leader dans les combats qui comptent au niveau local, \u00e9tatique et national. Votre soutien permet de mener des actions locales, juridiques et l\u00e9gislatives pour lutter contre les int\u00e9r\u00eats particuliers, demander des comptes aux \u00e9lus et construire la d\u00e9mocratie que tous les Am\u00e9ricains m\u00e9ritent."}},{"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\/fr\/donate-actblue-tracking-test\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\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\/fr\/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\":\"fr-FR\",\"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\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.commoncause.org\/#organization\",\"name\":\"Common Cause\",\"url\":\"https:\/\/www.commoncause.org\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@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":"Soutenez la mission de Common Cause qui consiste \u00e0 responsabiliser les pouvoirs publics. D\u00e9couvrez diff\u00e9rentes fa\u00e7ons de faire un don et de contribuer d\u00e8s aujourd&#039;hui.","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\/fr\/donate-actblue-tracking-test\/","og_locale":"fr_FR","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\/fr\/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":"Soutenez la mission de Common Cause qui consiste \u00e0 responsabiliser les pouvoirs publics. D\u00e9couvrez diff\u00e9rentes fa\u00e7ons de faire un don et de contribuer d\u00e8s aujourd&#039;hui.","breadcrumb":{"@id":"https:\/\/www.commoncause.org\/donate-actblue-tracking-test\/#breadcrumb"},"inLanguage":"fr-FR","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":"Cause commune","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":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.commoncause.org\/#organization","name":"Cause commune","url":"https:\/\/www.commoncause.org\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@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\/fr","push-errors":false,"_links":{"self":[{"href":"https:\/\/www.commoncause.org\/fr\/wp-json\/wp\/v2\/pages\/42117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.commoncause.org\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.commoncause.org\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.commoncause.org\/fr\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.commoncause.org\/fr\/wp-json\/wp\/v2\/comments?post=42117"}],"version-history":[{"count":36,"href":"https:\/\/www.commoncause.org\/fr\/wp-json\/wp\/v2\/pages\/42117\/revisions"}],"predecessor-version":[{"id":44376,"href":"https:\/\/www.commoncause.org\/fr\/wp-json\/wp\/v2\/pages\/42117\/revisions\/44376"}],"wp:attachment":[{"href":"https:\/\/www.commoncause.org\/fr\/wp-json\/wp\/v2\/media?parent=42117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}