You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spoke with @tldrawdaniel and we want to distinguish between watermark
clicks on dotcom and from sdk / our other properties.
This:
* Changes the `utm_source` to sdk for watermark links.
* We then override it to `dotcom` for dotcom.
* I decided to partially revert the (unreleased) changes from tldraw#7041 (the
`click-watermark` event) since the approach in this PR felt better for
the current requirements.
### Change type
- [x] `other`
### Release notes
- Remove the `click-watermark` event from the sdk.
### API Changes
- Remove the `click-watermark` event from the sdk.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Switch watermark URLs to use utm_source=sdk (overridden to dotcom on
dotcom) and remove the click-watermark event across SDK/UI; add
dotcom-side tracking via runtime override.
>
> - **Editor/SDK**:
> - Change watermark URLs to use `utm_source=sdk` in
`packages/editor/src/lib/license/Watermark.tsx`.
> - Remove `editor.emit('click-watermark')` calls and the
`'click-watermark'` event from `TLEventMap` and API reports.
> - **UI**:
> - Remove `'click-watermark'` from `TLUiEventMap` and related
forwarding in `packages/tldraw/src/lib/Tldraw.tsx` and
`ui/context/events.tsx`.
> - **Dotcom App**:
> - Add `WatermarkOverride` in `TlaRootProviders.tsx` to rewrite
watermark links (`utm_source=sdk` → `utm_source=dotcom`) and call
`trackEvent('click-watermark', { url })`.
> - Drop `'click-watermark'` from app UI events and import `trackEvent`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4ebf717. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments