Commit d20d005
committed
π Set PostHog $insert_id on transactional events for backend dedupe
Auto-assign $insert_id = {event}_{transaction_id} inside useLogEvent so
frontend-fired purchase/subscribe/start_trial/begin_checkout events dedupe
against the backend posthog-node counterpart that tracks the same txn.
Also rename the stray payment_id key in the book-list begin_checkout call
so it actually carries transaction_id and picks up the new behavior.1 parent de7f11b commit d20d005
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
0 commit comments