Pixelex.Destinations.Reddit (Pixelex v0.1.0)

Copy Markdown View Source

Reddit Conversions API v3.

v3 landed on 1 October 2025 and changed enough that any pre-2026 example is actively misleading: the body gained a data wrapper, event_at moved from ISO 8601 to Unix milliseconds, action_source became required, and the event vocabulary went from PageVisit to PAGE_VISIT. Copy from an old blog post and you silently create custom events named after standard ones.

Credentials

%{pixel_id: "a2_…", access_token: "…"}

A non-expiring conversion access token from Events Manager → Configure data source → Conversions API is the recommended path; an OAuth2 developer token with the adsconversions scope also works.

Reddit's email rule is nobody else's

Lower-case, strip dots from the local part, drop everything after a +. So Al.ice+Apple@Example.Com and alice@example.com hash identically. Pixelex.Destinations.Hash.email_reddit/1 implements it and is checked against Reddit's published vector. Phone is E.164 with the + kept, which is TikTok's rule and the opposite of Pinterest's.

A descriptive user agent is not optional

Reddit rate-limits generic agents by name. This sends elixir:pixelex:<version>.