Browser language |
Possible to set: equals/ doesn’t equal/ equals any of/ doesn’t equal any of for all languages from a drop down list.
The language of the user’s browser (retrieved from window.navigator.language
).
Only the first part of the language code (the two letter code as defined in ISO 639-1) is considered—e.g. if the condition is set to equal “en”, the condition will be fulfilled by values “en”, “en-US”, “en-GB”.
|
Browser |
Possible to set: equals/ doesn’t equal/ equals for Chrome, Edge, Firefox, Safari, Opera, other.
The user’s browser as detected from the user-agent string.
|
Cookie |
Possible to set: cookie name, date type (boolean, datetime, number, string) and/ or operator (is set/ is not set and operators relevant for data type).
This condition compares the value with the contents of a cookie set in the browser under the specified cookie name.
Note for developers: the cookie must be accessible to JavaScript code, i.e. it must not be set as “http-only”.
Date type can be taken from SDK javascript date constructor e.g. new Date(whatever_is_the_cookie_value)
.
See the section below for a note about data types and operators.
|
Datetime |
Possible to set: since, until, since-until for date in format yyyy-mm-dd, hh:mm.
This condition compares the time of the pageview with an absolute point in time, the evaluation doesn’t take into account the user’s timezone. At any given moment, it will evaluate the same for all users around the world.
Remember: In Meiro Business Explorer, input the datetime value in your own timezone.
Example: You have a campaign that ends on a particular day at noon of US eastern time (ET). You want to stop showing a banner when the campaign ends. You are currently using Meiro Business Explorer from Prague (CET). You select the operator “until” and input the datetime in your timezone 6 PM (which equals noon in ET). On the given day, at noon ET (6 PM your time), users all around the world will stop seeing the banner at the same time, regardless of their timezone.
|
Day of the week |
Possible to set: equals/ doesn’t equal/ equals for Monday - Sunday.
This condition takes the user’s timezone into account, i.e. which day of the week it is for the user.
|
Device |
Possible to set: equals/ doesn’t equal/ equals for console, desktop, embedded, mobile, smart tv, tablet, wearable.
The user’s device as detected from the user-agent string.
|
Google Tag Manager |
Possible to set: name of GTM DL object, GTM DL key, datatype (boolean, datetime, number, string), operator (is set/ is not set).
This condition compares the value with the contents of an entry in the GTM data layer.
Name of GTM DL object |
Type in the name of the data layer object as it is instantiated in the website e.g. if your data layer object is accessed under window.dataLayer
, input “dataLayer”. |
GTM DL key |
Type in the key of the data entry whose value you want to compare against. |
See the section below for a note about data types and operators.
|
Hostname |
Possible to set: equals/ don’t equal/ equals.
The hostname of the page, as retrieved from window.location.hostname
i.e. the part of the URL address excluding the protocol prefix (“https://”) and excluding the path (the “/” after the top-level domain and any following text).
|
Hours of the day |
Possible to set: equal/ doesn’t equal, until, since, since-until, for hours from 0-23.
This condition takes the user’s timezone into account, i.e. which hour of the day it is for the user e.g. if set to “equals 16”, this condition will pass if it’s between 16:00:00 and 16:59:59 for the user.
|
HTTP |
This condition makes a request to the provided URL. If the response from the server has an OK status code (>= 200 and < 400), this condition passes.
Use values from cookies and local storage in the HTTP request by including placeholders in the URL in the format {{cookie:my_cookie_name}}
for cookie values and {{ls:my_ls_key}}
for local storage.
Note for developers: The values from cookies/local storage are encoded using the JavaScript function encodeURIComponent()
before being inserted into the URL.
Example: On the page you have a cookie with the name “last_order_id” and value “123”, and local storage item with the key “user_email” and value “user@example.com”. Type in the URL “https://my-api.com/orders/{{cookie:last_order_id}}?email={{ls:user_email}}”
. The Meiro Events SDK will make a request to https://my-api.com/orders/123?email=user%40example.com. If the response returns OK, this condition will pass.
|
Local storage |
Possible to set: local storage key, data type (boolean, string, number, datetime), operator (is set/ is not set).
This condition compares the value with the contents of a local storage item set in the browser under the specified key.
Date type can be taken from SDK javascript date constructor e.g. new Date(whatever_is_the_cookie_value)
.
See the section below for a note about data types and operators.
|
Operating system |
Possible to set: equals/ doesn’t equal/ equals for Android, iOS, MacOS, Windows, others.
The user’s operating system as detected from the user-agent string.
|
Page title |
Possible to set: is set, is not set, equals/ doesn’t equal/ equals any of / doesn’t equal any of, contain/ doesn’t contain.
The page title (retrieved from document.title
).
|
Pathname |
Possible to set: is set, is not set, equals/ doesn’t equal/ equals any of / doesn’t equal any of, contain/ doesn’t contain.
The pathname of the page, as retrieved from window.location.pathname
i.e. the part of the URL address including the “/” after the top-level domain and any following text, but excluding the query, the part of the URL starting with “?”, if there is any.
|
Referrer |
Possible to set: is set, is not set, equals/ doesn’t equal/ equals any of / doesn’t equal any of, contain/ doesn’t contain.
The value of the “referrer” part of the query in the URL address.
|
URL |
Possible to set: is set, is not set, equals/ doesn’t equal/ equals any of / doesn’t equal any of, contain/ doesn’t contain.
The entire URL address of the page the user is on (retrieved from window.location.href
).
|
UTM campaign, UTM medium, UTM source |
Possible to set: is set, is not set, equals/ doesn’t equal/ equals any of / doesn’t equal any of, contain/ doesn’t contain.
The value of the “utm_campaign”/ “utm_medium”/ “utm_source” part of the query in the URL address.
|