Site logo of Analog Demo
Analog Demo
HomeBlogNewsTagsTeamAbout
Cover image of post: Analog User Guide - Web Analytics System

Analog User Guide - Web Analytics System

Published on · Edited on

Authors

Tags

# analog# analytics

Previous Article

Analog User Guide - Comment System

Table of Contents

Analog support website analytics systems, including Umami and Google Analytics. With them, you can easily track your blog's performance and user behavior.

Now, let's demonstrate how to set up an analytics system using Umami as an example.

Umami

  1. Log in Umami. Click the "Add website" button on the "Websites" page, and fill the form with your blog's information such as name and homepage URL. Click "Save" to complete site creation.
    Umami Add Website

    Add website information on Umami

  2. On the next page, find the "Website ID" (a very long string), and set it as the value of analytics -> umamiAnalytics -> umamiWebsiteId in the user configuration file /data/site-config.ts.
    Umami Website ID

    Find the Website ID on Umami

If you have completed the above steps, your configuration file should look like this:

Now, Umami will track your blog's traffic. You can view the statistics on the Umami dashboard.

To make it easier for visitors to access the analytics, you can add an icon link to the footer.

Umami provides a "shard link" on the "Websites" page. You may need to enable it first.

Umami Share Link

Find the Share Link on Umami

You can add the above URL with a Tabler icon in the user configuration file /data/site-config.ts, like this:

Then, you can see the analytics icon in the footer of your blog (like this demo site).

Google Analytics

Google Analytics in Analog is powered by @next/third-parties. It is a out-of-the-box solution for integrating Google Analytics. Read the Next.js documentation for more details.

See Also

It is easy to integrate other analytics systems into Analog. You can refer the source code of timlrx/pliny/analytics, which includes lots of analytics systems such as Plausible, PostHog, and more. The analytics systems in Analog are implemented in a similar way, so it should not be difficult to add support for them.

Analog User Guide - Web Analytics System

https://analog-demo.zhutmost.com/post/doc/analytics

Authors

Hogwarts School

Posted on

Oct 29, 2024

Updated on

Sep 9, 2025