Skip to content

add properties to GA4 destination#1406

Open
that70schris wants to merge 1 commit into
newjitsufrom
feat/ga4-properties
Open

add properties to GA4 destination#1406
that70schris wants to merge 1 commit into
newjitsufrom
feat/ga4-properties

Conversation

@that70schris

Copy link
Copy Markdown
Contributor

No description provided.

jitsu-code-review[bot]
jitsu-code-review Bot previously approved these changes Jul 15, 2026

@jitsu-code-review jitsu-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reviewed GA4 destination changes in libs/destination-functions/src/functions/ga4-destination.ts plus the new tests.

Found one correctness concern to double-check:

  • ip_override is now forwarded from context.ip without validation/sanitization; this can pass invalid/non-IP values through to GA4 and may degrade geolocation quality.

The rest of the context mapping additions (device/user agent/location/consent) and associated tests look good overall.

Comment thread libs/destination-functions/src/functions/ga4-destination.ts
jitsu-code-review[bot]
jitsu-code-review Bot previously approved these changes Jul 15, 2026

@jitsu-code-review jitsu-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reviewed the GA4 request-context additions in this PR (device/user_agent, location/IP, consent mapping, and related tests). I found one actionable correctness issue around ip_override parsing; details are in the inline comment.

Comment thread libs/destination-functions/src/functions/ga4-destination.ts
@that70schris
that70schris force-pushed the feat/ga4-properties branch from 775bcdc to 5386713 Compare July 16, 2026 14:34
Comment thread docs/superpowers/plans/2026-07-14-ga4-device-user-agent.md Outdated

@jitsu-code-review jitsu-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reviewed GA4 destination changes in plus new coverage in .

I focused on correctness, security-relevant data handling, and user-visible regressions in the new request fields (device, user agent, location, consent, and IP override). I did not find additional actionable issues beyond previously resolved review threads. The added tests exercise the new mapping paths and edge-case omissions well.

@jitsu-code-review jitsu-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reviewed GA4 destination changes in libs/destination-functions/src/functions/ga4-destination.ts plus new coverage in libs/destination-functions/tests/ga4-destination.test.ts.

I focused on correctness, security-relevant data handling, and user-visible regressions in the new request fields (device, user agent, location, consent, and IP override). I did not find additional actionable issues beyond previously resolved review threads. The added tests exercise the new mapping paths and edge-case omissions well.

@that70schris
that70schris force-pushed the feat/ga4-properties branch from 58da107 to e3e0982 Compare July 16, 2026 20:34

@jitsu-code-review jitsu-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reviewed the GA4 destination changes and associated tests, focusing on correctness, runtime behavior, and potential regressions in request payload construction.\n\nI found one actionable issue around handling that can send an invalid value when contains a comma-separated chain with spaces; details are in the inline comment.

@jitsu-code-review jitsu-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reviewed the GA4 destination changes and associated tests, focusing on correctness, runtime behavior, and potential regressions in request payload construction.

I found one actionable issue around ip_override handling that can send an invalid value when context.ip contains a comma-separated chain with spaces; details are in the inline comment.

Comment thread libs/destination-functions/src/functions/ga4-destination.ts
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.

2 participants