Access your interface

Enter your email address to access your personal interface.

What is a Reverse Proxy implementation?

Updated 5 October 2026

A Reverse Proxy is a solution installed, deployed and maintained by the Eulerian client’s IT team, directly within its own technical infrastructure. With a Reverse Proxy, you can route collection requests through your own domain (my-site.fr) and make sure they are sent transparently and efficiently to your Eulerian platform.

Background

Eulerian collects behavioural data to feed marketing decision-support solutions for the Acquisition and Analytics functions of B2C and B2B companies.

Historically, players in the marketing and advertising industries have collected behavioural data through a Web SDK (also called a JavaScript Tag) that sends collection requests from the user’s browser. This is known as “client-side” tracking.

With the rise of ad blockers and technical restrictions linked to privacy concerns, the third-party cookie used by many players in the industry was set to disappear by September 2024, with a strongly negative impact expected on the quality and quantity of the data available.

Already today, ad blockers and privacy plugins can intercept the requests sent by an analytics solution and stop them from reaching its servers (those of the analytics solution).

Since 2006, Eulerian has run fully first-party collection and is not affected by the announced disappearance of third-party cookies. Even so, a Reverse Proxy implementation lets a Eulerian client optimise the quality of behavioural data collection, particularly as first-party collection is increasingly challenged by Apple on its operating systems (iOS in particular) and in its browser (Safari).

What is a Reverse Proxy?

Technically, it is a server that acts as an intermediary between a user’s browser and a web server.

When a user browsing your site my-site.fr generates requests to a Eulerian server, those requests are intercepted by the Reverse Proxy, which routes them to another backend server (yours) before forwarding them to the Eulerian server.

Before passing them on, the Reverse Proxy therefore acts as a gateway: it collects requests made to a specific address on your domain (my-site.fr/collection), then forwards them to another domain (client.eulerian.net).

Once the appropriate server receives and processes these requests, it sends the response back to the reverse proxy, which then passes it on to the user.

The path of a collection call through a Reverse Proxy, in seven steps: the tag placed on www.my-site.fr/collection sends the data layer to “/collection” (1, 2), the client's proxy defined on that URL passes the data to the target domain, removing the authentication cookies (3), client.eulerian.net receives it (4), the data is collected by the EMP (5), and the tag content returns to the browser through the proxy (6, 7).

Why use a Reverse Proxy?

A reverse proxy offers several advantages.

Accurate data collection

For the share of your traffic that uses ad blockers or privacy plugins, requests to Eulerian’s servers may occasionally be intercepted, and the lifetime of the first-party identifier may be limited.

Using a Reverse Proxy means you can get round these limitations and keep your data collection both high quality and lasting.

Control over web traffic

A Reverse Proxy also gives you finer control over the communication between your website and our applications and services.

With a Reverse Proxy, and unlike a fully server-side solution, Eulerian can still interact with the client browser and with your site’s client-side application.

This gives you the best of both worlds, without cutting yourself off from existing features that support certain business use cases, such as exchanging data with personalisation tools (A/B testing).

To sum up, you can optimise your existing setup by putting in place an advanced tracking configuration where you capture analytics data on your own domain and then forward it to Eulerian.

Setup

This section is for your technical team. You can pass it on as it stands: it gives the tag to place, the NGINX configuration of the proxy and the post-impression case.

Sample tag

<script type="text/javascript">
  (function (p, a) {
    var s = window,
      v = document,
      e = s.location.hostname,
      i = (e || a).length,
      y = 5381,
      k = "script",
      o = v.createElement(k);
    for (; i; ) {
      i -= 1;
      y = (y * 33) ^ e.charCodeAt(i);
    }
    y = "_EA_" + (y >>>= 0);
    (function (e, a, s, y) {
      s[a] =
        s[a] ||
        function () {
          (s[y] = s[y] || []).push(arguments);
          s[y].eah = e;
        };
    })(e, a, s, y);
    i = (new Date() / 1e7) | 0;
    o.ea = y;
    y = i % 26;
    o.async = 1;
    o.src =
      "//" +
      e +
      p +
      "/" +
      String.fromCharCode(97 + y, 122 - y, 65 + y) +
      (i % 1e3) +
      ".js?2;1";
    s = v.getElementsByTagName(k)[0];
    s.parentNode.insertBefore(o, s);
  })("/collection", "EA_push");
</script>

In this example, if your site’s URL is https://www.my-site.fr, then since you specified /collection as the URI, the solution’s calls will all be sent to https://www.my-site.fr/collection.

Your proxy must therefore catch the calls arriving on this URI and pass them on to the collection domain.

Sample NGINX configuration

location ~ ^/<COLLECT_PATH>/(.*)$ {
                access_log /var/log/nginx/proxy.log;

                proxy_pass              https://<DOMAINE_COLLECTE>/$1$is_args$args;

                proxy_set_header        X-Eulerian                      "p;1;$remote_addr;$http_host;/<COLLECT_PATH>";
                proxy_set_header        Upgrade-Insecure-Requests       "";

                proxy_http_version      1.1;

                # avoid 504 gateway timeout
                proxy_temp_file_write_size 64k;

                proxy_connect_timeout 5s;
                proxy_send_timeout 5s;
                proxy_read_timeout 5s;
                send_timeout 5s;

                proxy_cache off;
                proxy_redirect off;
                proxy_ssl_verify off;
                proxy_buffering on;
                proxy_request_buffering on;
                proxy_store off;
                proxy_ssl_server_name on;

                proxy_buffer_size 64k;
                proxy_buffers 16 32k;
                proxy_busy_buffers_size 64k;

                proxy_ignore_headers    X-Accel-Redirect X-Accel-Expires X-Accel-Limit-Rate X-Accel-Buffering X-Accel-Charset;
        }

Taking the example above:

  • uri: /collection
  • collection domain: client.eulerian.net

The NGINX configuration becomes:

location ~ ^/collection/(.*)$ {
                access_log /var/log/nginx/proxy.log;

                proxy_pass              https://client.eulerian.net/$1$is_args$args;

                proxy_set_header        X-Eulerian                      "p;1;$remote_addr;$http_host;/collection";
                proxy_set_header        Upgrade-Insecure-Requests       "";

                proxy_http_version      1.1;

                # avoid 504 gateway timeout
                proxy_temp_file_write_size 64k;

                proxy_connect_timeout 5s;
                proxy_send_timeout 5s;
                proxy_read_timeout 5s;
                send_timeout 5s;

                proxy_cache off;
                proxy_redirect off;
                proxy_ssl_verify off;
                proxy_buffering on;
                proxy_request_buffering on;
                proxy_store off;
                proxy_ssl_server_name on;

                proxy_buffer_size 64k;
                proxy_buffers 16 32k;
                proxy_busy_buffers_size 64k;

                proxy_ignore_headers    X-Accel-Redirect X-Accel-Expires X-Accel-Limit-Rate X-Accel-Buffering X-Accel-Charset;
        }

Configuration for measuring post-impression

If you want to measure impressions and the effect of post-impression, you need to make sure the proxy in place can handle the corresponding volumes.

If you do not want the proxy to handle them, you can set up a domain delegation so that Eulerian can track impressions on its own infrastructure: for this, we absolutely must be allowed to set cookies at domain level.

Taking the example of the site https://www.my-site.fr, which has a proxy declared on the uri /collection, the site operator can create a collection subdomain, for example https://elr-imp.my-site.fr, which is aliased through a CNAME record to the collection infrastructure.

The pixels will use the subdomain https://elr-imp.my-site.fr to set cookies on the domain .my-site.fr. Once the visitor reaches the domain https://www.my-site.fr, the proxy can pass the cookies back in the standard way, since they were set on the domain .my-site.fr.