Download the PHP package privatus/bolt-privatus-analytics without Composer

On this page you can find all versions of the php package privatus/bolt-privatus-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bolt-privatus-analytics

Privatus Analytics for Bolt CMS

Real visitor numbers for your Bolt CMS site. No cookies, no cookie pop-up, no bots.

You want to know if people visit your Bolt CMS site. But Google Analytics uses cookies, so in many countries you must show a cookie pop-up first (the box that asks visitors to say yes to cookies). Many people click no, so they never show up in your numbers. Bots add fake visits on top.

This extension adds the Privatus Analytics script to every front-end page of your Bolt CMS site. You set your site ID once in a config file. Your own visits are not counted while you are logged in, unless you turn that off. The script sets no cookies and keeps no IP addresses. Bots are filtered out before they are counted.

So you see how many real people came, which pages they looked at and where they came from, on one simple dashboard. A report comes to your inbox each week, and you can set alerts for when traffic jumps or drops. And you don't need a cookie pop-up for your analytics.

Free plan, no card: 10,000 events a month (an event is a page view or an action you track) on up to 3 sites. Start free at privatusanalytics.com.

Requirements

Install

The second command copies the default settings to config/extensions/privatus-boltanalytics.yaml.

Setup

Open config/extensions/privatus-boltanalytics.yaml, paste your site ID and clear the cache:

Until you set a valid site ID, the extension adds nothing to your pages. The tag goes at the end of <head> on front-end pages. The Bolt back end never gets it.

Settings

Setting What it does
site_id Your Privatus Analytics site ID, like pa_7Q2K9XH3AB. If it is empty, the PRIVATUS_SITE_ID environment variable is used. A value that does not look like a site ID prints nothing.
modules The extra tracking to load. engage is time on page and how far people scroll. auto is clicks on outside links, file downloads, forms people send and missing pages (404). vitals is page speed (Web Vitals). clicks is click maps. ask is short surveys on your site. Use [] to load none.
skip_logged_in On by default. People logged in to Bolt get no script, so your own visits are not counted.

With the default settings, the extension adds this to each page:

External service

After you save a site ID, every page loads https://privatusstats.com/js/pa.js in the visitor's browser. The script sends the page address (query parameters are removed except campaign parameters), the referrer, the browser language, the screen width, the time zone name and event names to https://privatusstats.com/api/event. The visitor's IP address is read in memory to work out a rough country and to count unique visits, and it is not stored.

Development

License

MIT. See LICENSE.


All versions of bolt-privatus-analytics with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
privatus/analytics Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package privatus/bolt-privatus-analytics contains the following files

Loading the files please wait ...