feat: Add captureStateless function
Changes
Potential solution for second part of https://github.com/PostHog/posthog-js/issues/1172
...
Checklist
- [ ] Tests for new code (see advice on the tests we use)
- [ ] Accounted for the impact of any changes across different browsers
- [ ] Accounted for backwards compatibility of any changes (no breaking changes in posthog-js!)
The latest updates on your projects. Learn more about Vercel for Git âī¸
| Name | Status | Preview | Updated (UTC) |
|---|---|---|---|
| posthog-js | â Ready (Inspect) | Visit Preview | Jun 13, 2024 10:26am |
Hey @benjackwhite! đ This pull request seems to contain no description. Please add useful context, rationale, and/or any other information that will help make sense of this change now and in the distant Mars-based future.
Size Change: +4.45 kB (+0.44%)
Total Size: 1.01 MB
| Filename | Size | Change |
|---|---|---|
dist/array.full.js |
239 kB | +1.12 kB (+0.47%) |
dist/array.js |
137 kB | +1.11 kB (+0.82%) |
dist/es.js |
137 kB | +1.11 kB (+0.82%) |
dist/module.js |
137 kB | +1.11 kB (+0.82%) |
âšī¸ View Unchanged
| Filename | Size |
|---|---|
dist/exception-autocapture.js |
12.2 kB |
dist/recorder-v2.js |
108 kB |
dist/recorder.js |
108 kB |
dist/surveys-module-previews.js |
59.3 kB |
dist/surveys.js |
60.9 kB |
dist/tracing-headers.js |
8.26 kB |
@benjackwhite looking at the current API surface it should do the job đ
I assume one will need to enable send_instantly, at least if user didn't opt-in (as in such case queue is not started).
@benjackwhite looking at the current API surface it should do the job đ I assume one will need to enable
send_instantly, at least if user didn't opt-in (as in such case queue is not started).
Hmmm so the intention indeed, wasn't to bypass the opt out functionality... I think we could consider adding an option for that though
Hmmm so the intention indeed, wasn't to bypass the opt out functionality... I think we could consider adding an option for that though
My thinking here is, that people opt out of tracking - they don't want your analytics to be associated with them. The stateless capture enables you to do the same as you already can do on the backend anyway - to count the number of events happening, and my understanding is that it's perfectly fine under every privacy law. At least as long as don't track any user-specific data - probably as a user of this API I should remove the IP, user-agent string and screen dimensions as they can be used for fingerprinting.
@benjackwhite any idea how long it can take for such change to be released (a very rough estimate)? I would love to decide if I should hold on and wait, or proceed with the current one and then refactor once it lands.
@benjackwhite any idea how long it can take for such change to be released (a very rough estimate)? I would love to decide if I should hold on and wait, or proceed with the current one and then refactor once it lands.
Can't really promise anything. Given other higher priority things I wouldn't put money on this being in in the next week...
@benjackwhite Still I'm amazed you jumped so quickly into such a "fringe" idea! â¤ī¸
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label â otherwise this will be closed in another week.
I'd love to keep it open and still very interested in this!
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label â otherwise this will be closed in another week.
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label â otherwise this will be closed in another week.
This PR was closed due to lack of activity. Feel free to reopen if it's still relevant.
Hey @benjackwhite any chance to reopen this?
Re-opened. This was blocked by some issues with the gdpr-tooling which I fixed in another branch. Will try and have another look at it
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label â otherwise this will be closed in another week.
This PR was closed due to lack of activity. Feel free to reopen if it's still relevant.
It's definitely still relevant :)