Back to blog
WordPress 15 min read

AI Web Push plugin 2.1, Elements and Journey step by step

Where everything is in the new editor, what each option does and how to build an invitation in steps for your visitor.

This guide covers version 2.1.0 of the AI Web Push plugin. It is being tested with beta customers and has not been released to everyone yet. If you received the plugin file for the test, this guide is for you. If your plugin is the official version, the one that arrives through the regular WordPress update, it does not have these screens yet, and you can keep this guide for when the update arrives.

About the images. The screenshots come from a WordPress panel in Portuguese. In English and Spanish, the tab names change language, and some buttons stay in Portuguese. So, when a button only exists in Portuguese, this guide shows the name you see on screen and, in brackets, what it means.

What changes in version 2.1.0

The editor now has two parts that work together.

In Elements you create and keep everything the visitor sees. In Journey you decide when and where each element shows, and what happens after the person answers.

The arrow that points to the browser prompt is now an element too, like the modal and the floating button. And the Journey gained an Action in every step, which lets you chain one element to the next, for example showing a second modal when the person says Not now.

The plugin tabs

In the WordPress side menu, open Ai Web Push. The plugin has these tabs.

The Home tab of the plugin, with the tab menu at the top, the welcome text and the shortcuts to the documentation, the site, YouTube, Instagram and the dashboard. The panel in the screenshot is in Portuguese.
The Home tab, the first of the plugin, with the tabs at the top. The panel is in Portuguese.

Home. This is the first tab. It brings the welcome text, the shortcuts to the documentation, the AI Web Push site, YouTube, Instagram and your dashboard, and the news of each version. Every time you update the plugin, stop by here.

API settings. It keeps the key that connects the plugin to your account. The key stays hidden and only shows when you click to see it. Treat the key like a password and do not show it to anyone. In guides and screenshots, never leave the key in view.

Elements. Where you create what the person sees.

Journey. Where you decide when and where each element shows.

Configurações Avançadas (Advanced settings), Subscriber migration, Manutenção (Maintenance) and Changelog. Subscriber migration is for people bringing subscribers over from another service, with the help of support. If that is not your case, you do not need to touch it. The Changelog keeps the full history of the versions. The tabs Configurações Avançadas and Manutenção stay in Portuguese even in a panel set to English.

At the top of Elements and of Journey there are three buttons. Testar uma página (Test a page) tells you which step applies on a page, without saving anything. Importar ou exportar (Import or export) takes the setup to another site or keeps a copy. Salvar (Save) publishes the setup on your site right now.

Important. Nothing is stored while you only look around and change things. The site keeps what was saved until you click Save. If there are unsaved changes, the editor warns you. After saving, if your site uses page cache, clear the cache so the change shows up, and the editor reminds you of that.

Elements, what the person sees

The Elements tab, with the list of elements on the left, the Element, Texts and Appearance tabs of Modal 1 in the middle and the mobile preview of the modal on the right. The panel in the screenshot is in Portuguese.
The Elements tab, with the list on the left, the editor of Modal 1 in the middle and the preview on the right. The panel is in Portuguese.

In the Elements tab, the list on the left gathers everything that can show on your site. Each element has a name and an id. Below the name, the plugin says where in the Journey it is used. If it is not used anywhere yet, the element does not show on the site yet. This works as a reminder that creating an element does not put it on screen. The Journey does that.

Each element has the buttons Duplicate, which makes a copy so you change only what you need, and Delete. Check the usage line before deleting an element. Deleting an element that is in use leaves the steps that use it without an element and turned off, and it only counts after you Save.

To create one, click New modal, New floating button or New Allow arrow. There are three types of element.

It is the window that invites the person to receive the alerts. It has three tabs.

Element. The name, the id and the field What the modal shows. With The site modal, the window with your invitation appears. With Only the browser request, only the browser own prompt appears, without your text. In that case Firefox and Edge always get the site modal. The editor warns you when the browser request is chosen in a step that shows right away, because that path is not accepted.

Texts. Each modal has a title, a message and the accept and cancel buttons, in a single language. To speak to visitors in another language, create another modal with the texts in it and use a step set to the page language or the browser language. The PT, EN and ES buttons next to the texts only switch the language of the guidance on what to avoid in the text.

Appearance. The gallery of templates, the date and color themes, the image, the colors, the position on desktop and on mobile, the background behind the modal, the icon, the corners, the shadow, the border, the font, the sizes and the pulse of the button. The preview next to it shows the result on mobile and on desktop before you save.

Floating button

It is a small button in the corner of the screen, for people who have not subscribed yet, and it goes away when the person accepts or blocks. It can come together with the modal, show up after Not now or be the only element of a step.

The Floating button tab of an element, with the button style, the size, the rounding and the preview of the button in the corner of the screen. The panel in the screenshot is in Portuguese.
The floating button tab, with the style, the size and the preview. The panel is in Portuguese.

You choose the style, which can be a pill or a round button, the size, the rounding, the text, the icon, the corner, the distances and the colors. In the element, the button can pulse so it gets noticed. Shaking is chosen in the Journey, in the Action, when the answer shows the button, and the editor warns you if it never stops.

Allow arrow

It is the arrow that points to the browser prompt, where the Allow button is. It helps the person find the prompt. You choose the position and the direction on mobile and on desktop, the colors, the size and whether the page darkens. You also choose how long the arrow stays, until the person answers, with a safety limit, or for a fixed time in seconds. The editor suggests a value, and you can change it.

The Allow arrow tab, with the explanation of where the arrow shows, the option to darken the page and the preview of the arrow pointing to the browser prompt. The panel in the screenshot is in Portuguese.
The arrow tab, with the explanation on the left and the preview on the right. The panel is in Portuguese.

The arrow shows in Google Chrome on desktop and in Chrome on Android from version 155 on. It does not show on iPhone, in Edge, Opera, Samsung Internet, Firefox, Safari or inside apps such as Instagram and Facebook. In those cases the browser request goes on as usual, only without the arrow.

The arrow texts come by language. The arrow already comes with texts in Portuguese, English and Spanish, and you can add other languages. If the person browser is in a language with no arrow text, the arrow does not show.

Journey, when and where

In the Journey tab you find the default rule and the steps.

The Journey tab, with the default rule and the first step in the list on the left, and the default rule in the middle, with the element that shows and the When it shows field. The panel in the screenshot is in Portuguese.
The Journey tab, with the default rule and the list of steps. The panel is in Portuguese.

The default rule

The default rule applies on every page where no step applies. It is the base of your journey. On a new installation, the default rule comes turned on and shows the modal after 3 seconds, and Yes asks for permission with the Allow arrow. You can change the time in When it shows. If you update the plugin, you keep the time and the arrow you already had.

If you do not want the arrow, open the Action tab of the default rule and, under Arrow shown with it, choose No arrow. If you do not want a rule for all pages, click Desligar (Turn off). Then nothing shows on the pages where no step applies.

In the default rule you choose the Element that shows, which can be a modal or a floating button, and the Floating button with it. The floating button with it comes in with the modal, stays hidden while the modal is open and shows when it closes.

The steps

A step is an exception or a special case. Click New step to create one. Steps are checked first, from top to bottom, and the first one that matches the page and the visitor is the one that shows. Where none matches, the default rule applies. You can move each step up or down, turn it off and delete it, and drag it to change the order. Each step has a name and an id, the element that shows and the floating button with it.

Each step has four tabs, explained below. The default rule has only When it shows and Action.

Where. On which pages the step applies. It can be the whole site, pages and posts, the home page, categories, addresses and dates. To search for a page or a post, type two letters or more. Pages, posts, home page, categories and addresses add up, and it is enough for one of them to match. Dates apply together with the other choices.

Language and visitor. Who the step is for. You can choose the page language, the browser language of the person visiting and one or more UTMs. A UTM is a tag in the address that shows where the person came from, such as a campaign.

When it shows. The moment. The choices are Na hora (right away), Depois de um tempo (after a time), Depois de rolar a página (after scrolling the page), O que vier primeiro, tempo ou rolagem (whichever comes first, time or scrolling), Rolar e depois esperar o tempo (scroll, then wait) and Depois de um evento (after an event). This is also where the Intervalo de reexibição (redisplay interval) is, which is how long the same visitor waits to see the request again after saying Not now.

The When it shows tab of a step, with the field Quando set to Na hora (right away) and the Intervalo de reexibição (redisplay interval), in minutes. The panel in the screenshot is in Portuguese.
The When it shows tab of a step. The panel is in Portuguese.

Action. What happens after the person answers. This is where chaining comes from, explained next.

The Action, what happens after the answer

The Action tab exists in the default rule and in every step. It has these answers.

The Action tab of a step, with the explanation of what the Action does, the step this modal leads to and the block When the person clicks Yes. The panel in the screenshot is in Portuguese.
The Action tab of a step. The panel is in Portuguese.

When the person clicks Yes. You choose between asking for notification permission, with the arrow you want, or firing an event. You also set the wait time for the browser answer and the event names for when the person allows, blocks, does not decide or closes the arrow.

When the person clicks No, the X, presses Esc or taps outside. All of that counts as Not now. You choose between showing another modal, showing the floating button shaking, firing an event or doing nothing. In each case, you can wait a little before the action.

When the person does not answer. You choose what happens, such as showing another modal or the button.

When the person clicks the floating button. You choose what the click does, such as asking for permission with the arrow.

When nobody clicks the button. After some time, you can show another modal.

When one step calls another, the Journey list shows the chain. A step that only shows when another one calls it says so in the list, instead of saying it applies on all pages.

An example, the invitation in steps

This is a case built in the editor and checked on a test site. The numbers belong to the example, they are not a rule. Choose your own.

  1. Modal 1 shows on entry, across the whole site.
  2. If the person says Not now, the plugin waits for the person to scroll another 30% of the page and shows Modal 2.
  3. If she says Not now in Modal 2, the floating button shows, shaking for 5 seconds.
  4. If nobody clicks the button within 60 seconds, Modal 3 shows.
  5. The click on the button and the Yes of the three modals ask for permission with the Allow arrow, which stays until the person answers.

To build it, create the three modals, the floating button and the arrow in Elements. Then, in Journey, open the step of Modal 1 and, in the Action tab, choose for each answer what comes next. The Journey list then shows the whole chain, which modal leads to which. Use Testar uma página (Test a page) to check without saving, and Salvar (Save) when it looks right.

The Journey list with Modal 1, Modal 2 and Modal 3, each one marked as called by another step, and the Action tab of Modal 3 asking for permission with the Allow arrow. The panel in the screenshot is in Portuguese.
The chain of the example in the Journey list, and the Action of the last modal. The panel is in Portuguese.

The editor warns you when something looks odd. It warns you, for example, when a path goes back to a modal that already showed, when the answer time is very short and when you use more than two modals in one visit. We recommend opening a next modal only after a new action from the person, such as a scroll. These are warnings, and nothing is blocked.

After an event

In When it shows, the choice After an event makes the step wait for something to happen before it shows. There are three types of event. The plugin event, a click on an element of your site and an event from your site. For your site to send the event, its code calls aiWebPushFront.track('abriu_quiz');.

Where a step of this type applies, the default rule does not show by itself. The modal only shows when the event happens. If you turn the step off, the default rule applies again.

Events for Google Tag Manager and for the SDK

Everything the person does becomes an event. You can use the events in Google Tag Manager, through the dataLayer, and in the AI Web Push SDK, through aiWebPushFront.on, to measure.

The fields that start with push_ are the same in both places. In the dataLayer the event arrives with ai_web_push_ before the name, together with push_provider and push_source. In aiWebPushFront.on it arrives with the short name, and the source comes in source.

FieldWhat it carries
push_ruleThe id of the step that won, or of the step called by the Action. In the default rule, it comes as padrao.
push_stepThe order of the modal in the visit, 1, 2, 3 and so on. It only comes when the Journey chains modals, with an Action, a called step or After an event.
push_elementThe id of the element, the same one shown in Elements. In the request and arrow events it carries the id of the arrow.
push_tempo_msThe time, in milliseconds, that the person took. It comes in the three events that answer the request, permission_granted, permission_denied and permission_timeout.
push_acaoWhat the click on the floating button did, ask for permission, open a modal or fire an event. It only comes in floating_clicked.
push_motivoWhy the arrow did not show or closed, or why the click on the button did not open the request. It comes in the events permission_hint_skipped, permission_hint_closed and floating_prompt_skipped.

The button and arrow events are floating_shown, floating_clicked, floating_ignored, floating_prompt_skipped, permission_hint_shown, permission_hint_closed and permission_hint_skipped. The modal events include modal_no_response. push_received_while_away also goes to the dataLayer.

When you choose to fire an event in an Action, the name you give comes out in the dataLayer as ai_web_push_ followed by the name. In aiWebPushFront.on, you listen by the name you gave.

A minimal example to listen to the click on the floating button in the SDK.

aiWebPushFront.on('floating_clicked', function (detail) {
  console.log(detail.push_acao, detail.push_rule, detail.push_element);
});

In Google Tag Manager the same event arrives as ai_web_push_floating_clicked, with the data layer variables push_acao, push_rule and push_element. aiWebPushFront only exists after the plugin script loads, so the code of your site that uses on has to run after it.

The new fields only come out on sites with the new setup, that is, those that already saved in the new editor and new installations. If you have not saved in the new editor yet, you keep the usual events. The fields are only added to the earlier ones, none is removed.

Import and export

The Importar ou exportar (Import or export) button shows the whole setup as text. Copy it to keep a copy or to take it to another site. To bring one from another site, paste the text and click Aplicar (Apply). It is only stored when you click Salvar (Save).

The button accepts the setup that the plugin itself exports, including the one exported by earlier versions of the editor, which it converts to elements and journey. If the text cannot be applied, the plugin tells you why, and it does not delete anything.

If you already use the plugin

If you already use the plugin, your setup is kept when you update. Right after the update, the site keeps showing the same invitation as before, until you click Save in the new editor. When you open the editor, the modal you already had shows up as an element, and the default rule and your steps show up in the Journey.

Before updating, keep a copy. If your plugin already has the Import or export button, keep the text. If it does not, take a screenshot of the Modal tab. After updating, open the Journey, check the default rule and the steps and use Test a page.

How to test on your site

Use a new Chrome profile and never an incognito window, because push does not work in it. If your browser has already allowed or blocked notifications for your site, the modal does not show for you. When testing on your own computer, remember that accepting the browser prompt registers you as a real subscriber. If you only want to look, leave the prompt untouched on screen.

Technical documentation

The technical documentation, with every field, is at docs.aiwebpush.com.

How to ask for help

If something does not match this guide, send us your site address, the plugin version that shows under Plugins, what you expected and what you saw, the device and the browser with its version and, if you can, a screenshot. The Import or export button generates the text of your setup, which helps a lot. Do not send the API key or your visitors data. The channel is the usual support one, at Contact.

Put it into practice with AI Web Push.

100% automatic push notifications with AI: more recurring traffic for your site.