Codeworks Umami
Integrate Umami Analytics with your WordPress site using the CodeWorksUmami plugin. This plugin allows you to easily add Umami tracking to your website without modifying your theme files, leveraging WordPress's native settings API and script management.
by Codeworks - Luca Visciola · github.com/codeworks-projects/codeworks-umami-wordpress-plugin · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/codeworks-projects/codeworks-umami-wordpress-plugin/archive/refs/heads/master.zipCodeWorks Umami: WordPress Umami Analytics Integration
Seamlessly integrate Umami Analytics with your WordPress site, enabling privacy-focused, self-hosted web analytics without modifying your theme files.
Table of Contents
Features
- Easy Integration: Seamlessly adds Umami tracking code to your WordPress site.
- Admin Settings Page: Configure your Umami Website ID and Script URL directly from the WordPress dashboard.
- Optimized Script Loading: Loads the Umami script with
asyncanddeferattributes for better performance. - Clean Uninstallation: Removes all plugin-related options from your database upon uninstallation.
- Developer-Friendly: Built with modern PHP practices, namespaces, and WordPress best practices.
Installation
- Download the plugin ZIP file.
- Upload the plugin to your WordPress site via
Plugins > Add New > Upload Plugin. - Activate the plugin through the 'Plugins' menu in WordPress.
Configuration
- After activating the plugin, navigate to
Settings > Umami Analyticsin your WordPress admin dashboard. - Umami Website ID: Enter the Website ID provided by your Umami Analytics instance. This is a unique identifier (e.g.,
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). - Umami Script URL: Enter the full URL to your Umami tracking script (e.g.,
https://your-umami-instance.com/script.js). - Save Changes: Click the 'Save Changes' button.
The Umami tracking script will now be automatically added to the footer of your website's frontend pages.
Usage
Once configured, the plugin operates automatically, sending your website's traffic data to your specified Umami Analytics instance. You can verify proper integration by checking your Umami Analytics dashboard for incoming data.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Codeworks: https://codeworks.build
Luca Visciola: https://github.com/melasistema