WordPress blog site to add statistics Umami code

Spread the love

umami

An open source website statistics application

Can be deployed in docker, open source self-hosted, free, data is completely yours

Why add umami separately when there is already a Google suite plug-in?

Because Google Analytics is constantly upgrading, the following situations may exist

Previous data cannot be seen after the upgrade

Google may not comply with the EU privacy protection law on cookie declaration and settings

Umami is open source and complies with the policy

If a Google account is disabled or deactivated for some reason one day, there is still umami data to view

You can also compare umami and Google Analytics at the same time to supplement the functions that the other party does not have

The deployment of umami is not described in detail here. If you need it, you can search for information online or comment to tell the corresponding Ask Monkey which one needs to be updated

The following figure is the tracking code of the corresponding website of umami

WordPress

Open the admin backend Appearance

Open Theme File Editor

Open the header.php file

Add the code you want to add above the tag, such as umami data code or Google ad code

Then click Update file on the bottom left

Be careful not to fill in the code format incorrectly, otherwise the blog site may not be opened

Tips

After reading a few articles, I believe you should understand why the first thing to do after successfully building a blog is to change or confirm the theme

Because the header or footer will add code to add functions, which is bound to the theme code

Leave a Reply

Your email address will not be published. Required fields are marked *