Blue Triangle automatically determines which sessions to collect resource timing (WCD) data for based on your site’s traffic and the details of your contract. Sometimes, you might want to turn on WCD collection for your individual browser session (for testing or troubleshooting). You can do so by following these steps:
- Open a website that is currently tagged with btt.js
- Note: this will not work unless btt.js is already loading and collecting data
- Open the developer tools (right-click on the page > Inspect, or F12, or Ctrl+Shift+i)
- Option 1 to turn on WCD collection:
- Click on the “Application” tab (might be under the >> icon if your developer tools window is too small)
- Click on “Local Storage”
- Click on the item for the primary domain (typically the first option under Local Storage)
- In the Filter box, type “BTT_WCD_Collect” (or find that in the Key column)
- The Value should have a format like this:
{"value":"off","expires":"1669217539532"} - Double click the value and set “value”: “off” to “value”: “on”
- If the “value” is already set to “on” then that means you already have WCD collection turned on and do not need to do anything else
- Option 2 to turn on WCD collection:
- Click on the “Console” tab (might be under the >> icon if your developer tools window is too small)
- Paste the snippet below in the console and hit Enter to run it
localStorage.setItem('BTT_WCD_Collect', localStorage.getItem('BTT_WCD_Collect').replace('"value":"off"','"value":"on"')); - From this point on, any new page hits will collect WCD data
- To confirm WCD collection is on, refresh the page
- Click on the "Network" tab in the developer tools
- Search for "btt" and confirm that there are requests with "wcd" in the file name (typically wcd.rcv)
Note: Not all browsers support WCD data collection so ensure you are using a compatible browser. More info here.
Comments
0 comments
Please sign in to leave a comment.