Popup-Maker icon indicating copy to clipboard operation
Popup-Maker copied to clipboard

Add support for Google Analytics 4 (GA4)

Open marklchaves opened this issue 2 years ago • 1 comments

Describe the feature request

Google released GA4 (the latest version of Google Analytics) in October 2020. Recently, Google announced it will sunset its Universal Analytics (UA) data processing on July 1, 2023.

Right now, Popup Maker's Popup Analytics extension only supports UA.

popup-maker-ga-ua-tracking-id-setting

Use case

After July 1, 2023, Google Analytics Universal Analytics properties won't process new data. I.e., you can't use UA after July 1, 2023, to record new website stats. So, you won't see any new popup analytics after July 1, 2023.

Test case

  1. Add your GA4 tracking ID (e.g., GA-123ABC789Z) to Popup Maker's Popup Analytics settings.
  2. Use an incognito browser to bring up a post or page on your site that has popups that are using Popup Analytics.
  3. Log into your GA4 dashboard (analytics.google.com).
  4. Launch your popup(s) on your post or page.
  5. View the GA4 Realtime report.
  6. View the GA4 Events report.
  7. No popup events should show in the GA4 reports.

Do the same test using your original UA tracking ID in the Popup Analytics settings and confirm you are still getting popup events.

References

  1. Popup Maker Analytics code https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide
  2. Compared with GA4 measurement API https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events?client_type=gtag. There are big differences.

Example screenshots (if any)

Recent UA Sunset Warning on UA Properties

google-analytics-ua-sunset-warning

GA4 release timeline from an article I wrote in 2020

ga4-release-date

GA4 event model difference from an article I wrote in 2020

ga4-data-model-difference

marklchaves avatar Oct 16 '22 01:10 marklchaves

I've posted the same issue to the Analytics extension private repo. I'm just keeping this original for visibility.

marklchaves avatar Jan 17 '23 03:01 marklchaves

Support was added to the Analytics extension.

marklchaves avatar Jun 19 '24 05:06 marklchaves