WordPress plugin

TagBuni user guide

How to install TagBuni, add your Pixel ID and Conversions API token, connect consent, test events, read the health check and fix common problems.

Updated 29 November 2026 · Version 0.9.3

Before you start

TagBuni is a free WordPress plugin that sends marketing events from your site and WooCommerce shop to the ad and analytics platforms you choose. Everything is off until you turn it on.

It is free on WordPress.org. This guide describes version 0.9.3.

  • WordPress 6.4 or newer and PHP 7.4 or newer. WooCommerce is optional.
  • An account with each platform you want to use, such as Meta or Google.
  • A cookie banner that supports the WP Consent API, plus the free WP Consent API plugin. Without consent, nothing loads and nothing is sent.

Test on a staging copy first. TagBuni does not by itself make a site legally compliant; your privacy notice and consent setup stay your responsibility.

Install TagBuni

  1. In WordPress, go to Plugins → Add New Plugin, search for TagBuni, then press Install Now and Activate. You can also download the ZIP from WordPress.org and use Upload Plugin.
  2. Open TagBuni in the left menu. It has three screens:
    • Platforms: IDs, tokens and test buttons
    • Health & test: problems with fixes, and an activity log
    • Settings: consent, WooCommerce, custom events, export and import

Turn on a platform

  1. Open TagBuni → Platforms and open the platform's card.
  2. Tick Turn on and paste its ID.
  3. Save.
PlatformWhat to pasteWhere to find it
MetaPixel ID, Conversions API tokenEvents Manager → Data sources → dataset → Settings
Google Analytics 4 / Google AdsGoogle tag ID (G-, AW- or GT-)GA4 Admin → Data streams, or Google tag settings
Google Ads conversionAW-…/labelGoogle Ads → Goals → Conversions → Tag setup
Google Tag ManagerGTM-XXXXTag Manager top bar
TikTokPixel ID, Events API tokenAds Manager → Tools → Events
PinterestTag ID, ad account ID, conversion tokenAds Manager → Conversions
Microsoft AdvertisingUET tag IDTools → UET tag
RedditPixel IDAds → Events Manager
OpenAI adsPixel ID, Conversions API keyOpenAI Ads Manager → Conversions
AwinAdvertiser IDYour Awin account

Menu names on these platforms change over time. Search the platform's help if one differs.

  1. Install a cookie banner that supports the WP Consent API, for example SureCookie or Complianz.
  2. Install the free WP Consent API plugin.
  3. On the Platforms page, check that TagBuni reports the banner as connected.
  4. Open your site in a private window, accept the banner and confirm events appear. Then decline in a new private window and confirm nothing loads.

The default is Wait for consent. If your visitors do not legally have to be asked, an administrator can tick an explicit confirmation to track without asking. Updates and imports never turn that on.

Send purchases from your server

Server events (for example Meta's Conversions API) help when browsers block tracking.

  1. In the platform's card, paste the access token and tick Send purchases from the server too.
  2. Save. Tokens are stored encrypted and are never shown again.

You can keep the token in wp-config.php instead:

define( 'TAGBUNI_META_CAPI_TOKEN', 'your-token' );

Browser and server purchases share one event ID, so Meta, TikTok, Pinterest and OpenAI count each order once.

Server purchases are available for Meta, TikTok, Pinterest and OpenAI ads. Microsoft Advertising and Reddit are browser-only.

Test it

  1. Copy the test event code from the platform (Meta: Events Manager → Test events).
  2. Paste it in the card and click Save & send test event.
  3. Confirm the event on the platform's test screen.
  4. Clear the test code and save. While a test code is set, real server purchases also go to the test screen only.

In a browser, open a private window, open the developer console and type tagbuniStatus. It shows the consent state, whether the pixel loaded and which events were sent.

Know how purchases are counted

  • Values and items come from the WooCommerce order, never from the browser.
  • Each order is sent once per platform, the first time it reaches a selected status (Processing and Completed by default).
  • Delayed payments are sent when they reach a selected status.
  • Meta rejects events older than 7 days, so such orders are skipped.
  • Delivery runs in the background with up to 5 attempts.

Add custom events

Open TagBuni → Settings → Custom events. Each rule has an event name, a trigger and a match:

TriggerExampleFires
Page path starts with/pricingOnce on matching pages
Click#signup-buttonWhen that element is clicked
Contact Form 7 sent42 (form ID)After the form is sent successfully

Form contents are never read. Rules are data only; no pasted code is run.

Use the health check

TagBuni → Health & test lists every problem it can detect, most serious first, with steps to fix each: missing consent plugin, missing or unreadable token, blocked connections, waiting purchases, duplicate pixels, optimizer plugins and more.

Click Check my pages to scan your home page and one product page for missing, delayed or duplicate pixel code.

Practise on a staging site

TagBuni does not track on development, staging or local sites by default. On such a site, click Turn on tracking on this practice site on the Platforms page, and use test event codes while you practise.

Back up and move settings

Export contains IDs and options, never tokens or customer data. An import switches every platform off and sets consent to wait, so you can review it first.

Remove TagBuni

Deactivating keeps everything. Deleting removes settings, secrets and logs only if Delete all TagBuni data when the plugin is deleted is ticked.

Troubleshooting

Nothing is being sent

Open Health & test. The usual causes are no connected consent banner, testing while logged in as an administrator (not tracked by default), or a non-production site.

Purchases are counted twice

Another plugin, theme or Tag Manager container is sending the same event. Choose one tool per platform.

"Token cannot be decrypted"

The security keys in wp-config.php changed. Paste the token again.

A server purchase is missing

Check that the order reached a selected status, and read the activity log for "skipped: consent", "too old" or "failed". On low-traffic sites, set up a real cron job for wp-cron.php.

Can it guarantee every sale is tracked?

No. Declined consent, ad blockers, browser limits and platform processing all affect what is recorded.

Still stuck?

Tell us what you tried and what happened. A person will answer.