Here’s how you can set up PushCrew on an HTTPS website :

  1. Login to your PushCrew dashboard.

    2. 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. Add your FCM credentials :

    Click on Settings - Account - scroll below to the FCM Project Number and API Key section. Update your FCM details here. Here’s an article on how to get your FCM Project Number and API Key

     


    4.Upload Files to the root of your website domain :

    Once you have added your FCM credentials, 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.

    Here’s how you can set up PushCrew on an HTTPS website :

     

    1. Login to your PushCrew dashboard.
  2.  

    1. Get your Smart Code :
  3.  

    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.

    Screen_Shot_2018-10-11_at_6.26.46_AM.png
    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.

    Screen_Shot_2018-10-11_at_6.26.51_AM.png

    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 :

    Screen_Shot_2018-10-11_at_6.26.57_AM.png

    Should you have any queries, feel free to get in touch with us at support@pushcrew.com and we’ll be happy to help :)