Add Attribu to your WooCommerce store

Connect your WooCommerce store to Attribu in under 2 minutes. Once connected, Attribu automatically tracks:

  • Visitor analytics - Pageviews, visitors, referrers, devices, countries, etc.
  • Custom events - add_to_cart, remove_from_cart, and initiate_checkout are automatically tracked.
  • Revenue from orders - All completed WooCommerce orders with full revenue data.
  • Revenue attribution - Links revenue to traffic sources (referrers, UTMs, ad click IDs, countries, devices).

Step 1: Install the plugin (1 minute)

  1. Download the Attribu plugin from your dashboard (Settings > Tracking script > WordPress tab).
  2. In WordPress, go to Plugins → Add New → Upload Plugin and upload the .zip file.
  3. Click Install Now, then Activate.
  4. Go to Settings → Attribu and paste your Website ID.
The plugin handles the tracking script automatically. You don't need to add any <script> tags manually.

Step 2: Connect WooCommerce (1 minute)

  1. In your Attribu dashboard, go to Settings > Tracking script > WordPress tab.
  2. Toggle I'm using WooCommerce too.
  3. Enter your store URL (e.g. yourstore.com).
  4. Click Connect WooCommerce.
  5. You'll be redirected to your WordPress admin. Click Approve to authorize Attribu.

That's it! Attribu will automatically import your existing completed orders and start tracking new ones.

The connection uses WordPress Application Passwords for secure authorization. No API keys to copy and paste.

What gets tracked automatically

EventWhen it fires
add_to_cartProduct added to cart (includes product name, price, quantity)
remove_from_cartProduct removed from cart
initiate_checkoutCustomer starts checkout (includes cart total, discount, products)
paymentOrder completed (full order amount, attributed to visitor)

How attribution works

The Attribu plugin reads the visitor and session cookies (attribu_vid and attribu_sid) set by the tracking script and saves them as order metadata. When an order is completed, the webhook sends the order data along with these IDs back to Attribu, linking the revenue to the visitor's original traffic source.

Verify installation

  1. Visit your store in an incognito window.
  2. Add a product to cart and start checkout.
  3. Check your Attribu dashboard - you should see pageviews and custom events appearing.
  4. Complete a test order (or check existing orders) - revenue should appear in your analytics.

Troubleshooting

  • No events appearing? Make sure the Website ID in Settings → Attribu matches your dashboard. Clear any caching plugins.
  • Revenue not showing? Check that the WooCommerce connection shows as "Connected" in your Attribu dashboard. Try disconnecting and reconnecting.
  • Authorization failed? Make sure your WordPress user has administrator privileges. Application Passwords must be enabled (they are by default in WordPress 5.6+).
  • Security plugins (Wordfence, Sucuri) may block the Application Passwords feature. Check your security plugin settings if authorization fails.
Copied