Skip to content

Analytics

Mkdirs uses Google Analytics or OpenPanel as the analytics service, but you can also add other analytics services, and we will support more in the future.

Google Analytics

Follow the official guide to set up Google Analytics for a website.

Then copy the Google Analytics ID, and set it to the .env file.

.env
# [only required if you are using Google Analytics]
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=your_google_analytics_id;

Google Analytics

OpenPanel Analytics

  1. Create an account on OpenPanel

    Follow the steps to create your account.

  2. Create a new project

    Click on the Create Project button, enter the name of your project to create a new one.

  3. Create a new client

    Click on the ... button next to the project name, and select Projects.

    Click on the New Client button, and enter the domain to create a new client.

  4. Get the OpenPanel Client ID

    Once the client is created, copy the Client ID and set it to the .env file.

    .env
    # [only required if you are using OpenPanel]
    NEXT_PUBLIC_OPENPANEL_CLIENT_ID=your_open_panel_client_id;

    OpenPanel Client

Video tutorial

Further Reading