Fathom is an open-source analytics platform with a simple web interface. It provides full website analytics for small and medium-size businesses. When you want to take full control of your website analytics and data without using third-party solutions, like Google Analytics, then Fathom is a great place to start. Fathom may be the only web analytics that gives you full control over your data and more:

Free open-source software 100% data ownership User privacy protection User-centric insights Customizable and extensible Easy to use No data limits

This brief tutorial is going to show students and new users how to install Fathom on Ubuntu 16.04 and 18.04. For more on Fathom, please visit its home page to set up Fathom, follow the steps below:

Install MariaDB Database Server

MariaDB database server is a great place to start when looking at open-source database servers to use with Magento. To install MariaDB run the commands below. After installing MariaDB, the commands below can be used to stop, start and enable the MariaDB service to always start up when the server boots. Run these on Ubuntu 16.04 LTS Run these on Ubuntu 17.10 and 18.04 LTS After that, run the commands below to secure the MariaDB server by creating a root password and disallowing remote root access. When prompted, answer the questions below by following the guide.

Enter current password for root (enter for none): Just press the Enter Set root password? [Y/n]: Y New password: Enter password Re-enter new password: Repeat password Remove anonymous users? [Y/n]: Y Disallow root login remotely? [Y/n]: Y Remove test database and access to it? [Y/n]:  Y Reload privilege tables now? [Y/n]:  Y

Restart MariaDB server Now that you’ve installed all the packages that are required for Fathom to function, continue below to start configuring the servers. First run the commands below to create a blank Magento database. To log on to the MariaDB database server, run the commands below. Then create a database called fathom Create a database user called fathom user with a new password Then grant the user full access to the database. Finally, save your changes and exit.

Download Fathom Script

One can use Fathom Analytics simply by downloading its install script on a Linux machine. to do that, run the commands below: After downloading the script, run the commands below to make it executable and move it to the bin directory. Then move it to the default local bin directory. That should allow you to use Fathom on Linux systems, including Ubuntu.

Setting Up Fathom

Before you can use Fathom, you must first create an account. run the commands below to create an account to use via its web portal. That should create an account for the admin account. All configuration in Fathom is optional. If you supply no configuration values then Fathom will default to using an SQLite database in the current working directory. Most likely, you want to use MySQL or PostgreSQL if you’re planning on running Fathom for longer periods though. To do so, either create a .env file in the working directory of your Fathom application or point Fathom to your configuration file by specifying the –config flag when starting Fathom. Run the commands below to create the Fathom environment configuration file in your home directory. Then copy and paste the content below replacing the database name and password you created above. Save your changes and continue. Once you’ve configured the settings above, run the commands below to start the Fathom server. That should start up the server and begin listening on port 9000. Now open your browser and browse to the server hostname or IP address followed by port #9000 To ensure that Fathom starts automatically when you boot your server, create a system service account. Run the commands below to create one for Fathom. then add the content below into the file and save it. Save the file and exit. After that, run the commands below to enable the Fathom service. This is the code you’ll want to add to your web pages if you want to gather information about your website. For more on configuring Fathom, check out its GitHub page. Enjoy! You may also like the post below: