Skip to content

Fix the gtag function. - #164

Open
jgindin wants to merge 2 commits into
mainfrom
fix-analytics
Open

Fix the gtag function.#164
jgindin wants to merge 2 commits into
mainfrom
fix-analytics

Conversation

@jgindin

@jgindin jgindin commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Description

Previously, we were pushing the arguments as an array, but that's not correct and prevents the data from being sent.

Pre-launch Checklist

  • I signed the [CLA].
  • I read the [Contributors Guide].
  • I read the [Style Guide].
  • I have added updates to the [CHANGELOG].
  • I updated/added relevant documentation.
  • My code changes (if any) have tests.
  • If my branch is on fork, I have verified that scripts/e2e_test.sh passes.

Previously, we were pushing the arguments as an array, but that's not
correct and prevents the data from being sent.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Ga4UsageTrackingService to push the arguments object directly to windowObj.dataLayer instead of using rest parameters. The review feedback suggests maintaining the rest parameters in the function signature for consistency with the Window interface declaration, and requests adding unit tests to verify this change in accordance with the repository style guide.

Comment thread shell/src/app/usage-tracking/ga4-usage-tracking.service.ts
Comment thread shell/src/app/usage-tracking/ga4-usage-tracking.service.ts
@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

⚡ A2UI Composer PR Preview

Your automated preview is successfully live (commit a64e2cc):
👉 Launch PR Preview

Note: This environment will be wiped automatically when the PR is merged or closed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant