Here’s how you can set up PushCrew on an HTTPS website :
- Login to your PushCrew dashboard.
- Get your Smart Code :
Go to the Settings - Smart Code tab. You will see a snippet of code called the Smart Code. This code helps you keep track of your old and new visitors, and also captures all the analytics data.
a. If you want the opt-in box (that asks for permission to send Push Notifications) to appear on every page that a user visits for the first time :
Copy this Smart Code (as shown in the red rectangular box in the image above) and paste it just before the closing of the HEAD tag of your website. In HTML, it is denoted as </head>.
It is recommended to show the opt-in box on the website home page and other landing pages.
b. If you want the opt-in box to appear on a specific page to a visitor :
Paste the Smart Code on the specific page where you want the opt-in box to appear to your first-time website visitor. For more details please check the following article.
Alternatively, you can also enter the email of the web developer who handles the website code for you and PushCrew will send him the smart code in an email.
3.Upload Files to the root of your website domain :
Go to the Settings - Smart Code tab. Under the HTTPS Implementation section, click on the ‘download the files’ option.
After the files are downloaded, upload these to the root of your website domain.
If the files have not been uploaded correctly to the root of your domain, you will start seeing the below error message on this page :
Should you have any queries, feel free to get in touch with us at firstname.lastname@example.org and we’ll be happy to help :)