If you work with a developer that you’d like to install the code for you, we’ve got you covered. 


Important Note: the instructions are different for HTTP and HTTPS users. Please make sure you copy the correct instructions for your site. 


WordPress Users: If you’re using Wordpress, we highly recommend pointing your developer to this instruction page on installing and enabling the WordPress plugin.


For HTTPS users (HTTP users scroll down)


As an HTTPS website there are 2 things that need to happen to get Subscribers installed properly on your site. 1) Install the Subscribers javascript code snippet before the </body> tag and 2) Install the Subscribers JS file in the root directory of your site.


1. We’ve written out an email that we think works great. Copy and paste the text below into your email software. 


Hey, I need to install a new cool tool to enable web push notifications on my website. Since I’m on HTTPS there are 2 things that I need you to help me with.


First, please copy and paste the following javascript code right before the </body> tag on all pages.


<script type="text/javascript">

  var subscribersSiteId = 'ENTER SITE ID HERE';

</script>

<script type="text/javascript" src="https://cdn.subscribers.com/assets/subscribers.js"></script>


Second, please download the file on https://app.subscribers.com/service_worker and install it in the root directory of the application. Is should appear as “https://www.yoursite.com/firebase-messaging-sw.js” 


Please let me know when this is done, thanks so much for helping me out.


2. Find your Site ID within your Subscribers account and copy it.



3. Replace the text “ENTER SITE ID” in the email with your Site ID. It should look like this:



4. Once your developer has let you know that the 2 steps above are complete, your last step is to verify the installation is done correctly. Go back to your Subscribers account and click on Installation from the dropdown menu. Then at the bottom of this page click on Verify.



5. If you’ve received this message, you’ve installed it and verified it. You should now go to your website and become your very first subscriber!



6. If you receive a failed message, please try troubleshooting based on any error messages we display. If you are confident you have installed the code correctly you can override the verification tool manually by clicking here.




For HTTP users


As an HTTP website there is only 1 step your developer needs to follow to install Subscribers. They just need to install the Subscribers javascript code snippet before the </body> tag.


1. We’ve written out an email that we think works great. Copy and paste the text below into your email software. 


Hey, I need to install a new cool tool to enable web push notifications on my website. 


Please copy and paste the following javascript code right before the </body> tag on all pages.


<script type="text/javascript">

  var subscribersSiteId = 'ENTER SITE ID HERE';

</script>

<script type="text/javascript" src="https://cdn.subscribers.com/assets/subscribers.js"></script>


Please let me know when this is done, thanks so much for helping me out.


2. Find your Site ID within your Subscribers account and copy it.


3. Replace the text “ENTER SITE ID” in the email with your Site ID. It should look like this:




4. Once your developer has let you know that the 2 steps are complete, your last step is to verify the installation is done correctly. Go back to your Subscribers account and click on Installation from the dropdown menu. Then at the bottom of this page click on Verify.



5. If you’ve received this message, you’ve installed it and verified it. You should now go to your website and become your very first subscriber!



6. If you receive a failed message, please try troubleshooting based on any error messages we display. If you are confident you have installed the code correctly you can override the verification tool manually by clicking here.