Welcome to the Push Notifications documentation.
A push notification is a message that a store can show to its customer directly on its pages via special popups.
The customer can subscribe to these messages, so he doesn't have to keep your store open to get the notifications. Notifications will be sent directly to the customer's browser, so he will be aware of all activities and actions on your store - that's why they called push notifications.
This way is much quicker and powerful than just email notifications.
Our extension brings Push Notifications to the next level, providing rich and flexible tools for building push notifications policy.
Firstly, please, find our extension in My Downloadable Products section of our store.
Learn how to install extension, and proceed with Quick Start, which will guide you to setup your Push Notifications service.
php -f bin/magento module:enable Mirasvit_Core Mirasvit_Mq Mirasvit_Event Mirasvit_PushNotification
to enable the extension.php -f bin/magento setup:upgrade
to install the extension.php -f bin/magento cache:clean
to clean the cache.Deploy static view files
rm -rf pub/static/*; rm -rf var/view_preprocessed/*; php -f bin/magento setup:static-content:deploy
You can also install the extension via direct files uploading.
composer require mobiledetect/mobiledetectlib:^2.8
to install required libraries.php -f bin/magento module:enable Mirasvit_Core Mirasvit_Mq Mirasvit_Event Mirasvit_PushNotification
to enable all extensions.php -f bin/magento setup:upgrade
to run upgrade procedure.php -f bin/magento cache:clean
to clean the cache.rm -rf pub/static/*
rm -rf var/view_preprocessed/*
php -f bin/magento setup:static-content:deploy
Our Push Notifications extension can be easily used out-of-box, and you can start building your push messages policy just after installation:
Start with Templates. They define messages, which you can push to your customers.
Each Template can be used for constructing one or more Notifications, which are actually will be pushed. They can be bound to certain customer actions or pushed on schedule making your notification policy flexible and convenient.
Create customizable Prompts for your customers to ask them to join your push notifications policy.
Monitor your push notifications policy with Subscribers grid, which holds all information about customers, which receive your pushes.
This will be good for a start. Refer to corresponding sections of our manual to know more.
Each Notification should contain a message and a click to follow. They are defined as templates, so different notifications can share the same message.
All templates, defined in your store, are located at Marketing -> Push Notifications -> Templates, in their dedicated grid.
Each row provides you with the following information:
The grid does not provide mass actions, but using Action column, you can edit or delete individual templates. You can also create a new one.
Navigate to Marketing -> Push Notifications -> Templates, and press Add New Template button. You will be brought to the creation page, which breaks into two panels - as shown on the screenshot below.
Central pane holds fields for the main template properties:
Body - a short message for the customer or a header of the main article or page. It is limited to 90 characters.
Message Body Variables
[base_url]
- base URL of your store.[order_id]
- ID of current order. Can be used only on order-related events.[order_number]
- Number of current order. Can be used only on order-related events.[order_status]
- Status of current order. Possible order statuses can be seen and defined at Stores -> Order Status. Can be used only on order-related events.[quote_id]
- current Quote ID. Can be used only in cart and order-related events.[cart_qty]
- total quantity of items in Cart. Can be used only in cart and order-related events.[customer_id]
- ID of current customer. Can be used only, when customer shall be registered.[customer_email]
- Email of current customer. Can be used only, when customer shall be registered.[customer_firstname]
- First name of current customer. Can be used only, when customer shall be registered.[customer_lastname]
- Last name of current customer. Can be used only, when customer shall be registered.[customer_name]
- Full name of current customer. Can be used only, when customer shall be registered.
Refer to Message Body Variables section for explaining how these variables work.
Destination URL - URL, which will be used on notification click.
Destination URL Variables
[base_url]
- Base URL of your store.[order_id]
- Order identifier.[customer_id]
- Customer identifier.[product_id]
- Product identifier.
Right pane contains possible render of a push notification, and a button Send test push, which allows you to test newly created notification.
Notifications are the carriers for messages. Each notification contains a message, that a customer should receive, and a link to be clicked - which are defined separately in Templates.
There are two types of notifications':
All of them are located in their dedicated Grid at Marketing -> Push Notifications -> Notifications, which provides the following information per row:
Additional column Action allows you to edit notification or delete it. Mass actions are not available.
Here you can also create new Notification.
Visit Marketing -> Push Notifications -> Notifications, and press Add New Notification. It will bring you to the creation page, which contains the following fields:
After a notification type is selected, Schedule subsection is displayed with different options for sending notifications. Below are explained different kinds of that section.
Schedule - defines the type of sending a push to the customer. There are two available options:
All events, which push can be bound to, grouped into logical categories. Here is their respective list:
Customer
Admin
Cron
push_notification_event
.
Product
Newsletter
Shopping Cart
Sales
Additional events can be added to this category automatically, based on order statuses, defined at Stores -> Order Status.
Wishlist
Admin Notification
Review
Prompts are a special type of Notifications, which also contain a question to answer and two buttons - for accepting and rejecting.
All of them are located in their dedicated Grid at Marketing -> Push Notifications -> Prompts, which provides the following information per row:
Additional column Action allows either to edit notification, or delete it. Mass actions are not available.
Here you can also create new Prompt.
Visit Marketing -> Push Notifications -> Prompts and press Add New Prompt button. You will be brought to the creation page, which contains the following fields:
Subscribers are customers, that had subscribed to the push notifications of your store.
Our extension tracks them and places to the single Grid, located at Marketing -> Push Notifications -> Subscribers.
We store the following information about each customer:
This information can become a powerful tool for analyzing and boosting your marketing policy.
Unfortunately, our extension does not have reports for their visualization. However, you can install our Advanced Reports extension, and use integration to define such reports for yourself.
Refer to Generating Reports with ADVR section to know more.
Our Push Notification extension does not provide any reports out-of-box. However, if you have our Advanced Reports for Magento 2 extension installed on your store, you can use Report Builder for analyzing your push notification policy.
If you wish, you can check first our Examples of Advanced Reports for Push Notifications.
Visit Reports -> Report Builder section and select Build New Report from top menu. You will be given with complex workspace, which allows you to generate your own reports, as shown on the screenshot:
Consider creating a simple report, which demonstrates which device types customers use for your store.
Here is what you should do:
mst_push_notification_subscriber
in Tables list. This is the main table, which holds information about push notifications subscribers.device_type
in Columns list. This property contains device types, recorded from customer visits.
Double click to copy name to the clipboard, and paste it to Default Columns field. It should look like this: mst_push_notification_subscriber|device_type
.subscriber_id__cnt
in Columns list. This property acts as a grouping parameter and allows you to calculate the number of subscribers based on previously selected field(s).
Double click to copy name to the clipboard, and add it to Default Columns field. It should look like this: mst_push_notification_subscriber|subscriber_id__cnt
.mst_push_notification_subscriber|device_type
also to the Available Dimensions. This field defines the views that a chart can have.After saving, this report is available from top menu at Reports -> Advanced Reports section, and will look, as shown on the screenshot below:
You can add other properties (or even more than one) to Default Columns, Available Dimensions and Visible Chart Columns, you can create complex reports, which allow you to have all statistics in one place.
Refer to the next Examples section, to see, how you can track your Push Notifications policy efficiency with Advanced Reports.
Browser Statistics
This report will demonstrate which browsers customers use to visit your store.
Browser Statistics
mst_push_notification_subscriber
mst_push_notification_subscriber|browser_name
mst_push_notification_subscriber|browser_name
mst_push_notification_subscriber|country
mst_push_notification_subscriber|ip
mst_push_notification_subscriber|operation_system
mst_push_notification_subscriber|device_type
mst_push_notification_subscriber|subscriber_id__cnt
mst_push_notification_subscriber|browser_name
mst_push_notification_subscriber|browser_name
mst_push_notification_subscriber|subscriber_id__cnt
Country Statistics
This report will demonstrate, from where customers come to your store.
Country Statistics
mst_push_notification_subscriber
mst_push_notification_subscriber|country
mst_push_notification_subscriber|country
mst_push_notification_subscriber|subscriber_id__cnt
mst_push_notification_subscriber|country
mst_push_notification_subscriber|country
mst_push_notification_subscriber|subscriber_id__cnt
Subscribers Statistics Report
This is a complex report, which allows you to see all stats on your push notifications subscribers in one place.
Subscribers Statistics Report
mst_push_notification_subscriber
mst_push_notification_subscriber|device_type
mst_push_notification_subscriber|browser_name
mst_push_notification_subscriber|country
mst_push_notification_subscriber|ip
mst_push_notification_subscriber|operation_system
mst_push_notification_subscriber|device_type
mst_push_notification_subscriber|subscriber_id__cnt
mst_push_notification_subscriber|browser_name
mst_push_notification_subscriber|country
mst_push_notification_subscriber|ip
mst_push_notification_subscriber|operation_system
mst_push_notification_subscriber|device_type
mst_push_notification_subscriber|browser_name
mst_push_notification_subscriber|country
mst_push_notification_subscriber|ip
mst_push_notification_subscriber|operation_system
mst_push_notification_subscriber|device_type
mst_push_notification_subscriber|subscriber_id__cnt
Notifications Statistics Report
This is a complex report, which allows you to see how your push notifications are performing.
Notifications Statistics Report
mst_push_notification_notification
mst_push_notification_notification|clicked
mst_push_notification_notification|clicked
mst_push_notification_notification|fetched
mst_push_notification_notification|pushed
mst_push_notification_notification|notification_id__cnt
mst_push_notification_notification|clicked
mst_push_notification_notification|fetched
mst_push_notification_notification|pushed
mst_push_notification_notification|clicked
mst_push_notification_notification|fetched
mst_push_notification_notification|pushed
mst_push_notification_notification|notification_id__cnt
Return to How to create Reports for Push Notifications to know how they were built.
To upgrade the extension, follow these steps:
composer require mirasvit/module-push-notification:* --update-with-dependencies
to update current extension with all dependencies.
composer update mirasvit/*
command. It will update all Mirasvit modules installed in your store. php -f bin/magento module:enable Mirasvit_Core Mirasvit_PushNotification
to re-enable the extension.php -f bin/magento setup:upgrade
to install updates.php -f bin/magento cache:clean
to clean the cache.Deploy static view files
rm -rf pub/static/*; rm -rf var/view_preprocessed/*; php -f bin/magento setup:static-content:deploy
To temporarily disable the extension please follow these steps:
php -f bin/magento module:disable Mirasvit_PushNotification
to disable the extension.To uninstall the extension, please follow these steps:
composer remove mirasvit/module-push-notification
to remove the extension.(2023-03-15)
(2023-03-12)
(2022-12-29)
(2023-03-06)
(2022-12-29)
(2022-11-15)
(2022-08-16)
(2022-06-28)
(2022-06-20)
(2022-05-31)
(2022-04-08)
(2022-03-16)
(2021-10-13)
(2021-08-10)
(2021-07-30)
(2021-04-19)
(2021-01-28)
(2021-01-11)
(2020-12-03)
(2020-11-18)
(2020-10-23)
(2020-10-13)
(2020-07-30)
(2020-07-27)
(2020-01-28)
(2019-12-31)
(2019-12-27)
(2019-12-03)
(2019-11-21)
(2019-11-19)
(2019-11-08)
(2019-11-07)
(2019-10-29)
(2019-10-11)
(2019-09-03)
(2019-06-11)
(2019-01-02)
(2018-11-27)
(2018-11-05)
(2018-10-29)
(2018-10-19)
(2018-08-14)
(2018-02-26)
(2018-02-09)
(2018-01-16)
(2018-01-09)
(2018-01-09)
(2017-12-27)
(2017-12-19)
(2017-12-13)
(2017-12-04)
(2017-11-24)
(2017-11-14)
(2017-05-18)