API if you want to send data from a script;
/count is only
intended to be loaded by the visitor’s browser.
The tracking pixel won’t allow recording the referrer or screen size, and may also increase the number of bot requests (we do our best to filter this out, but it’s hard to get all of them, since many spam scrapers and such disguise themselves as regular browsers).
Wrap in a
<script data-goatcounter="https://MYCODE.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script> <noscript> <img src="https://MYCODE.goatcounter.com/count?p=/test-noscript"> </noscript>
This accepts the following query parameters:
||Page path or event name.|
||Referrer value; usually the Referer header.|
||event; as boolean (
||-||Query parameters, for getting campaigns.|
||-||screen size, as
||-||Flag this as a “bot request”; number.|
||-||Ignored; intended as a “cache buster”.|
rnd is useful as sometimes browsers and proxies have their own opinion about
what can or can’t be cached in spite of what the cache headers say.
b accepts an integer constant from the zgo.at/isbot library and
should be >=150. See the count.js source how to detect this. Current
150– Phantom headless browser.
151– Nightmare headless browser.
152– Selenium headless browser.
153– Generic WebDriver-based headless browser.
Feel free to get in touch if you’ve got any questions or having any problems; a lot of times they can be resolved without too much problems.
Ways to contact me: show