How dynamic trafficking works from end to end
A dynamic macro is a variable inserted in an ad’s destination URL. When a user clicks an ad, the advertising platform automatically replaces these macros with real values linked to the media delivery.
General principle
In the case of Meta, these values can for example be:
- the campaign ID;
- the ad set ID;
- the ad ID;
- the delivery source;
- possibly some media labels or attributes.
The aim is to pass this information to Eulerian in order to analyse media performance, match clicks with conversions, and synchronise the data coming from Meta.

Example of a trafficked URL
Destination URL used in Meta:
monsite.com?esc-publisher=meta&esc-name={{campaign.id}}-meta&esc-location={{adset.id}}-meta&esc-creative={{ad.id}}&esc-creativetype=1x1&eseg-name=site-source&eseg-item={{site_source_name}}
In this URL, the values between double curly brackets are Meta dynamic macros:
{{campaign.id}}
{{adset.id}}
{{ad.id}}
{{site_source_name}}
These macros are not sent as they are to the end user. Meta replaces them at the moment of the click.
How it works, step by step
1 · Trafficking the URL in Meta
When the campaign is set up, the destination URL is entered in Meta with the Eulerian parameters. The URL contains dynamic macros that pass the media identifiers automatically:
esc-publisher=meta
esc-name={{campaign.id}}-meta
esc-location={{adset.id}}-meta
esc-creative={{ad.id}}
eseg-item={{site_source_name}}
At this stage, the values are not yet known. Meta will replace them at the moment of the click.
2 · Click on the ad
When a user clicks the ad, Meta replaces the macros with the real values matching the impression and the ad clicked. The URL can then become:
monsite.com?esc-publisher=meta&esc-name=12004567890-meta&esc-location=12004567991-meta&esc-creative=12004568012&esc-creativetype=1x1&eseg-name=site-source&eseg-item=facebook
In this example:
| Parameter | Value received | Meaning |
|---|---|---|
esc-publisher | meta | Media source |
esc-name | 12004567890-meta | Meta campaign ID |
esc-location | 12004567991-meta | Meta ad set ID |
esc-creative | 12004568012 | Meta ad ID |
eseg-item | facebook | Delivery source |
3 · The user arrives on the site
The user arrives on the site with an enriched URL containing the Eulerian parameters. These parameters carry the media context of the click.
They require no action from the user: they are simply present in the landing page URL.
4 · The Eulerian collect tag loads
When the page loads, the Eulerian collector tag reads the landing page URL. It picks up the parameters present in the URL, including:
esc-publisher
esc-name
esc-location
esc-creative
esc-creativetype
eseg-name
eseg-item
The tag can thus identify that the traffic source is Meta, then link the IDs it received to the user journey. This information is then used for performance analysis and attribution.
5 · Enrichment through the Meta Partner Connector
The IDs passed in the URL are technical identifiers. They are very useful for keeping tracking stable, but they are not always readable as they are in a business report.
This is where the Eulerian Partner Connector Meta comes in. The connector queries Meta’s API to find the labels associated with the IDs received:
| ID received in Eulerian | Data retrieved through the Meta API |
|---|---|
12004567890 | Campaign name |
12004567991 | Ad set name |
12004568012 | Ad name |
The connector can also synchronise additional media data, such as:
- costs;
- impressions;
- some campaign attributes;
- the labels associated with media objects.
Why use IDs rather than names?
We strongly recommend using technical IDs in dynamic macros rather than names spelled out in full. The main reason is stability.
An ID is a stable technical key. It does not change when the campaign manager edits the name of the campaign, ad set or ad. A name, on the other hand, can be changed at any time, for example to:
- fix a typo;
- add a date;
- change the case;
- change a separator;
- add a country or a market;
- change the marketing wording.
Even if the name changes, the Meta object stays the same. It is still the same campaign, the same ad set or the same ad.
The risk if names are sent directly
If the URL sends the campaign name rather than the ID, Eulerian can receive several different values for the same media object. The URL goes out with:
esc-name=Summer Sale FR
The campaign is then renamed in Meta to Summer Sale France, and new clicks arrive with:
esc-name=Summer Sale France
In Eulerian, these two values can be read as two different campaigns:
| Value received | Possible reading in the reports |
|---|---|
Summer Sale FR | Campaign 1 |
Summer Sale France | Campaign 2 |
Yet it is the same Meta campaign. The name change can therefore fragment the reporting: clicks, conversions, costs and impressions can be spread across several rows, which makes performance analysis harder.
Good practice: use the ID as a stable key
With an ID-based macro, the URL sends a stable value:
esc-name={{campaign.id}}-meta
After Meta replaces it:
esc-name=12004567890-meta
Even if the campaign name is changed in Meta, the ID stays the same.
| Moment | Name in Meta | ID sent to Eulerian |
|---|---|---|
| Day 1 | Summer Sale FR | 12004567890 |
| Day 5 | Summer Sale France | 12004567890 |
| Day 10 | Summer Sale FR - Juin | 12004567890 |
In Eulerian, the matching key therefore stays 12004567890-meta. This avoids several campaigns being created artificially in the reports.
The role of the label in reporting
Using IDs in the URL does not mean the final report has to be unreadable. Good practice is to keep two notions apart:
| Element | Role |
|---|---|
| Technical ID | Stable key used for tracking and matching |
| Label | Readable name shown in the reports |
The ID identifies the object reliably. The label makes the report understandable for the marketing teams. The Meta Partner Connector is precisely what links these two levels.
Full example
URL trafficked in Meta:
monsite.com?esc-publisher=meta&esc-name={{campaign.id}}-meta&esc-location={{adset.id}}-meta&esc-creative={{ad.id}}&esc-creativetype=1x1&eseg-name=site-source&eseg-item={{site_source_name}}
URL after the macros are replaced:
monsite.com?esc-publisher=meta&esc-name=12004567890-meta&esc-location=12004567991-meta&esc-creative=12004568012&esc-creativetype=1x1&eseg-name=site-source&eseg-item=facebook
Data read by Eulerian:
| Level | Eulerian parameter | Value |
|---|---|---|
| Source | esc-publisher | meta |
| Campaign | esc-name | 12004567890-meta |
| Ad set | esc-location | 12004567991-meta |
| Ad | esc-creative | 12004568012 |
| Segment | eseg-item | facebook |
Enrichment through the Meta connector:
| ID | Label retrieved | Level |
|---|---|---|
12004567890 | Summer Sale FR | Campaign |
12004567991 | Retargeting 30j | Ad set |
12004568012 | Visuel 1x1 Promo | Ad |
Benefits of this approach
Using IDs in dynamic macros has several advantages.
1 · Stable reporting
IDs stay the same even if the names are changed in Meta. This avoids duplicates in Eulerian reports.
2 · Better data quality
Clicks, conversions, costs and impressions can be aggregated around reliable keys. The analysis is therefore more consistent over time.
3 · Better matching of media and site data
The IDs received from clicks can be matched with the data coming from the Meta API. This makes it easier to reconcile onsite data and media data.
4 · More readable reporting
Labels can be retrieved through the Meta connector. Reports can therefore stay readable for business users while resting on robust technical keys.
The details of the esc- parameters, channel by channel, are in Trafficking: tracking advertising campaigns.