pressidium / pressidium-cookie-consent

🍪 Lightweight, user-friendly and customizable cookie consent banner to help you comply with the EU GDPR cookie law and CCPA regulations.
https://wordpress.org/plugins/pressidium-cookie-consent/
GNU General Public License v2.0
45 stars 2 forks source link

Missing Google Ads data in Google Analytics 4 #87

Open Earntor opened 1 month ago

Earntor commented 1 month ago

Hello,

I have noticed that there is a big discrepancy between our google ads clicks and the CPC data in google analytics 4. I know there are many factors that could influence this, such as ad blockers, cookie banner, etc. But in our case this difference is 50%. In other words, we only see 50% of the total google ads clicks in our GA4. Is it possible that our cookie banner (code) or GTM code is not in the right order? Website: houtvanuwvloer.nl

This is the CPC in GA4: image

And this is the Google Ads clicks: image

Or is there any additional information you need from me?

Thanks in advance!

over-engineer commented 1 week ago

Hey, @Earntor!

Have you enabled the Google Consent Mode integration?

If you haven’t, follow these steps to enable it:

  1. Log in to your WordPress admin dashboard (wp-admin)
  2. Navigate to “Cookie Consent”
  3. Select the “Consent Mode” tab
  4. Switch on “Google Consent Mode v2 (GCM)”

Integration options include Google tag (gtag.js) or Google Tag Manager (GTM).

Additionally, you could try enabling the “URL passthrough” option — an optional feature, which passes information in URLs, and can be used to send event and session-based analytics across pages without cookies.

You can learn more about URL passthrough at https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced#passthroughs.