Docs menu · WordPress Plugin

Docs / Integrations

Integrations

WordPress / WooCommerce Plugin

Easiest setup • No coding required • Full e-commerce tracking

Select Container Type:

sGTM Mode: Use your PixelFly-hosted Server-Side GTM container for full GTM control.

Proxy Mode: PixelFly routes events directly to ad platforms. No sGTM server needed.

Prerequisites: You need an sGTM container created in PixelFly dashboard with your custom domain configured.

1

Install the Plugin

Download the PixelFly for WooCommerce plugin and upload it to your WordPress site.

Download WooCommerce Plugin

Go to WordPress Admin → Plugins → Add New → Upload Plugin

2

Configure Plugin for sGTM

Navigate to WooCommerce → PixelFly and configure for sGTM mode.

  • Enable DataLayer for GTM
  • Leave API Key empty (not needed for sGTM)
  • COD stores: turn on COD Order Protection with mode GTM / sGTM, then switch COD on in the containers (step 4)
3

Configure GTM Web Container

In your GTM Web Container, set the Server Container URL to your PixelFly sGTM domain.

Set Server Container URL: https://server.yourstore.com

This is your custom domain from PixelFly sGTM container settings.

4

Import GTM Container Templates

Download our pre-configured container templates for both Web and Server GTM.

Import each container in GTM: Admin → Import Container → Choose file

Server Container includes:

  • Meta Conversions API tag
  • GA4 tag (with your Measurement ID)
  • TikTok Events API (paused until you add your details)
  • PixelFly COD Protection and Data Client (off until you switch COD on)

The Web Container also has Google Ads and TikTok tags, paused until you add your IDs. For COD: set PixelFly - COD Protection to on in the Web Container, and fill PixelFly - COD Host and PixelFly - COD API Key in the Server Container.

5

Publish & Test

Publish both your Web and Server GTM containers. Use GTM Preview mode to debug.

Done! Your WooCommerce store now sends events through your sGTM server with full GTM control.

sGTM Benefits

Full GTM Server-Side features
Google Ads Enhanced Conversions
Preview & Debug mode
Any GTM template support
1

Install the Plugin

Download the PixelFly for WooCommerce plugin and upload it to your WordPress site.

Download WooCommerce Plugin

Go to WordPress Admin → Plugins → Add New → Upload Plugin

2

Configure Plugin Settings

Navigate to WooCommerce → PixelFly and turn on the data layer for GTM.

  • API Key: leave empty when you use our GTM container (it sends the server-side events)
  • Enable DataLayer for GTM (recommended)
  • COD Order Protection → GTM / sGTM mode (v1.2.0+)

With a PixelFly GTM container the plugin’s API Key is optional: the container already sends server-side events. If you enter it, the plugin also sends each purchase from your server with the same event ID (Meta counts it once, but a GA4 Receiver would count it twice). Whenever COD is on in the container, also turn on the plugin’s COD Order Protection (GTM / sGTM mode), otherwise the plugin sends COD purchases at checkout.

3

Import GTM Container

Download our proxy web container and import it into Google Tag Manager. It’s built on our sGTM web container: Meta Pixel, GA4, Google Ads and TikTok, PixelFly server-side events, reload protection and COD Order Protection.

Download Proxy Web Container (.json)

Fill PixelFly API Key, Meta Pixel ID-000 and GA4-FM ID after importing.

In GTM: Admin → Import Container → Choose file

This includes pre-configured tags for all e-commerce events with proper triggers. Full variable list: proxy container setup.

4

Publish & Test

Publish your GTM container and test the tracking using GTM Preview mode and PixelFly Event Debugger.

That's it! Your WooCommerce store is now tracking all e-commerce events to Meta CAPI and GA4.

Automatically Tracked Events

page_view view_item add_to_cart view_cart begin_checkout add_payment_info add_shipping_info purchase

We use cookies to enhance your experience, analyze site traffic, and for marketing purposes. By continuing to use our site, you consent to our use of cookies. Learn more