How to deploy Meiro Events

Setting up DNS records for Meiro Events

Your technical point of contact in Meiro will send you an IP address of the server where the instance of Meiro Events runs just for you. 

You will need to set up two DNS record of type A. Let’s take “” as an example domain where your web page runs. And let’s say that you want to deploy Meiro Events to “” subdomain. The subdomain can be anything - you can choose, just be consistent. The DNS records for web "" with Meiro Events running at "" will need following DNS records:

Type: A, domain:, destination: IP address of the ME

Type: A, domain: *, destination: IP address of the ME

How to deploy on your website

Following script needs to be included in the website's head (after <title> HTML tag) 

Placing it in a different place may result in empty <document.title> in <pageView> event).

<script type="text/javascript">
  var domain = "{{COLLECTOR_DOMAIN}}";
  var script = document.createElement("script");
  var callback = function() {
  script.onload = function() {
    if (document.readyState === "complete") {
    } else {
      window.addEventListener("load", callback);
  script.src = "//sdk." + domain;
  script.async = true;

All you need to do is to specify the collector’s domain (for example "") and define events you want to track. 

To learn which events are available please refer to this article.

The script assumes source will be served from //sdk.{{COLLECTOR_DOMAIN}} location and it handles events collecting POST requests on {{COLLLECTOR_DOMAIN}}/ API route.

Please double-check any typos as they may result with Meiro Events not working as expected.