ePrivacy and GPDR Cookie Consent by Cookie Consent Skip to main content

Events: list of events


Learn from this article about:

Timestamp

Payload

Types of events tracked by default

Event enrichment

Events are collected behaviours of a customer.

Different types of information can be fetched depending on the event type.

Each event contains:

  • Timestamp (time and date),
  • Payload (varies for each event type, more details below).

Timestamp

The timestamp is recorded in the following format yyyy-mm-dd hh:mm:ss

In most cases, it shows when exactly an event happened in the browser (uses the clock set up in the browser). 

Each time the event reaches the server there is also a reception side noted on the server-side that helps to verify timestamp noted in the browser. 

Remember: By default, Meiro Events uses time recorded by the browser.  

It is because it is the most precise as information travelling to the server may have a delay ( for example due to poor internet connection or other distractions).

Remember: But in cases when Meiro Events detects a discrepancy between time recorded by the browser versus time recorded by the server, the time recorded by the server will be used as the most accurate. 

For example, it can happen that a user does not have time set up correctly on his device. In those cases, time noted by the server is perceived as the most correct one. 

Timestamp from the browser is translated to UTC timezone and to the local timezone on the server-side.


Payload

Payload varies for each type of event. This is the data that is collected for a particular event. 

For each event we know:

  • User ID,
  • Session ID


Types of events tracked by default

When you initialize ME SDK it starts collecting the events listed below automatically:

Page view
page_view

Initiated by a method call `​​MeiroEvents.track("pageView")`. The method also handles web banner conditions evaluation.


Data collected from this event:

  • Page title, 

  • Page URL, 

  • Referrer.

Learn more: How to set page view on the application and how to pass additional data.


{  
type: "page_view",  
timestamp: "2019-05-05T18:45:41.062Z",  
version: "1.2.0",  
payload: 
{    
page_title: "Customer Data Platform that helps you target precisely",    
url: "https://meiro.io/",    
referrer: "https://www.google.com/search?q=meiro",  
},  
user_id: "unique user id",  
session_id: "base64 session id (timestamp&user_id)",  
external_id: "some id string" 
// OPTIONAL ATTRIBUTE, OCCURS WHEN CONFIGURED
}

    outbound_link_click

    Initiated by method call `MeiroEvents.track("outboundLinkClick")`. If you don’t want to track these events, you can remove the method call from your SDK initialize script but you’ll also lose cross-domain tracking if you have it set.


    Data collected from this event:

    • Page title, 

    • URL, 

    • Referrer,

    • Hypertext REFerence (The HTML code used to create a link to another page).

    {
      type: "outbound_link_click",
      timestamp: "2019-05-05T18:45:41.062Z",
      version: "1.3.0",
      payload: {
        page_title: "Contact | Meiro",
        url: "https://www.meiro.io/contact",
        referrer: "https://www.google.com/search?q=meiro",
        href: "https://www.linkedin.com/company/meirocdp/"
      },
      user_id: "unique user id",
      session_id: "base64 session id (timestamp&user_id)",
      external_id: "some id string" 
    // OPTIONAL ATTRIBUTE, OCCURS WHEN CONFIGURED
    }
    Google CID sync

    ga_cid_sync

    The event is sent once per session if the `_ga` cookie is found.

    Data collected from this event:

    • Page title,

    • URL,

    • Referrer,

    • Client ID

    {
      type: "ga_cid_sync",
      version: "1.0.0",
      payload: {
        page_title: "Customer Data Platform that helps you target precisely",
        url: "https://meiro.io/",
        referrer: "https://www.google.com/search?q=meiro",
        client_id: "google analytics client id"
      },
      timestamp: "2020-09-08T14:58:53.110Z",
      user_id: "unique user id",
      session_id: "base64 session id (timestamp&user_id)"
    }
    Facebook CID sync

    fb_cid_sync

    The event is sent once per session if the `_fbp` cookie is found.

    Data collected from this event:

    • Page title,

    • URL,

    • Referrer,

    • Client ID 

    {
     type: "fb_cid_sync",
     version: "1.0.0",
     payload: {
       page_title: "Customer Data Platform that helps you target precisely",
       url: "https://meiro.io/",
       referrer: "https://www.google.com/search?q=meiro",
       client_id: "google analytics client id"
     },
     timestamp: "2020-09-08T14:58:53.110Z",
     user_id: "unique user id",
     session_id: "base64 session id (timestamp&user_id)"
    }
    
    Optimizely data sync

    optimizely_data_sync

    The event is sent once per session if Optimizely is initialized on a website.


    {
     type: "optimizely_data_sync",
     payload: {
       page_title: "Customer Data Platform that helps you target precisely",
       url: "https://meiro.io/",
       referrer: "https://www.google.com/search?q=meiro",
       client_id: "google analytics client id"
     },
     data: {
    accountId: “accountId_example”,
    audiences: “audiences_example”,
    campaigns: “campaigns_example”,
    experiments:”experiments_example”,
    projectId: “projectId_example”,
    revision: “revision_example”,
    variations: “variations_example”,
    visitorId: “visitorId_example”
    }
    }
    Web Banner Impression

    web_banner_impression

    The event is sent once some web banner is shown.

    Data collected from this event:

    • Page Title

    • URL

    • Referrer

    • Banner ID

    { 
    session_id: "MTYyMjE4Njg0ODM3NCZlOWQ2NjNhZS0wY2MwLTQ0ZDQtYjVmOC1lZjFhZTZiMTU2NTE=" 
    timestamp: "2021-05-28T07:27:37.351Z" 
    type: "web_banner_impression"
    user_id:
    "e9d663ae-0cc0-44d4-b5f8-ef1ae6b15651" 
    version: "1.0.0" 
    payload:
    {   
    page_title: "Index page",   
    url: "http://cdp.meiro.d3v:8060/",   
    referrer: "",  
    banner_id: "b2b14ad1-e120-403d-b9a1-4a063d2ed8f0"
    }}
    Web Banner Click

    web_banner_click

    The event is sent if a user clicks on the displayed image banner pointing to some destination URL.

    Data collected from this event:

    • Page Title

    • URL

    • Referrer

    • Banner ID

    • Destination URL

    {
     session_id: "MTYyMjE4Njg0ODM3NCZlOWQ2NjNhZS0wY2MwLTQ0ZDQtYjVmOC1lZjFhZTZiMTU2NTE="
     timestamp: "2021-05-28T07:27:37.351Z"
     type: "web_banner_click"
     user_id: "e9d663ae-0cc0-44d4-b5f8-ef1ae6b15651"
     version: "1.0.0"
     payload: {
       page_title: "Index page",
       url: "http://cdp.meiro.d3v:8060/",
       referrer: "",
       banner_id: "b2b14ad1-e120-403d-b9a1-4a063d2ed8f0"
       destination_url: "some link url"
     }
    }
    


    Event enrichment

    All the events sent by SDK may be enriched by additional data on the ME backend server:

    Event type

    Description

    Cookies

    JSON object formatted as “cookie name”: “cookie value”

    Geolocation

    geo_ip_data

    Geolocation information containing city, country ISO, country name, latitude, longitude and postal code.

    Headers

    JSON object containing request headers in the format “header name”: “header value”

    Referer parts

    referer_parts

    Referrer information containing its name (referer), medium, search parameter or search term

    URL parts

    url_parts

    Parsed URL into handy format containing host, path, query, query parsed object and scheme

    User agent

    user_agent

    Parsed User-Agent header containing attributes: browser family, browser version, device family, device version, is bot, is mobile, is tablet, is touch capable, OS family and OS version.