Once you have followed the steps to integrate web push into your website, you may need to check if the JavaScript tag that launches Batch is correctly added to your website.
Here is how to do it using Firefox and Chromium-based web browsers:
A) Chromium-based browsers (Chrome, Edge...)
Right-click anywhere on your website, then click "Inspect".
In the section that opens, press Ctrl + F (on Windows) or ⌘+F (on Mac) to open the search bar.
Look for text contained in the tag (for example " batchsdk( ").
Press ⏎ Enter on your keyboard until you see the code of the tag:
B) Firefox
Right-click anywhere on your website then click "Inspect Element".
In the section that opens, press Ctrl + F (on Windows) or ⌘ + F (on Mac) to open the search bar.
Look for text contained in the tag, for example, " batchsdk( ".
Press ⏎ Enter on your keyboard until you see the code of the tag:
Can't find the JavaScript tag?
Check the following options:
Ensure that you deployed the JavaScript tag on the correct website (e.g. staging instead of production).
If you used Google Tag Manager, make sure you followed these steps: How to integrate Batch's snippet using Google Tag Manager?
You may also have added the JavaScript tag as an external script. For example:
<script async="" src="//static/js/pushweb.min.js"></script>
In this case, ensure that this reference is available in the source code of the page (as described above) and that the referenced script corresponds to the tag.
Need more help?
If you have any questions, don't hesitate to ping us at support@batch.com, or directly on the live chat!