Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/brncoil/brn-lead-count/archive/refs/heads/main.zipUpdates itself. It ships its own updater, so new versions appear under Dashboard → Updates.
WordPress plugin that counts and logs lead events: phone clicks, WhatsApp clicks, and form submissions.
Features
- Tracks phone (
tel:), WhatsApp, and form-submit events on any page. - Admin dashboard with totals and a detailed event log.
- Configurable log size and enable/disable toggle.
- Automatic updates from GitHub Releases — checked once per day.
- Manual "Check for updates now" button in the plugin settings page.
Installation
- Download the latest ZIP from the Releases page.
- In WordPress admin go to Plugins → Add New → Upload Plugin and upload the ZIP.
- Activate the plugin.
Or clone this repository into wp-content/plugins/brn-lead-count/ and activate from the Plugins screen.
Releasing a new version
- Update the
Version:header inbrn-lead-count.php. - Commit and push.
- Create a GitHub Release tagged
vX.Y.Z(e.g.v1.0.1). - Attach an installable ZIP as a release asset:
- The ZIP must contain a single top-level folder named
brn-lead-count/. - Inside that folder
brn-lead-count.phpmust be present at the root. - Example structure inside the ZIP:
brn-lead-count/ brn-lead-count.php assets/ includes/ index.php
- The ZIP must contain a single top-level folder named
- Sites running the plugin will detect the update within 24 hours and auto-install it.
Auto-update mechanism
The plugin hooks into WordPress's native plugin-update system (pre_set_site_transient_update_plugins and plugins_api) so updates appear on the standard Plugins screen. The auto_update_plugin filter is used to allow WordPress core to install updates automatically with no user interaction required.
Requirements
- WordPress 5.6+
- PHP 7.4+
License
GPL-2.0-or-later