Google Ads and Meta conversion tracking on WordPress
Published November 10, 2026
How to track conversions from Google Ads and Meta on WordPress: pick the conversion page or event, add the tags the right way, handle consent, and test before you spend.
To track Google Ads and Meta conversions on WordPress, you do three things. First, decide what a conversion is: a thank-you page view or a specific event such as a form submit. Second, load each platform's base tag on every page and its conversion signal only when that action happens. Third, check consent and test with a real conversion before you raise your budget. The tools differ, but that order does not.
What counts as a conversion on a WordPress site?
Pick one clear action per goal. The two most common choices are a page and an event.
- A thank-you page. After a contact form, a booking or a checkout, the visitor lands on a confirmation URL. Counting visits to that URL is the simplest setup, and it works with almost any form plugin that redirects after submit. The weakness is that anyone who reloads or bookmarks the page can be counted again.
- An event. A form that confirms in place, a click on "Book a call" or a download has no new page. Here you need a tag that fires when the action happens, which means a little more setup.
For a shop, the order confirmation page is the usual choice. For a lead-generation site, count the form submission itself, not the visit to the page that holds the form.
Write the goal down before you touch a tag: its name, its page or event, and whether it has a value. Both Google Ads and Meta ask for these details later.
How do you set up Google Ads conversion tracking on WordPress?
In Google Ads, a web conversion starts in Goals, under Summary, with "Create conversion action", as described in Google's help page on web conversions. You can set it up automatically without code from a URL, or manually with code.
The manual route uses two pieces. Google's documentation on the Google tag says the global site tag is now the Google tag, that it belongs on all pages of your website, typically in the head, and that an event snippet goes on the conversion page itself. The Google tag and the event snippet work together.
On WordPress you have two ways to place them:
- Site Kit by Google. The official plugin has an Ads module where you enter your conversion tracking ID so the tag is added for you. Site Kit also records conversions from a short list of supported plugins, including WooCommerce, WPForms, Contact Form 7 and Ninja Forms, according to its plugin conversion tracking documentation. If your form is built with something else, you will need the manual route.
- Manual code in your theme or a header plugin. You paste the Google tag in the head and add the event snippet on the confirmation page.
Google warns about one trap in its own help page: third-party platforms may have plugins that manage tags, and if you use them you must make sure you are not double-tagging your site. If Site Kit, a header plugin and a tag manager all load the same tag, you will count conversions more than once.
One more setting matters for Google Ads. Auto-tagging adds a gclid parameter to the URL of the click, and Google says it is turned on by default for new accounts. Do not strip that parameter with a redirect plugin or a caching rule.
How do you set up Meta conversion tracking on WordPress?
Meta offers an official plugin, listed on WordPress.org as Meta pixel for WordPress. Its page says it installs a Meta Pixel on your site, includes support for the Conversions API, and covers standard events such as Lead, ViewContent, AddToCart, InitiateCheckout and Purchase. At the time of writing it requires WordPress 5.7 and PHP 7.4 or later.
That plugin gives you the browser side. The server side, the Conversions API, sends the same event from a server instead of the visitor's browser. If you have a pixel, Meta says you can set up the Conversions API with Meta for website events in one click from Events Manager.
The risk of using both is a double count. Meta's rule is to send the same event_id from both sides, with the same event name. Its deduplication documentation says the pixel eventID must match the Conversions API event_id, and that when the same combination arrives within 48 hours the later event is discarded. If you want the details, we explain how event_id really works, and whether you need both channels.
Where does the code go on WordPress?
It depends on the kind of WordPress you run.
Self-hosted WordPress (WordPress.org). You control the theme and plugins. WordPress's developer documentation describes wp_enqueue_script() as the recommended method of linking JavaScript to a page, called on the wp_enqueue_scripts action. The wp_head hook prints scripts or data in the head of the front end. Use a child theme or a small plugin, not the parent theme, so an update does not erase your tags.
WordPress.com. The plan matters. WordPress.com says adding code to the header is available on the Personal, Premium, Business and Commerce plans, and that free sites must upgrade. Installing plugins is also a paid-plan feature, according to its plugins page. If you are on a free site, you cannot add Google or Meta tags at all.
Whatever you choose, keep a short list of every tag and where it lives. Most "my conversions doubled" cases come from the same tag added by a plugin and by hand.
What does consent change?
A conversion tag is a tracker. In France, the CNIL expects non-essential trackers to wait for consent, and refusing must be as easy as accepting. In practice, that means your Google Ads and Meta tags must be held back until the visitor says yes, and a hard-coded tag in your theme is not held back by anything. We cover that setup in our guide to a CNIL-style cookie banner on WordPress.
Consent also changes what you will see. A visitor who refuses sends no browser conversion, so your numbers in Google Ads and Meta will be lower than your real sales. That gap is expected, not a bug. If you want to understand where it comes from, read why conversions drop after a consent change.
Is there a simpler setup that handles goals, consent and server-side sending?
One option is to define the goal once and let one tool report it to both platforms. Klickbee Tracking is built that way. You add its tracker to WordPress with a script tag (there is no plugin), create a goal for your thank-you path or a custom event, and map that goal to Meta and Google Ads. The install guide shows the script tag, and the goals page explains path, event and click goals.
Know how it sends things. Meta receives the conversion from the browser through your Meta pixel and from the server through the Conversions API, with the same identifier so it is counted once. Google Ads conversions go server-side only, through the Data Manager API, matched on gclid, gbraid or wbraid. Server-side sending is a Pro feature. The rule is strict: no consent, no conversion, and a visitor who refused or did not answer is never sent. A conversion debugger shows each delivery and why one was skipped. See the conversions help page and the server-side conversions feature.
Because Google Ads conversions from Klickbee arrive server-side, do not also keep a browser event snippet counting the same goal. Choose one path per conversion action.
This is a fit if you want one place for goals and consent. It is not a fit if you need audiences, remarketing lists or a full tag manager: keep those tools for that job. For store-specific steps, see Shopify conversion tracking for Google Ads and Meta.
How do you test before spending money?
Test each platform separately, then together.
- Open your site in a private window. Do not click the banner. Check that no Google Ads or Meta request fires yet.
- Accept the banner and complete the action you track: submit the form, or place a test order if your shop allows it.
- Look for the conversion in Google Ads and in Meta Events Manager. If it does not appear, check that you are on the right page or event name, and that only one copy of each tag exists.
- Repeat with a click that carries a
gclidfrom a test ad, if you can, since Google Ads matches on it. - Repeat on mobile and after every theme, plugin or caching change.
Run the full test again after each WordPress or plugin update. Caching and optimization plugins that delay or combine scripts are a frequent reason a clean setup stops working.
If you want to try the one-script route, create a free account and add the tracker to your WordPress header. The free plan covers one site with 1,000 sessions per month. Server-side Google Ads and Meta sending needs Pro.
This is general information, not legal advice. Consent rules differ by country, and the site owner remains responsible.
FAQ
Do I need a plugin to track conversions on WordPress?
No. You can paste the Google tag and Meta Pixel code yourself in your theme's head, or load it through a small plugin of your own. Plugins such as Site Kit or Meta pixel for WordPress save time, but they can also duplicate a tag you already added by hand. Use one method per platform.
Can I track Google Ads conversions without a thank-you page?
Yes. Use an event instead of a page. Fire the conversion when the form is submitted or the button is clicked. In Google Ads, that means an event snippet triggered by the action. In Klickbee, it means a custom event or a click goal that you map to the platform.
Why are my Google Ads conversions lower than my real sales?
Three common causes: visitors who refused tracking, a tag that fires on the wrong page or not at all, and two tags that counted one action while another was missed. Check each one in that order. A difference caused by consent is normal and should not be hidden by loading tags before the visitor answers.
Do I need the Meta Conversions API on WordPress?
Not to start. The pixel alone works. The Conversions API adds a server-side copy of the event, which Meta can use when a browser signal is missing. If you add it, send the same event_id from both sides so Meta does not count the conversion twice.
Does this work on WordPress.com?
Only on a paid plan. WordPress.com documents code in the header on the Personal, Premium, Business and Commerce plans, and plugin installation is also reserved for paid plans. A free WordPress.com site cannot load your own tags.