# Woocommerce plugin not working

**URL:** <https://community.piwik.pro/t/woocommerce-plugin-not-working/3881>\
**Category:** Data collection and tags\
**Created:** [April 11, 2024, 11:21am UTC](https://community.piwik.pro/t/woocommerce-plugin-not-working/3881 "2024-04-11T11:21:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mirko\_Cecchin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mirko_cecchin/32/3310_2.png) [@Mirko\_Cecchin](https://community.piwik.pro/u/Mirko_Cecchin)\
**Post date:** [April 11, 2024, 11:21am UTC](https://community.piwik.pro/t/woocommerce-plugin-not-working/3881/1 "2024-04-11T11:21:15Z")

</div>

Hello,  
i followed this guide for tracking ecommerce data in a woocommerce website

> **[WooCommerce: install a container (with a tracking code) | Piwik PRO help center](https://help.piwik.pro/support/getting-started/woocommerce-install-a-container-with-a-tracking-code/?pk_vid=93d91c77abfe3574171283435061fdc2)**
>
> If you’re running your online store on WooCommerce, you can quickly start collecting shopper data using our dedicated WordPress plugin. The plugin will install our container with a tracking code, which will automatically track ecommerce events like...

regular tracking is working, but ecommerce reports are none, have 0 ecommerce events tracked.

any idea how to fix it?

Many thanks

---

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [April 11, 2024, 12:21pm UTC](https://community.piwik.pro/t/woocommerce-plugin-not-working/3881/2 "2024-04-11T12:21:31Z")

</div>

Hi @Mirko_Cecchin,

Are there any errors in the browser when you create an order?

Did you enable the ecommerce integration in the plugin?

---

<div class="post-metadata">

**Author:** ![Mirko\_Cecchin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mirko_cecchin/32/3310_2.png) [@Mirko\_Cecchin](https://community.piwik.pro/u/Mirko_Cecchin)\
**Post date:** [April 12, 2024, 8:10am UTC](https://community.piwik.pro/t/woocommerce-plugin-not-working/3881/3 "2024-04-12T08:10:50Z")

</div>

![piwik settings](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/b/b2276011b5c56421549f691e744dc038ccd9c39e.png)

yes, it ecommerce tracking is flagged in the plugin

i’m getting these errors in the console at checkout page

```auto
matomo.js:12 The method 'setTrackingSource' was not found in "_paq" variable. Please have a look at the Matomo tracker documentation: https://developer.matomo.org/api-reference/tracking-javascript
ap @ matomo.js:12
matomo.js:13 Uncaught TypeError: The method 'setTrackingSource' was not found in "_paq" variable. Please have a look at the Matomo tracker documentation: https://developer.matomo.org/api-reference/tracking-javascript
    at ak (matomo.js:13:22)
    at ai (matomo.js:69:789)
    at Object.addTracker (matomo.js:71:822)
    at matomo.js:190:575
    at matomo.js:191:551

```

---

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [April 12, 2024, 8:41am UTC](https://community.piwik.pro/t/woocommerce-plugin-not-working/3881/4 "2024-04-12T08:41:37Z")

</div>

Are you using both Piwik PRO and Matomo at the same time? The `matomo.js` file contains the Matomo JS tracker.

---

<div class="post-metadata">

**Author:** ![Mirko\_Cecchin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mirko_cecchin/32/3310_2.png) [@Mirko\_Cecchin](https://community.piwik.pro/u/Mirko_Cecchin)\
**Post date:** [April 12, 2024, 9:28am UTC](https://community.piwik.pro/t/woocommerce-plugin-not-working/3881/5 "2024-04-12T09:28:02Z")

</div>

i was using it, but now i have deactivated the matomo plugin

---

<div class="post-metadata">

**Author:** ![Mirko\_Cecchin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mirko_cecchin/32/3310_2.png) [@Mirko\_Cecchin](https://community.piwik.pro/u/Mirko_Cecchin)\
**Post date:** [April 12, 2024, 9:30am UTC](https://community.piwik.pro/t/woocommerce-plugin-not-working/3881/6 "2024-04-12T09:30:07Z")

</div>

website is [https://metalworker.com/](https://metalworker.com/) if you want to check

---

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [April 12, 2024, 10:02am UTC](https://community.piwik.pro/t/woocommerce-plugin-not-working/3881/7 "2024-04-12T10:02:37Z")

</div>

It looks like it’s still present:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/8/84ebfea536ffe3828f8054948195b0e1700eb021.png)

edit: If you’d like to use both, please follow this guide:  
[Can I use Piwik PRO and Matomo at the same time? | Piwik PRO help center](https://help.piwik.pro/support/questions/can-i-use-piwik-pro-and-matomo-at-the-same-time/)

---

<div class="post-metadata">

**Author:** ![Mirko\_Cecchin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mirko_cecchin/32/3310_2.png) [@Mirko\_Cecchin](https://community.piwik.pro/u/Mirko_Cecchin)\
**Post date:** [April 12, 2024, 10:27am UTC](https://community.piwik.pro/t/woocommerce-plugin-not-working/3881/8 "2024-04-12T10:27:07Z")

</div>

i already did it, implemented the modified Piwik pro tracking code, yet no ecommerce data is tracking with this solution

 ![Screenshot 2024-04-12 122435](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/4/477eda23aafd2c81d49c2a8636383f7355561d62.png)

---

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [April 12, 2024, 11:20am UTC](https://community.piwik.pro/t/woocommerce-plugin-not-working/3881/9 "2024-04-12T11:20:24Z")

</div>

So currently the WP plugin uses `_paq` by default and it’s sadly not possible to switch to `_ppas` at the moment.

The solutions here are:

1. Go back to using `_paq` after turning off Matomo
2. Configure the ecommerce tracking using [dedicated JS methods](https://developers.piwik.pro/en/latest/data_collection/web/javascript_tracking_client/api.html#e-commerce-v2)
