• Skip to primary navigation
  • Skip to content

Prompty

Retain and Engage with Web Push Notifications

  • Live Demo
  • Features
  • Pricing
  • How It Works
  • Learn More
    • Blog
    • What are Web Push Notifications?
    • The Key Differences Between Web Push Notifications and Emails
    • How Web Push Notification Metrics Compare to Email Marketing Metrics
    • How Slack and Google Use Web Push Notifications to Drive User Adoption
    • What Browsers Support Web Push Notifications
    • 4 Industries that Benefit from Web Push Notifications
  • WordPress Plugin
    • How to Install
    • Why You Will Love It
  • Support
    • Free Installation Help
    • Documentation
    • Contact Us
  • Free Account
  • Login

Adding Web Push Notification “Subscribe” Button To Your Site

April 21, 2021 By prompty

With one-step or two-step opt-in prompts, you can pro-actively put a message in front of your readers or users to subscribe to your web push notifications after a certain number of seconds or after then have read a certain percentage of a page. But another more “laid back” way of gaining subscribers is simply to add a button or a link to the page that when pressed will bring up opt-in prompt.

Here’s an example on our fictional “Win Win” Blog.

https://winwinblog.com/button/

Here’s the way the button might looks on our page.

Example button that when pressed will show the opt-in prompt.

Then when pressed, the button will bring up the standard opt-in prompt.

To make a button on your site, first you need to make sure you have the default Prompty snippet on your page. Then you can add the javascript event Prompty.clickEvent() to any HTML. You can add it to a button or a link or you can use jQuery selections to make any element on page a button. Here’s the HTML from that page on the WinWin Blog.

<button onclick=”Prompty.clickEvent();”>Notify me!</button>

Here’s a link to more documentation on how to implement a button.

https://www.prompty.io/docs/javascript-api/clickevent/

Filed Under: Uncategorized

Reader Interactions

Free up to 1,000 subscribers!  Signup Now

Copyright © 2025 · Prompty

  • Contact Us
  • Partners