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

Web banners: FAQs

How to test web banners?


1.The easiest way is to create an URL condition containing

/?{testphrase} 


URL.png 

When opening the URL when the banner is supposed to appear - just type your condition behind the URL.

For example, for: /?meiro

web banner will appear on: https://www.myweb.io/?meiro 



2. The second way is to create the testing cookie.


cookie.png

In the example above: 

-cookie is “meiro”,

-value is “test”.


This cookie needs to be set in the dev tools of your browser. This can be done either manually or through the console input: document.cookie=”meiro=test”


After this, the page needs to be hard refreshed and the web banner will appear.


How to test a banner for segmented users

To test a web banner for only a certain segment of customers, it is necessary to set the meiro_id cookie of someone belonging to the segment.


For example: the banner is being displayed only to people from the segment with ID 490.

Screenshot 2021-12-22 at 5.23.48 PM.pngScreenshot 2021-12-22 at 5.23.48 PM.png


Step 1: Open the segment with the corresponding ID.

Screenshot 2021-12-22 at 5.24.00 PM.png


Step 2: Open a single customer view of someone from this segment.

Screenshot 2021-12-22 at 5.24.12 PM.png

Step 3: Copy to clipboard Meiro user ID.

Screenshot 2021-12-22 at 5.24.20 PM.png


Step 4: Visit the URL where the banner is being displayed and open dev tools -> change the value of the cookie manually

Screenshot 2021-12-22 at 5.24.32 PM.png


or through the console input: document.cookie="meiro_user_id={{meiro_id_cookie_value}};domain=.{{your_domain}};path=/;secure;samesite=strict"

document.cookie="meiro_user_id_js={{meiro_id_cookie_value}};domain=.{{your_domain}};path=/;secure;samesite=strict"



Step 5: Hard refresh (CTRL + F5) your browser and the web banner will be displayed.


Will a web banner appear immediately to the user after it is set?
The SDK is cached in the user’s browser with an expiration limit—this might be up to 30 minutes, depending on the setting for a particular instance. This means that if the user has just opened your website and received the SDK, they will not receive any changes to the SDK for the duration of the expiration interval. Therefore, while some users will see the new banner immediately, it might take some time for all users to be able to see the new banner.
What will happen if multiple web banners have the same priority set, settings and conditions?

Pop up web banners

The banner which has been shown to this user the least number of times will be selected or the one that has been shown the longest time ago.


Embedded web banners

The banner that has been displayed the least number of times during user's session.

For example, in case of  3 banners A,B, C, each starting at 0 impressions:

-first page view, banner B will be selected (randomly), impression for banner B in current session is 1,

-second page view, only banner A or banner C can be displayed as they have 0 impressions in current session, banner C will be randomly selected from these two, impression set to 1,

-third page view in current session: only banner A has 0 impressions, will be displayed and impression set to 1

-fourth page view in current session, each banner has same impression set to 1 so the algorithm starts same again as in point 1 when all of them have 0 impressions.


What will happen if I have multiple containers on the website with the same ID? Where embedded web banner will be displayed?

First of all it is  not a valid HTML document, because there can be only unique IDs on a single webpage of the website.

In this case SDK uses document.getElementById method for finding element by ID, it will find the first one in HTML document and place the banner there.

What will happen if I have no conditions set for the web banner?
If no conditions are set, the banner will always be considered for display and will only be limited by frequency cap (for pop up web banners) and priority settings (both for pop up and embedded web banners or number of impressions).
Who is considered "user" in web banners settings?
A user is defined by "cookie" in the browser. Each "user" has assigned a "cookie" hence it is identified as a separate "user". 
What is the definition of "session" in pop upweb banner frequency ?
It is the activity of the user within 30 minutes.
If a web banner is re-named which name is used in reporting or in attributes?
Usually it is the latest name that is used in attributes or reporting, but each individual name can be tracked as well (to discuss details contact the Meiro team).