Skip to content

fix: goal manager bypasses event transformer#345

Merged
joker23 merged 1 commit into
mainfrom
skz/sdk-2417/goal-manager-url-transformer
May 29, 2026
Merged

fix: goal manager bypasses event transformer#345
joker23 merged 1 commit into
mainfrom
skz/sdk-2417/goal-manager-url-transformer

Conversation

@joker23
Copy link
Copy Markdown
Contributor

@joker23 joker23 commented May 28, 2026

Note

Low Risk
Small behavioral fix aligning goal URLs with other events; covered by new tests with no auth or data-model changes.

Overview
Goal conversion events (pageview, click_pageview, etc.) now take their url from platform.getCurrentUrl() instead of window.location.href, so the optional eventUrlTransformer applies to goal traffic the same way it already does for track() and other SDK events.

GoalManager accepts a platform argument; initialize passes the existing browserPlatform instance. New unit tests cover transformed and untransformed goal event URLs.

Reviewed by Cursor Bugbot for commit aba6fd2. Bugbot is set up for automated code reviews on this repo. Configure here.

@joker23 joker23 marked this pull request as ready for review May 28, 2026 17:46
@joker23 joker23 requested a review from a team as a code owner May 28, 2026 17:46
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@joker23 joker23 merged commit a1ef119 into main May 29, 2026
12 checks passed
@joker23 joker23 deleted the skz/sdk-2417/goal-manager-url-transformer branch May 29, 2026 15:44
joker23 pushed a commit that referenced this pull request May 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[3.9.3](3.9.2...3.9.3)
(2026-05-29)


### Bug Fixes

* goal manager bypasses event transformer
([#345](#345))
([a1ef119](a1ef119))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Release-metadata-only PR with no runtime code changes; the noted
analytics URL fix is already merged separately.
> 
> **Overview**
> **Release 3.9.3** — automated version bump only: `package.json` and
`.release-please-manifest.json` move from **3.9.2** to **3.9.3**, and
**CHANGELOG.md** gains the **3.9.3** section dated 2026-05-29.
> 
> The changelog entry records the shipped fix from
[#345](#345): **goal
manager** events (pageview / click_pageview) now respect
**`eventUrlTransformer`**, which had previously been skipped for those
paths while `track()` already applied it. **No SDK source files appear
in this diff** — implementation landed in an earlier commit
([a1ef119](a1ef119)).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
d7fa5a3. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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