How can I check that Batch JavaScript tag is available on my website?

Follow this guide to ensure that the JavaScript tag has been added to the pages of your website.

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".

List of actions available displayed on Chrome after right-clicking on the website to select 'Inspect' option.
  1. In the section that opens, press Ctrl + F (on Windows) or ⌘+F (on Mac) to open the search bar.

  2. Look for text contained in the tag (for example "batchsdk(").

  3. Press ⏎ Enter on your keyboard until you see the code of the tag:

In the Elements section of the web inspector of Chrome, perform a search using the keyword 'batchSDK' to locate the JavaScript tag.

B) Firefox

Right-click anywhere on your website then click "Inspect Element".

List of actions available displayed on Firefox after right-clicking on the website to select 'Inspect Element' option.
  1. In the section that opens, press Ctrl + F (on Windows) or ⌘ + F (on Mac) to open the search bar.

  2. Look for text contained in the tag, for example, "batchsdk( ".

  3. Press ⏎ Enter on your keyboard until you see the code of the tag:

In the Inspector section of the web inspector of Firefox, perform a search using the keyword 'batchSDK(' to locate the JavaScript 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.

Last updated

Was this helpful?