25% off Server GTM for 12 months

Claim 25% off
Server GTM Containers

WooCommerce plugin setup

Connect your WooCommerce store to Taglinc: install the plugin, paste the connection key, set up GTM, and send every paid order from your server.

5 min readUpdated Nov 12, 2026TagLinc docs
Browse documentation

The Taglinc plugin for WooCommerce sends your store's events to your own server GTM container on Taglinc. It loads Google Tag Manager from your tracking domain, sends GA4 ecommerce events from your shop pages, and also sends every paid order from your WordPress server. A purchase still counts when the browser blocks tracking or the buyer never comes back from the payment page (bKash, SSLCommerz, Nagad, PayPal and similar).

The plugin is free. You pay for your Taglinc plan on taglinc.com, by card, bKash or PayPal. The Free plan works too.

Before you start

  • WordPress 6.0 or newer, WooCommerce active, PHP 7.4 or newer.
  • A Taglinc account with a running server GTM container. See Deploy your first server GTM container.
  • A tracking domain on that container is best, for example track.yourstore.com. See Custom first-party tracking domains.
  • Your GA4 measurement ID (GA4 → Admin → Data streams → your web stream). It looks like G-ABC123XYZ.

Step 1: Install the plugin

  1. In Taglinc, open your container and go to the Container tab. Find the WooCommerce plugin box and click Download plugin.
  2. In WordPress, go to Plugins → Add New Plugin → Upload Plugin, choose the zip file and click Install Now, then Activate.

Using GTM4WP (Google Tag Manager for WordPress) or another plugin that adds Google Tag Manager or GA4? Deactivate it. Taglinc loads GTM and sends the shop events itself, and two setups count every event twice. While GTM4WP is active, Taglinc does not load GTM and shows a warning.

Step 2: Connect your Taglinc account

  1. In the WooCommerce plugin box in Taglinc, click Create connection key and copy it. It starts with tlwc_.
  2. In WordPress, open Taglinc in the admin menu, paste the key under Connection key and click Connect.
  3. The plugin shows Connected with your container, tracking domain, plan and COD setting. The box in Taglinc now shows your store.

The plugin refreshes these settings from Taglinc once a day. Click Refresh now after you change the tracking domain or plan.

Step 3: Set up GTM

Your tags still live in your own Google Tag Manager. Taglinc can add ready-made ones for you.

  1. In Taglinc, open your container's Container tab and link the container with Google under Setup if you have not yet.
  2. In the Set up GTM for your WooCommerce store card, check WooCommerce is selected, pick your store's web container (or let Taglinc create one) and enter your GA4 measurement ID.
  3. Optional: open Meta, TikTok or Google Ads and enter their IDs. A platform you leave empty gets its tag added but paused.
  4. Click Set up GTM.
  5. Click Open in GTM on each workspace and press Submit → Publish. Publish the web container first, then the server container.

Your access tokens go only into your own GTM. Taglinc does not keep them.

Step 4: Turn on tracking in WordPress

  1. In WordPress, open Taglinc and scroll to Tag Manager.
  2. Enter your Web GTM container ID (for example GTM-ABC1234, the web container from Step 3, not the server one) and your GA4 measurement ID.
  3. Leave Consent Mode on, unless your cookie banner plugin already sets the Google Consent Mode v2 defaults.
  4. Click Save. On your store shows GTM is loading and Server orders shows On.

What the plugin sends

  • Shop pages: view item list, view item, search, add to cart, remove from cart, view cart, begin checkout, add shipping info, add payment info and purchase. Works with block and classic cart and checkout.
  • Server copy of each paid order: when an order moves to Processing or Completed, your WordPress server sends a GA4 purchase to your tracking domain with the order ID, value, items, the buyer's GA client ID and click IDs, and hashed email, phone, name and address for Meta and TikTok match quality. Bangladesh phone numbers are sent as +8801….
  • No double count: the browser and server purchase share one event ID (purchase_ plus the order ID), so GA4, Meta and TikTok keep only one.
  • Refunds: full and partial refunds are sent as GA4 refund events.
  • Cash on delivery: with the COD Power-Up on, COD orders are sent when they are delivered, not when they are placed.

If a send fails (host down, slow network), the plugin tries again later by itself. Server orders shows the last order or refund sent and the result.

Step 5: Check that events arrive

  1. Use Tag Manager Preview on your server container, then open your store in a new tab: view a product, add to cart.
  2. Place a test order (for example with Cash on delivery or a payment method in test mode) and mark it Processing.
  3. In WordPress → Taglinc, Server orders shows Last: purchase for order #…: sent.
  4. Check the purchase in GA4 DebugView, Meta Test Events or Event logs in Taglinc.

Troubleshooting

  • "Not connected": the key was replaced or removed in Taglinc. Create a new key in the WooCommerce plugin box and paste it again.
  • GTM is not loading: enter the web GTM container ID under Tag Manager and save, and deactivate GTM4WP or other GTM plugins.
  • GTM loads from Google, not your domain: add a tracking domain to your container in Taglinc, then click Refresh now.
  • Old settings after a change: clear your page cache (LiteSpeed Cache, WP Rocket and similar) after you save.
  • Server orders off or failing: check the GA4 measurement ID is filled in, and that your host allows outgoing HTTPS requests. Some hosts run WP-Cron only on visits, so retries can wait until the next visit.
  • Meta or TikTok not receiving: their tags are paused until you enter the IDs. Fill the "Taglinc - …" constants in your server container and un-pause the tags.
  • More help: the troubleshooting checklist.

Still stuck?

Open a support ticket from your dashboard and include the container name.

Contact support