How to check your AnalyticsJS implementation

Once you have AnalyticsJS installed on your website, you'll want to make sure that the script is firing as expected.

The first thing you'll want to do is open developer tools in your browser. If you don't know how to do this, check out this article from AirTable.

Checking the Page call

To test that the Page call was fired:

  1. Open developer tools.
  2. Click into the Network tab and go to the page that contains AnalyticsJS.
  3. Search for "metarouter" (no quotes)

You should see a POST request made to "https://e.metarouter.io/v1/p" with a 200 status code. Here's an example of what you might see in your browser:

If you can't find this request, or the status code is not 200, there is likely a problem with the implementation.

Checking the Identify call

If you've installed the snippet to make the identify call, here's how to confirm that the snippet is working.

  1. Open developer tools
  2. Click on the Network tab and go to the page containing the Javascript snippet. Make sure `Preserve Log` or `Persist Log` (depending on your browser) is checked
  3. Fill out a form and click submit
  4. Search for "metarouter" (no quotes)

You should see a POST request made to "https://e.metarouter.io/v1/i" with a 200 status code (similar to the above screenshot0.

If you don't see this request, there is likely a problem with the implementation.

If you do see the request, next you need to check the payload that is getting sent.

  1. Click the Headers tab
  2. Scroll down to Request Payload
  3. Make sure the email address that was submitted in the form is contained in the payload

If you don't see any email data or incorrect email data, then there's an issue with the implementation.


How did we do?