mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
* feat(landing): add /share-out redirect for X share button click tracking Adds a Cloudflare Pages Function at /share-out/:eventId that records each click of the "Share on X" button surfaced in the contributor card comments on GitHub, then 302-redirects to the original twitter.com / x.com intent URL (passed via ?to=, host-allowlisted). Together with the existing /share/:eventId function this gives us both sides of the X funnel without an X API key: - /share-out/:eventId -> GitHub user clicked the X button (funnel step 1) - /share/:eventId -> someone on X clicked the posted tweet (funnel step 2) Per-event KV storage is optional (SHARE_OUT_CLICK_EVENTS). When no KV is bound the function falls back to console.log; aggregate counts are visible in Cloudflare Pages analytics with no extra setup. Co-authored-by: Cursor <cursoragent@cursor.com> * chore: retrigger CI Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: ashley li <ashleyli@ashleydeMacBook-Air-2.local> Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .. | ||
| share | ||
| share-out | ||