# Testing & Debugging

### Using the Browser Console

After setting up the web tracking SDK, the best way to debug it is by going on the site it was installed on and monitoring the network traffic through your preferred browser's Inspectection tool.

For example, if you are using Google Chrome, open the console by right clicking anywhere on your page and choosing `Inspect`. In order to find the events that are sent to CrossEngage, click on the `Network` tab in the top bar of the newly opened inspect area. In the search window, type `track`. Refresh the page to see all events sent to CrossEngage and continue browsing, analysing whether or not the events are triggered as expected.

<figure><img src="/files/M7Qi2LYW6Jftk4wXjyrd" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/YIeikjmFRgqVmIyJ5m6f" alt=""><figcaption></figcaption></figure>

To view the events in detail, click on the tracked event; you will see the all information of the Request that is sent to CrossEngage.

## Using the event stream

In addition to using your preferred browser's inspect tools to ensure that events are sending correctly, you can also verify this through the Event Stream feature of CrossEngage.

To monitor events in real-time, select "Event Stream" from the navigation bar.

<figure><img src="/files/0T9sgndT1LJZ8ZBWowHz" alt=""><figcaption></figcaption></figure>

Click on the Filter icon and choose "User". Here you can filter events by User XNG-ID or Session ID.

<figure><img src="/files/p8Mbjwfg3ueGzJvGZBpP" alt=""><figcaption></figcaption></figure>

If your domain is not yet authorized by CrossEngage, you will receive the following error message:

```
XMLHttpRequest cannot load https://api.crossengage.io/api/.... Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
```

In order to fix this, [please submit a ticket](/data-and-engagement-platform/help-and-support/reach-out-to-customer-support.md) with a request to include your website in the list of accepted domains.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.crossengage.io/data-and-engagement-platform/web-tracking/web-tracking-v1-legacy/testing-and-debugging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
