Guides
Debug a project with Logs
When a banner does not show, or a choice does not save, you can find the cause in the Dashboard. You do not need access to your servers. You do not need to ask Inth support. Logs shows what your site sent to the project and what the banner did.
Open Logs
- In the Dashboard, open the project.
- Under Consent, select Logs.
- Select a tab: API requests or Events.
The newest rows are at the top. All times are in UTC.
The two tabs
| Tab | One row is | Use it to |
|---|---|---|
| API requests | One call from a site to the project's Consent API | Find failed calls and slow calls |
| Events | One banner load, or one choice that a visitor saved | Find out if the banner showed, and what the visitor chose |
API requests
Each row shows the status, the method and the path. On a wide screen, the row also shows the duration, the size, the location and the browser.
- Status 2xx or 3xx. The Consent API answered.
- Status 4xx. The Consent API refused the request. Look at the path and the request ID.
- Status 5xx. The request failed on the server.
- — (no status). The status of the request is not logged yet. It can arrive some seconds after the request. Select Refresh to load it.
A duration of 1 second or more shows in a warning color.
Use the Status control above the table to show only 2xx, 3xx, 4xx or 5xx rows.
Events
Each row is one event from a visitor's journey:
| Row says | What happened |
|---|---|
| Banner shown | The banner loaded and asked the visitor for a choice. |
| Stored choice applied | The visitor chose before. c15t used that choice and did not ask again. |
| No banner needed | The policy for the visitor's region does not ask for a choice. |
| Accepted all from the banner | The visitor accepted all categories in the banner. |
| Rejected all from the preferences | The visitor rejected all optional categories in the preferences dialog. |
| Saved a custom choice from the banner | The visitor chose some categories and not others. |
A save can also come from the widget, or from code on your site.
Events hold no IP address, no fingerprint and no subject ID. To connect events, use the journey ID.
Find a row
Type in the search field. Press / to go to the search field from anywhere on the page.
| Tab | The search finds |
|---|---|
| API requests | The request with that request ID, or each request whose path contains the text |
| Events | The events with that journey ID |
Only an exact ID finds a request or an event. Part of an ID finds nothing. A path search is not case sensitive.
To remove the search and the status filter, select Clear filters in the empty table.
Read one row
Select a row. A panel opens on the right. It shows the row as a trace, from the start to the end:
- API requests. The trace starts at Request received. Then it shows the request, the visitor, the routing and the response. The trace ends at Response sent, with the time that the response took. If the status is not logged yet, the trace has no end.
- Events. The trace starts at Banner loaded or Choice saved. Then it shows the journey and the banner. The banner card shows the policy and, if one ran, the experiment.
To copy a request ID or a journey ID, select the copy button beside it.
To go to the next row or the previous row, use the arrows at the top of the panel. You can also press the up arrow or the down arrow on a row in the table. When the panel is open, it shows the row that you move to.
To close the panel, press Esc or select the close button.
Show rows like this one
At the bottom of the panel, a button shows only the rows that are like the open row:
| Tab | Button | The table then shows |
|---|---|---|
| API requests | Only and the path | Each request to that path |
| Events | Show this journey | Each event in the same visitor's journey |
The button puts the value in the search field. To go back, clear the search field.
Read the chart
The chart above the table shows when the loaded rows happened. Each bar is one period of time. The text under the chart tells you the period for each bar.
| Tab | The bar shows |
|---|---|
| API requests | Requests that succeeded, requests that failed with a 4xx status, requests that errored with a 5xx status, and requests with no status yet |
| Events | Banner loads and saved choices |
Put the pointer on a bar to see the counts. Select a bar to open the newest row in that period.
The chart counts only the rows that the table loaded. To add older rows to the chart, select Load older.
Get new rows
- Select Refresh to load the newest rows one time.
- Select Live to look for new rows each 10 seconds. Live stops when the browser tab is not visible. It starts again when you come back. Select Live again to stop it.
The time of the last load shows beside Live.
Load older rows
The table loads 50 rows at a time. To see older rows, select Load older at the bottom of the table. When there are no older rows, the bottom of the table says nothing older.
Logs shows rows for the analytics history of your plan. See Pricing.
| Plan | Logs goes back |
|---|---|
| Free | 24 hours |
| Starter | 7 days |
| Pro | 30 days |
| Business | 90 days |
| Enterprise | Up to 90 days of API requests and 180 days of events |
Common checks
| Problem | What to do |
|---|---|
| The banner does not show on your site | Open Events. If the row says No banner needed, the policy for that region asks for no choice. If there is no row, open API requests and look for a failed call. |
| A visitor's choice does not save | Open API requests. Select 4xx or 5xx, then open the row and read the response. |
| A request shows no status | Wait some seconds, then select Refresh. The status can arrive after the request. |
| The table is empty | Your site has not called the project yet. Make sure that your site uses the project's backend URL. See Connect c15t. |
| The table shows Couldn't load the logs | Select Try again. If the error stays, contact Inth support. |