Implementation validation
Last updated
Was this helpful?
Last updated
Was this helpful?
Using the Chrome DevTools Console, we can inspect network communication and other memory objects to check whether Roivenue Measurement was correctly implemented.
Navigate to your website with Roivenue Measurement implemented.
Open console (F12).
Navigate to "Network".
Make a page view or refresh the page.
The network tab will contain many requests; you can filter them. Use "tr.roivenue.com/e/" to find Roivenue Measurement events.
If the request status is equal to 200, everything is correct! If you see a different status, contact support for help.
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".
Let's assume you use the sessionStorage option when a user does not grant consent, and the localStorage+cookie with consent. This means that if you open your website in an anonymous window, open the console (F12), instead of Network, navigate to Console and type in $rm_state, you should see persistence: 'sessionStorage' (or any other option based on your implementation). Now, accept cookies, and make a page view. Type in the $rm_state again. You should see persistence: 'localStorage+cookie' (or any other option based on your implementation).
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).