Skip to content

website: Send feedback events with GA4 - #4457

Open
immanuwell wants to merge 1 commit into
kubeflow:masterfrom
immanuwell:fix/ga4-feedback-events
Open

immanuwell wants to merge 1 commit into
kubeflow:masterfrom
immanuwell:fix/ga4-feedback-events

Conversation

@immanuwell

@immanuwell immanuwell commented Aug 15, 2026

Copy link
Copy Markdown
Member

Description of Changes

The feedback widget still calls the old ga() API, while production only loads GA4's gtag(). Right now its a silent no-op

This sends a page_helpful event through gtag() and keeps the existing Yes and No values and UI behavior

Repro:

  1. Open any docs page and click Yes or No.
  2. Check dataLayer. No feedback event is added before this fix.
  3. With this fix, one page_helpful event is added with the page path and value 1 or 0.

Tests: Hugo 0.124.1 production build, browser checks for both buttons and the no analytics fallback, Netlify link check with 2421 passes and 1 tolerated external timeout.

Related Issues

Related: #3629

Checklist

  • Signed off the commit
  • Followed the contributing guide
  • Small behavior-only change, no screenshot needed

Signed-off-by: immanuwell <pchpr.00@list.ru>
@google-oss-prow google-oss-prow Bot added the area/website AREA: Website Styles/Hosting/Serving label Aug 15, 2026
@google-oss-prow
google-oss-prow Bot requested a review from chasecadet August 15, 2026 13:39
@google-oss-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign varodrig for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow
google-oss-prow Bot requested a review from varodrig August 15, 2026 13:39

@jaiakash jaiakash left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @immanuwell Should this work for deployed preview?
I tried here https://deploy-preview-4457--competent-brattain-de2d6d.netlify.app/ but still there no event registered. Can you please confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/website AREA: Website Styles/Hosting/Serving size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants