Kembali ke semua guide

Performa

How to Install the Meta Pixel on WordPress with Google Tag Manager and Track WhatsApp Clicks

This guide shows you how to install the Meta Pixel on a WordPress website with Google Tag Manager, then send a Contact event every time someone clicks your WhatsApp button. You won't edit any theme files, and you prove it works in Events Manager → Test events before you spend anything on ads.

Every time a visitor clicks the WhatsApp button on your website, Meta receives a Contact event, and you can see it yourself in Events Manager. One Google Tag Manager container, two tags, no theme files to edit. Every tool is free; ad budget is separate.

What you end up with:

  • The Meta Pixel running on every page of your site through Google Tag Manager (GTM)
  • A Contact event sent each time a WhatsApp link is clicked, and not sent when any other link is clicked
  • Proof in Events Manager → Test events

How you know it worked: you open your site from Test Events, click the WhatsApp button once, and Contact shows up in the activity list.

One limit up front: this tracks button clicks, not chats that were actually sent. The chat happens inside the WhatsApp app, where the Pixel can't see. When we tracked WhatsApp clicks on Gwenchana's own website with this same GTM trigger, the number of chats that came in was different from the number of clicks.

For: business owners who get leads through a WhatsApp button on a WordPress site, already advertise on Meta or plan to, and have WordPress admin access.

Not for: ads that open WhatsApp directly without a website visit (the Pixel never sees those), or anyone who needs data on sent chats and closed sales.

What you need

Tool Used for Cost (checked 16 Oct 2026) Account
Meta Events Manager Creating the Pixel, Test Events $0 to create and test a Pixel Facebook, with access to a business portfolio
Google Tag Manager Trigger and tags Free Google
GTM4WP plugin Adding GTM to every WordPress page Free (WordPress.org) WordPress admin
Meta Ads Data Advisor (optional) Quick check for an existing Pixel Free Chrome and Edge extension Not needed to check

Meta Ads Data Advisor is the new name of Meta Pixel Helper.

Set it up in 5 steps

Step 1 — Get your Pixel ID from Events Manager

First check whether your site already has a Pixel, so you don't install it twice.

  1. Install Meta Ads Data Advisor in Chrome and open your website. If the icon shows no number or badge, that page has no Pixel.
  2. Open Events Manager and click Data sources in the left menu. If your Pixel is already listed, click its name and copy the ID.
  3. No Pixel yet? Click Connect data, choose Web, click Connect, enter a name, then click Create pixel.

Expected result: your Pixel is listed under Data sources, and you've copied its ID.

Watch out

The ID exists as soon as you click Create pixel. The wizard screens after that (partner integrations, Conversions API) aren't needed, because you're installing through GTM. Copy the ID from Data sources. If Data Advisor shows a Pixel already added by a plugin or your theme, skip sub-step 3 so you don't end up with a second Pixel.

Lanjutkan membaca secara gratis.

Masuk atau buat akun untuk membuka seluruh guide dan menyimpannya sebagai referensi kerja.