Docs menuInstall CentPath › Check it works
Check your installation
On this page
Once the snippet is on your site, check that CentPath receives your visits. The first pageview is the proof; the checks after it show where a missing one stops.
Watch for the first pageview
- Open your live site in a new tab and load any page.
- In CentPath, open your site and go to Setup → Install. Under the snippet, Waiting for your first pageview… turns into First pageview received. once the visit arrives. The line checks every few seconds at first, then once a minute.
- If it said First pageview received. before you started, your site has had visits already: look for this one in your dashboard instead, as below.
- Open your dashboard, or reload it: the visit is in Visitors and in the Visits feed, usually within a minute.
A new site's dashboard shows the same line under its snippet, until the first visit arrives.
A page from localhost or a staging copy of your site counts too, whenever it loads the snippet, so a test visit there proves the snippet works, not that your live site has it.
Check the page's source
The page's source is the HTML your site sends to every browser. If the snippet is in it, the page loads the snippet.
- On your live site, open the page's source: press Ctrl+U, or Option+Cmd+U on a Mac, or right-click the page and pick the browser's view-source command.
- Search the source for your site's id. It's in the snippet in Setup → Install, and in your dashboard's address, after your workspace's name.
- If the id is there, the snippet is on the page. If it isn't, the page doesn't load the snippet: publish your change, or add the snippet to the template that page uses.
The source can't show a script that Google Tag Manager adds, or one your app's own JavaScript adds after the page loads. Any check that reads your page's HTML misses those scripts in the same way, so for them the first pageview, or the request below, is the proof.
Check the request in DevTools
Each page view sends one request to CentPath. Your browser's developer tools show it, with CentPath's answer.
- Open your live site, then open the developer tools: press F12, or Option+Cmd+I on a Mac.
- Open the Network tab and type
eventin its filter box. - Reload the page. A request to
https://centpath.app/api/eventappears. - Check its status:
| Status | What it means |
|---|---|
| 204 | CentPath received the visit. |
| 404 | No site has this id. Copy the snippet again from Setup → Install. |
| 429 | Refused: the workspace has no plan or its trial's limit is reached (see Billing), or too many requests came from one address in a minute. |
| Another, like 400 or 503 | The visit wasn't stored. Reload the page; if it stays, write to us. |
No request at all means the script didn't run: see Troubleshooting.
A browser driven by a script, as test tools drive one, gets 204 too, but CentPath counts none of its visits. Check in your own browser.