How Pushbroom works
You don't need this page to use Pushbroom. It describes what happens between a visitor's browser and your dashboard.
Where your data is kept
Pushbroom writes each page view and event to your personal data store: storage that comes with your account and belongs to you. The data is in an open, standard format. Your dashboard reads it back from your data store.
Pushbroom's servers keep two things for each site: which data store the site writes to, and a monthly count of recorded page views and events, used to apply your plan's limit. They don't keep copies of your page views or events.
The script
The script is about 190 lines of JavaScript, served minified. The full source is published at pushbroom.co/script.src.js. When a page loads, the script:
- Requests a visit identifier.
- Finds each
<push-broom>element on the page and records a page view for it. - Sends page views and events to Pushbroom as
GETrequests.
The script doesn't set cookies. It uses the browser's local storage only to remember an opt-out.
Visits
A visit identifier is a random value. It isn't based on anything about the visitor. The browser keeps it in its HTTP cache for the length of the visit, not in a cookie.
- A visit lasts two hours from its first page view. Later activity doesn't extend it.
- Each identifier belongs to one site.
- Pushbroom never links an identifier to an account, an email address or another visit.
As a result, Pushbroom can't tell whether two visits came from the same person.
Fields
Pushbroom has no fixed list of fields. A new pb: attribute or event data key is recorded as soon as it arrives, and you can filter by it right away. You don't need to declare fields in advance.
Because the data store is yours, other tools can write to it too, for example deploy markers from a CI job.
Related
- Bring your own provider: use an account from a provider you already have.