Documentation

Creating a Pixel Exposure Source

A pixel exposure source gives you a hosted URL endpoint that captures ad-exposure events in real time. Each time the pixel fires - typically from an ad server or tag manager - MX8 Labs records the exposure and makes it available for respondent matching.

Before you begin

Decide on the following before opening the creation dialog:

  • A source name for this pixel (this cannot be changed after creation).
  • A subdomain that will form part of the pixel URL.
  • A retention period (in days) - how long exposure records should be kept for matching.
  • Any dimensions you want to capture alongside each exposure (for example, brand).
Step 1 - Open the creation dialog

Navigate to your exposure sources and click Create Exposure Source. You'll see two cards: Pixel and S3 snapshot. Select Pixel.

Creating An S3 Snapshot Exposure Source

Step 2 - Configure the source

Fill in the required fields:

  • Source Name - A descriptive label (e.g., test-ip4). This is permanent, so choose something meaningful.
  • Subdomain - This becomes part of the pixel URL the platform generates for this source.
  • Retention Days - The number of days MX8 Labs will retain exposure records. There is no pre-filled default, so enter a value (at least 1) that matches your measurement window.
  • Enabled - The toggle is on by default. Turn it off if you want to configure the source without activating it yet.

Creating A Pixel Exposure Source

Step 3 - Add dimensions

Dimensions are attributes attached to each exposure event. They serve as query-parameter keys in the pixel URL and as aggregation buckets in reporting. Every source needs at least one dimension — the form won't save without one.

To add a dimension, type its name into the Add Dimension field and press Enter or click + Add Dimension. For example, adding brand means your pixel URL will include a brand parameter.

You can add multiple dimensions. Each one will appear as a tag that you can remove by clicking the × next to it.

Step 4 - Create and copy your pixel URL

Click Create. After the source is saved, the detail view displays a Pixel Example URL — the full endpoint for this source, with each dimension you added included as a query parameter (for example, brand={brand}).

Copy the URL from the exposure source screen rather than building it by hand, then replace the placeholder values with your actual macro variables when deploying it in your ad server or tag manager. For example, your ad platform might use a macro like %%BRAND%% in place of {brand}.

Passing a user identifier (optional). The uid parameter is optional but fully supported. If your example URL includes &uid={uid}, map it to your ad platform's user-ID macro (for example, %%USER_ID%%) — or remove the parameter if you don't need user-level identifiers. If it isn't present and you want per-user identifiers, append &uid={uid} to the URL.

Creating An S3 Snapshot Exposure Source

Tip: If you see a literal {brand} value (or {uid}, if you've added it) appearing in your Recent Exposures data, it means the macro substitution in your ad server isn't working correctly. Double-check that your platform is replacing the placeholders before the pixel fires.

What's next

Once your pixel is live, you can verify that data is arriving correctly using the Recent Exposures panel. See Verifying Exposure Data (Recent Exposures) for details.