Skip to content
All projects

Dcard · 2024 · Ads and event tracking

Dcard Ad System

Shows ads across Dcard and measures how each one performs.

3 ad sources in one system

Dcard Ad System thumbnail showing a forum post with a reserved ad slot offering Dcard ADs, Google Ads and a legacy list, above impression and click events
Built at
Dcard
When
2024
Built with

Background

Dcard's ads ran on Google Ads and a long list of older creatives, and ad events were tracked separately from the rest of the forum. The data team asked us to bring tracking together while we introduced a new ad system.

What I did

  • Designed and built one system for Google Ads, Dcard ADs and the older creative list, across five kinds of placement.
  • Added a fallback, so a slot shows a Google ad when something goes wrong with its first source.
  • Built event tracking that counts each view and click once, and holds events on the device so sending them never blocks other requests or gets lost when someone leaves the page.
  • Handled oversized creatives in every placement so ads can't make the page jump, protecting Core Web Vitals for readers.
Dcard Pixel thumbnail with a sample embed code snippet above PageView and ViewContent events

Dcard · 2021-2025

Dcard Pixel

The tracking code business customers add to their websites to measure ad conversions.

  • JavaScript SDK
  • npm