Linux 软件免费装

All-in-one CAPI for Meta & Pinterest + GTM

开发者 suhanduman
cenkcagdas
更新时间 2026年4月23日 03:18

标签

pinterest GTM meta pixel capi conversion api

下载

3.2.0 3.2.1 3.2.3 3.2.4 3.1.0 3.2.2 3.2.5 3.2.6 3.3.0 3.1.1

详情介绍:

Server-side tracking for your WooCommerce store — without a GTM Server Container, without a premium plugin, without a monthly bill. This plugin sends Meta (Facebook) and Pinterest Conversions API events from your WordPress server, and sets up a clean GTM dataLayer so your browser-side tags (Pixel, GA4, Pinterest Tag) work alongside it. Same event ID on both sides, so Meta merges them into one event instead of double-counting. What it does: What you don't need: Please check the installation page for the recommended GTM settings for deduplication.

安装:

  1. Upload the plugin folder to the /wp-content/plugins/ directory and activate it.
  2. Navigate to the Meta CAPI & GTM page from your main WordPress menu.
  3. Enter your GTM Container ID to inject the GTM script on your site.
  4. Enter your Meta Pixel ID and API Access Token for the server-side connection. Do the same for Pinterest if applicable.
  5. Go to the "Event Management" tab to select which CAPI events you want to track.
  6. Configure your GTM container using the instructions in the "Recommended GTM Setup" section below.
Recommended GTM Setup Crucial First Steps: To prevent duplicate events and ensure data accuracy, you must configure two settings in your Meta account and GTM container.
  1. Turn Off Meta's Automatic Event Tracking:
  2. In your Meta Business Suite, navigate to Events Manager and select your Pixel.
  3. Go to the Settings tab.
  4. Scroll to the Event Setup section and turn Off the toggle for Track Events Automatically Without Code. This plugin will handle all event sending.
  5. Pause Automatically Created GTM Tags:
  6. In your GTM container, please pause or delete any automatically created tags that start with FB_. Since we will be creating our own tags manually, only they should be active.
TEMPLATE SETUP To save time and prevent errors, we have created a GTM container template. You can import this file to automatically create all the necessary variables, triggers, and tags. Step 1: Download the Template Go to the "Meta CAPI & GTM" settings page in your WordPress admin panel. In the Main Settings tab, you will see a highlighted box with a link to download the gtm-template.json template file. Download this file to your computer. Step 2: Import the Template into GTM
  1. Go to your Google Tag Manager container.
  2. Navigate to the Admin section.
  3. Click on Import Container.
  4. Click Choose container file and select the gtm-template.json file you downloaded.
  5. Choose a New workspace and give it a descriptive name (e.g., "CAPI Import").
  6. IMPORTANT: Choose the Merge import option. Do NOT choose "Overwrite", as this could delete your existing tags.
  7. The preview screen will show you all the new tags, triggers, and variables that will be added. Click Confirm.
Step 3: Configure Your IDs After the import is complete, you must update the placeholder IDs with your own tracking IDs.
  1. Go to the Variables section.
  2. Find and click on the "CONST - Meta Pixel ID" variable.
  3. Replace META_PIXEL_ID with your actual Meta Pixel ID.
  4. Save the variable. All Meta tags will automatically use this value.
  5. Go to the Tags section.
  6. Find and click on the "GA4 - Google Tag (Configuration)" tag.
  7. Replace GA4_MEASUREMENT_ID with your actual GA4 Measurement ID (e.g., G-XXXXXXXXXX).
  8. Save the tag.
  9. Find and click on the "Pinterest - PageView" tag.
  10. Replace PINTEREST_TAG_ID with your actual Pinterest Tag ID.
  11. Save the tag.
Step 4: Publish Once you have updated your IDs, click the Submit button in the top right corner, then Publish your container. Your GTM setup is now complete! If you prefer to configure Google Tag Manager manually, or if you encounter any issues with the template import, the following guide provides step-by-step instructions to get everything configured. MANUAL SETUP Step 1: Create GTM Variables Create the following variables of the type Data Layer Variable. Step 2: Create GTM Triggers Create the following triggers using the Custom Event type. Step 3: Create GTM Tags A) Meta Tags (Facebook Pixel) Install the "Facebook Pixel" template from the GTM Community Template Gallery. Create the following tags. B) Pinterest Tags Prerequisite: Install the "Pinterest Tag" template from the GTM Community Template Gallery. You must also create the following Data Layer Variables for e-commerce data: C) Google Analytics 4 Tags Prerequisite: Before you begin, make sure you have your Measurement ID (starts with G-) from your Google Analytics 4 property. You must also create the following Data Layer Variables:

常见问题:

Does this plugin replace the Meta Pixel?

No, it works alongside it. The plugin sends server-side (CAPI) events, while GTM handles the browser-side Pixel. Both use the same event_id, so Meta merges them automatically without counting anything twice.

What is the difference between this and a GTM Server Container?

A GTM Server Container runs on Google Cloud and costs money every month. This plugin does the same job directly from your WordPress server — no extra infrastructure, no extra bill.

Does it work with page caching plugins (WP Rocket, LiteSpeed, etc.)?

Yes. PageView and ViewCategory events fire from JavaScript, so they work even on fully cached pages. Cart, checkout, and purchase pages are not cached by default.

What plugins are required?

WooCommerce. That's it. If you use other GTM plugins (like Google Site Kit), disable their e-commerce features to avoid conflicts.

Is there a pro version?

No. Everything is included.

My events aren't showing in Meta Events Manager. What's wrong?

Check these in order:

  1. Open your Event Log tab in the plugin settings. If events appear there with "Success (Meta)", the plugin is sending them. If Meta isn't receiving them, the problem is on Meta's end — usually Pixel ID or Access Token mismatch.
  2. If the log is empty after visiting your store, you likely have a JS optimizer (LiteSpeed / WP Rocket / Autoptimize) deferring the plugin's tracking scripts. See next answer.
  3. Check the admin notice on the plugin settings page — the plugin auto-detects your cache setup and shows exclude-list instructions.

I use LiteSpeed Cache. How do I configure it?

Go to LiteSpeed Cache → Page Optimization → JS Settings → JS Defer Excludes and add these script IDs (one per line): mcapi-pageview-init mcapi-viewcontent-events mcapi-viewcategory-events mcapi-frontend-events Then purge all cache.

I use WP Rocket. How do I configure it?

Go to WP Rocket → File Optimization → JavaScript → Excluded JavaScript Files and add the same script IDs listed above for LiteSpeed. Then clear WP Rocket cache.

I use Autoptimize. How do I configure it?

Go to Autoptimize → JS, CSS & HTML → Exclude scripts from Autoptimize and add the same script IDs.

What about Cloudflare Rocket Loader?

The plugin adds data-cfasync="false" to its inline scripts, which Cloudflare Rocket Loader respects. No configuration needed.

Does it work with a block-based theme (e.g. Twenty Twenty-Five)?

Yes. The plugin's tracking works with the WooCommerce Products block used by FSE themes.

更新日志:

3.3.0 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 3.2.0 3.1.1 3.1.0 3.0.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0