# Implementation validation

Using the Chrome DevTools Console, we can inspect network communication and other memory objects to check whether Roivenue Measurement was correctly implemented.

### Check That Events Are Sent to the Roivenue Server

1. Navigate to your website with Roivenue Measurement implemented.
2. Open console (F12).
3. Navigate to "Network".
4. Make a page view or refresh the page.
5. The network tab will contain many requests; you can filter them. Use "tr.roivenue.com/e/" to find Roivenue Measurement events.&#x20;
6. If the request status is equal to 200, everything is correct! If you see a different status, contact support for help.

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

### Check Consent Settings

To check if your persistence is set up correctly (respecting the consent settings), you can use the  $rm\_state object. This object contains a property called "persistence" which can have one of these values: "localStorage+cookie", "localStorage", "sessionStorage", "memory".

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

Let's assume you use the sessionStorage option when a user does not grant consent, and the localStorage+cookie with consent.&#x20;

1. Open your website in an anonymous window
2. Open the console (F12)
3. This time, select Console (instead of Network)
4. Type in $rm\_state
5. persistence: 'sessionStorage' should be displayed
6. Accept cookies
7. Type in the $rm\_state again
8. persistence: 'localStorage+cookie' should now be displayed

{% hint style="danger" %}
This behaviour can differ based on your consent strategy!
{% endhint %}

{% hint style="warning" %}
If this is your first time using Console, you will be prompted to type in "allow pasting" (if you want to copy and paste the value).
{% endhint %}

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

### First page view event

To accurately capture the source of a session, it’s essential to send the first page view event as soon as possible. This happens automatically if you don’t delay loading the tracking script for consent settings.

However, if you only start tracking users after they confirm their consent preferences, ensure that you trigger the Roivenue Tracking script using a "consent change" event. This ensures that Roivenue records the page view immediately after consent is given. Otherwise, tracking won’t begin until the second page is visited.

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


---

# 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://docs.roivenue.com/roivenue-resources/howto/roivenue-measurement-implementation/implementation-validation.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.
