Matomo is a fully featured web analytics server and is a great alternative to Google Analytics when data ownership and privacy compliance are a concern.
The service is composed by the following components:
- matomo: includes two containers within a single pod, the matomo analytics instance and matomo-proxy, which is the nginx used to proxy http requests.
- matomo-db: a mariadb instance that will be used to store the analytics data.
The templates provided in the
openshift folder include everything that is necessary to create the required builds and deployments.
Since there are interdependencies between deployment configurations, please make sure to follow this order when creating them for the first time:
- build and deploy the database
- build and deploy the Matomo analytics server and proxy
Once you've cloned the repository, open a bash shell (Git Bash for example) to the
openshift directory of the working copy.
The following example assumes an OpenShift project set named ggpixq ...
./manage -n ggpixq init- to initialize the configurations to be deployed into your project.
./manage build- to publish the build configuration(s) into your
toolsproject and start the build.
./manage -e prod deploy- to publish the deployment configuration(s) into your
prodenvironment and tag the application images to start the deployments.
- Browse to the deployed application to complete the configuration.
The deployment will have created two sets of secrets for you to referance while completing the initial configuration; matomo-db, containing the database info and randomly generated credentials and matomo-admin, containing randomly generated credentials for your main super-user account.
For full script documentation run
Once everything is up and running in OpenShift, follow the instructions to create your superuser, set-up the connection to the database and initialize the Matomo dashboard.
To start tracking, copy the snippet for the appropriate website in the Matomo dashboard and place it in your website.