If you are using HTTP request headers as a signal for a trait, you can test whether your signal is capable of qualifying visitors by testing HTTP header key-value pairs in Trait Builder.

Depending on the HTTP header in use as a trait signal, you could potentially qualify visitors by evaluating the site your visitor was at before loading the current page (‘Referer’ header), which browser the site visitor is using (‘User-Agent’ header), or even which language the browser will accept (‘Accept-Language’ header).

To test whether a trait expression that's using an HTTP header would qualify a visitor for your trait when the signal is received at our data collection servers, you can test the HTTP header in Trait Builder’s ‘Edit’ mode. In the “Test HTTP Header” text box, add the name of the HTTP header (do not prefix the HTTP header key with “h_”) and the value you desire into the “Test HTTP Header,” using a colon symbol to separate the header’s name from its value with this syntax:

[HTTP header name]: [HTTP header value]

Then click “Test.”

E.G., testing two HTTP headers (referrer, host) in one trait rule, a successful test will look similar to this:

correct headers 1
correct headers 2

While an unsuccessful test would look similar to this:

incorrect headers 1
incorrect headers 2

Questo prodotto è concesso in licenza in base alla licenza di Attribuzione-Non commerciale-Condividi allo stesso modo 3.0 Unported di Creative Commons.  I post su Twitter™ e Facebook non sono coperti dai termini di Creative Commons.

Note legali   |   Informativa sulla privacy online