How to Send Web Push Notifications on Chrome and Firefox

Unless you have been living under a rock for the past few months, you would have noticed that many websites (including DigitalDeepak.com) ask you permission to send browser-based notifications.

These are called web push notifications and are similar to the app-based push notifications that you get from different apps on iPhone and Android phones. In this article, I am going to discuss how to send web push notifications from your blog or website. We will also discuss the best practices in push notifications and the pros & cons of this communication channel.

How Does it Work?

If you enable push notifications for your website, visitors to your site will see an announcement like this on their browser. Push notifications mostly work on Chrome and Firefox. Safari and Opera browsers have limited support and only a few services have it.

In Chrome, this is how the permission request looks. If the visitor clicks on ‘Allow,’ then you have permission to send a notification to that user. I am using the tool called MoEngage for to enable this. MoEngage supports Chrome and Firefox as of now, with support for other browsers coming soon.

Your visitors need not be on your site to get the notifications! Even if the browser is running in the background, your subscribers will receive this notification if they have subscribed to you. If they click on it, the URL will open on their browser and they will be able to view your web page.

There are many tools and services which help you send push notifications. I am using MoEngage because they have advanced segmentation capabilities that many others do not have.

HTTPS and HTTP Websites

Browsers allow only HTTPS websites to send notifications. But you can send notifications even if your blog is not on HTTPS. Web services create a subdomain for you on HTTPS and let your website visitors subscribe to that.

My blog digitaldeepak.com is not on HTTPS, so I use https://digitaldeepak.moengage.com as the URL to which people subscribe to.

Note that when you go for a subdomain like this, you will not be able to move your subscribers away from your service provider. Because if you choose to use another push notification service, the subdomain that you have there would be different and users would need to subscribe or opt-in again.

If you want to have portability of subscribers, then create an HTTPS subdomain for yourself, or make your entire website or blog on HTTPS.

How to Send Web Push Notifications

Most of the service providers have a simple interface from which you can trigger these notifications. In MoEngage, I click on Campaigns and create a new campaign targeted at all my subscribers.

Article Update: This very article was promoted on push notification earlier today. This is how I created the message first.

After I created the push notification and sent it to all my users, this is how it showed up on Chrome browsers.

And this is how the campaign performed. Look at the CTR I’ve got from this notification!

10-15% is the email open rate that you get when you do email marketing and you will get 3-5% CTR with emails. Here, the CTR is more than the open rate of emails šŸ™‚

As soon as I sent the notification, I checked my Google Analytics real time stats. In general, clicks from any source will not have a high retention rate. Only a small % of people who click a link will remain on the website to read the article for more than a minute or two.

Though I am yet to do the analysis, I can feel that the engagement and retention from web-push are higher than clicks from other sources such a Facebook page or content recommendation engines.

Guess how many real time visitors I got on this page after I sent the push notification. Here’s a screenshot from my Google Analytics account…

In the later part of the article, I have explained how to sign up for MoEngage and install it for your website.

The Best Time of the Day to Send Push Notifications

In my experience, sending a push notification works best when users are active and online during the day. This way, your notification will not compete with several other notifications from other websites.

If you send a notification when users are not online, they will receive a bunch of notifications it after they open Chrome or Firefox. Your notification will get lost in the crowd, and the CTR will go down. So sending a notification on a weekday, around 11 am or around 4-5 pm works best for getting the highest engagement.

There is another unique feature in MoEngage. Sherpa, a machine learning algorithmĀ learns the best time for each user to receive notifications. When you send a notification, all users do not get the notification at the same. Instead, each user gets a notification at the best time for them! Time optimization is only enabled for Smart Trigger Campaigns as of now, but it will soon be available for all campaigns.

Downsides of Web Push Notifications

Push notifications are very intrusive and distract the users while they are doing something. So do not send many notifications just because you can. Send only relevant notifications to your subscribers. I recommend sending notifications based on specific website activities such as viewing certain pages or doing specific actions on the site. When the notifications are relevant and targeted, it creates a good experience for the users.

Another downside of push notification subscription is that they are restricted to the browser that the user is using. If users change their computer or reinstall their OS, you will not be able to reach the same users again via push notifications. Considering that we all upgrade computers once in a few years, you have to note that web push subscriptions have limited shelf life. However, it is not the same for mobile based apps.

Email subscriptions have a longer lifespan because people do not change their primary email IDs for years, if not decades. Push notifications are great if you have a sizeable audience and want to engage them frequently. But just like building a retargeting audience on Facebook Ads and other channels, the engagement is highest only for the audience who have subscribed in the last few months to a year.

How Users Can Unsubscribe from Notifications

In each notification, there is a settings icon that users can click. Once they click on this, they will see a list of websites from which they have allowed notifications to be sent to them.Ā This page can also be accessed via going into the browser settings manually.

In Chrome, internet users have to go into Advanced Settings > Privacy > Content Settings > Notification Settings. If they want to unsubscribe, they have to change the status from Allow to Block.

Since there is no way to unsubscribe with one-click from the notification itself, users will not unsubscribe unless they absolutely have to opt out from your messages. Itā€™s not as easy as clicking an unsubscribe link in an email! Push notifications have great power, but with great power comes great responsibility šŸ™‚

Getting Started with Web Push on Your Website

Now that you have got a fair idea of how push notifications work, let’s have a look at how you can sign up for a service and enable it for your blog. In this blog post, I will show you how you can get started with MoEngage.com. The steps are fairly easy and within 15 minutes, you can start gathering subscribers.

First, Click Here to sign up for a free account at MoEngage.

Pricing: Their service is free for the first 5,000 subscribers! After that, you pay $125 a month for 25,000 subscribers and $250 a month for 50,000 subscribers.

They will charge you only for active users – users who haven’t unsubscribed from your notifications. So you are paying only for an active subscriber base.

After you sign up, you should verify your email ID. Once verified, login into the system with your username and password.

Click on Start Integration and go to the next page.

In this case, I will be showing you how to enable push notifications for theĀ web. But they also have push capabilities for iOS and Android apps!

Click on Fill Default to generate a GCM Project Number and GCM API Server Key.

If your blog is not on HTTPS, create an HTTPS sub-domain as shown above.

Generate the Javascript code and place this code on all pages of your website. If you are using WordPress, you can enter this code in the footer file of your theme.

Many themes have an option to deploy such codes in the theme settings. It can be used to deploy Analytics codes and other scripts like this.

If both options fail, you can look for a WordPress plugin like CSS & Javascript Toolbox that will help you deploy the code on all the pages of your blog.

In the last step, configure your notification banner and save settings. If you do not want to show a banner first, you can directly prompt them with the browser permission window and let them click on Allow or Block. I am using 1-Click Optin as shown in theĀ beginning of this article.

The Future of Web Push Notifications

Push notifications are here to stay. Users will stay subscribed to websites and apps as long as the notifications are targeted to them and useful.

So segmentation becomes crucial. You do not want to send a standard notification to all the users in one blast. Such broadcasts will lead to unsatisfied users and a lot of unsubscribes.

Push notifications are well suited for time-sensitive messages like breaking news, live updates on an event, time sensitive discounts and behavior based messages such as shopping cart abandonment.

Final Words

I hope this blog post helped you understand how push notifications on websites work. Go ahead and implement it for your blog or website!Ā Click Here to sign up for a free account at MoEngage to get started.

I will publish a review of MoEngage soon and also explain how you can use advanced notification options like Smart Triggers, A/B Testing messages, and audience segmentations.

Any questions? Leave a comment below!

46 thoughts on “How to Send Web Push Notifications on Chrome and Firefox”

  1. Hi sir, Can you explain clearly about HTTPS. You said that your website doesn’t contain https,but what is moengage.com at the end of your website digitaldeepak.com

  2. Thanks for the wonderful explanation. I will implement it for my blog soon! Glad to know that it is free for up to 5k subscribers.

  3. Nice Article. I was really looking for it and started using it.

    I have a question that can we run push notifications to more than one website from same MoEngage Account?

  4. sir, i just followed the same and signup account,,,,,but im just confused …whre to post generated javascript code and i pasted it in footer.php and signup account…but still ther r options mobile push fc dn???
    what shoul;d do there

  5. @Deepak,
    In this article, you explained. How we use Push Notification? Now I’m using this feature on my website. Through this visitors attract on my website. Now a days this feature used by mostly websites.

  6. Push notifications will surely increase the subscribers and will help to reach the notifications who subscribed. Thanks @Deepak for the detailed information given and will do the process and will watch the result.

  7. I assume you are talking about real push notifications that can be delivered even when the user is not surfing your website (otherwise check out Web Sockets or legacy methods like long polling).

  8. Dear Sir,
    I have made my blog on wordpress but i doesn’t know that where and how to copy the javascript code in my blog. Please help me.

    Thank you..

  9. I have registered for your free digital marketing course and have learnt a lot from the 10 provided lessons and many more to go. I am a computer science student and always wanted to learn this type of marketing stuff. I read some of your blogs and they were so useful and has the great content. Sir I want to say that you are doing a great job. Your blogs have motivated me to start blogging. Thank you.

  10. I have been using MoEngage on one of my websites. The results are quite good. I have got 2300 subscribers in 1 year. But, at the rate the numbers are increasing, I’ll surely hit the 5K threshold.

    $149/pm is quite high for me, though. Do you have experience with other alternatives? Something less than $100.

  11. Deepak it’s one of ur best blog explained in such a easiest way!! I have one question.. How can we use this Push Notifications to some n number of clients??

  12. Hello Deepak Sir,
    I love your this post sir. The way you have explained the information is really awesome. Thank you so much for sharing such a nice information with us. Waiting for your more post.

  13. Thanks for sharing this post. If you are looking for web push notifications and also want to increase your subscribers on your website then try

    ZetPush at once. This is a really awesome tool to work with.Give it a try at once.

  14. Hello Deepak,

    on one of my sites i have implemented push notification and working well for more than 6 months, now i want to use this push feature on other 4 non-ssl sites also.

    for this i have made 4 subdomains on main ssl site on which push is already working and when i browse any of these subdomains, separate push authorization works but when i embed these subdomains in 4 non ssl sites using iframe i don’t get push authorization.

    please suggest some trick so that i can apply push on these non ssl sites using subdomains of single ssl site.

    thanks in adv.

Leave a Comment