mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
This adds in two redirects - `event_click` and `event_redirect` - `event_click` to allow appending in a user ID to an event before redirect, if we require one, and `event_redirect` to service a local evented redirect, similar to ad clicks. `event_click` is necessary for tracking clicks from users on embeds, which are served via redditmedia, and therefore are always anonymous. When a user clicks through, we want to know who they were and redirect them on their way. Because of the way we're using nginx to store events as an access log right now, this means we'll need to use two redirects: one to append the session ID and another to store the event with the proper session ID.