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

Events: list of events


Learn from this article about:

What is an event

Timestamp

Payload

Types of events possibletracked toby trackdefault

Event enrichment

What is an event

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 possibletracked toby trackdefault


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
}


The page view event can track on all pages where SDK is deployed.

Data collected from this event:

  • Page title, 
  • Page URL, 
  • Referrer.

The page view event will be automatically connected to the website after deployment.


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

    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,

    • Hypertext REFerence

      Client (TheID

      HTML code used to create a link to another page).


    The outbound link click event will be automatically connected from the website after deployment.
    Custom event

    Example of the event:

    {
      type: "custom_event",
      timestamp: "2019-05-05T18:45:41.062Z"ga_cid_sync",
      version: "1.3.0.0",
      payload: {
        page_title: "ContactCustomer |Data Meiro"Platform that helps you target precisely",
        url: "https://www.meiro.io/contact/",
        referrer: "https://www.google.com/search?q=meiro",
        additional_event_payloadclient_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)",
      external_id: "some id string" 
    // OPTIONAL ATTRIBUTE, OCCURS WHEN CONFIGURED
    }

    Data collected from this event type can be customised by the administrator of the website.


    The custom event can record any event possible to collect through JavaScript and JSON listeners. The list of trackable custom events can be found under this link

    Learn more: How to set custom event.

    Contact Form Submit
    {
      type: "contact_form_submit",
      timestamp: "2019-05-05T18:45:41.062Z",
      version: "1.1.0",
      payload: {
        page_title: "Contact | Meiro", // required
        url: "https://www.meiro.io/contact/", // required
        referrer: "https://www.google.com/search?q=meiro", // required
        form_id: "registerForm (required, string)", // required
        email: "john@doe.com (optional, string)",
        first_name: "John (optional, string)",
        last_name: "Doe (optional, string)",
        phone_number: "+420439847320 (optional, string)",
        national_id: "CZE (optional, string)",
        gender: "male (optional, string)",
        birthdate: "10-10-1992 (optional, string)",
        whatsapp: "@hodlmao (optional, string)",
        instagram: "maleshe (optional, string)",
        facebook: "JohnDoe10023 (optional, string)",
        linkedin: "JohnDoeB (optional, string)",
        internal_user_id: "439FID43 (optional, string)",
        external_id: "43FSOSOIRTEOI43 (optional, string)",
        field00: "optional scalar value (null, string, number, bool) or array of scalar values"
        ...
        field30: "optional scalar value (null, string, number, bool) or array of scalar values"
      },
      user_id: "unique user id",
      session_id: "base64 session id (timestamp&user_id)",
      external_id: "some id string" 
    // OPTIONAL ATTRIBUTE, OCCURS WHEN CONFIGURED
    }

    Data collected from this event:

    • Form ID,
    • Email,
    • First Name,
    • Last Name,
    • Phone Number,
    • National ID,
    • Gender,
    • Birthdate,
    • Whatsapp,
    • Instagram, 
    • Facebook, 
    • LinkedIn, 
    • Internal User ID, 
    • Field00, Field30 are optional customizable values that can hold a scalar value or an array of scalar values (null, string, number or bool).


    Learn more: How to track contact form on the website.

    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)"
    }
    

    Data collected from this event:

    • Page title,
    • URL,
    • Referrer,
    • Client ID.
    GoogleOptimizely CIDdata sync


    optimizely_data_sync

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


    {
     type: "ga_cid_sync",
      version: "1.0.0"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"
     },
     timestamp:data: "2020-09-08T14:58:53.110Z"{
    accountId: “accountId_example”,
    user_id:audiences: "unique user id"“audiences_example”,
    session_id:campaigns: "base64“campaigns_example”,
    sessionexperiments:”experiments_example”,
    idprojectId: (timestamp&user_id)"“projectId_example”,
    revision: “revision_example”,
    variations: “variations_example”,
    visitorId: “visitorId_example”
    }
    }


    Data collected from this event:

    • Page title,
    • URL,
    • Referrer,
    • Client ID.
    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

    DataAll collectedthe fromevents thissent event:by SDK may be enriched by additional data on the ME backend server:

    • PageTitle
    • Destination
    • 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
    • Referrer
    • parts
    • Banner

      url_parts

      ID
    • 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.