Skip to main content
Version: v3

Implement Click ID Persistence

The click ID (rdt_cid) is a match key that helps attribute click conversions more accurately. It’s appended to the landing page URL when a user clicks through an ad from Reddit. We recommend sharing it for all available conversion events. 

By default, this match key is automatically shared when passing events with the Reddit Pixel. You can implement click ID persistence to share it for the Conversions API (CAPI).

Click ID will be automatically passed when integrating with Tealium or the Ads Manager Google Tag Manager flow.

Before you start

  • Set up CAPI. Here’s how to get started.
  • Ensure your landing pages preserve URL parameters. This keeps the click ID intact through redirects.

1. Find the click ID

You can retrieve the click ID from your landing page’s URL.

// Get the click ID (rdt_cid) from the URL
function getClickIdFromUrl() {
  const params = new URLSearchParams(window.location.search);
  return params.get('rdt_cid');
}

const clickId = getClickIdFromUrl();

2. Set up click ID persistence

Choose one method to ensure the click ID persists:

Read the click ID from your URL (e.g., ?rdt_cid=123).

Recommended for static or low-complexity sites. Not for cases where you want to hide parameters or keep the URL clean.

example.com/page?rdt_cid=123

3. Test your integration

When ready, test your setup to check that the click ID is being preserved and passed. Open your test URL and select your ad. Ensure the rdt_cid value in the landing page URL matches data.events[].click_id in your CAPI event payload.