To troubleshoot Heap API calls that don’t appear to be collecting data, take the following steps:
- Test the API call via your browser console to see if the network request comes through. You can submit the API call on the console tab, then check the network tab to see if appears there. If it doesn’t, or if there is an error, the request may not be formatted correctly to send data into Heap.
- Audit your network requests to make sure you’re seeing the right data calls. To learn more, see Chrome’s documentation on inspecting network activity.
As a best practice, we recommend you always use your Heap developer/test environment to test your APIs, so you that don’t erroneously send junk data into your Main environment.