# WooCommerce and Mautic integration plugin - problem with customer tracking

**URL:** <https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651>\
**Category:** Development\
**Created:** [June 3, 2017, 10:52am UTC](https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651 "2017-06-03T10:52:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![fransanchez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fransanchez/32/183_2.png) [@fransanchez](https://forum.mautic.org/u/fransanchez)\
**Post date:** [June 3, 2017, 10:52am UTC](https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651/1 "2017-06-03T10:52:01Z")

</div>

Hi guys,  
  
  
  
I am developing an integration between woocommerce and Mautic. This integration will create new contacts when a customer place an order, as well as sync previous woocommerce customers to Mautic. This plugin also allows to set product name, product SKU and order status as tags.  
  
  
  
Everything is working so far except for tracking. Meaning, web activity of contacts are not being detected. This plugin also sends the contact IP, which I though it would enable precious web tracking (by merging the previous collected tracking from the IP to the newly created contact). However, this is not the case.  
  
  
  
I was wondering if any of you could let me  
  
Know how to accomplish this.

---

<div class="post-metadata">

**Author:** ![fransanchez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fransanchez/32/183_2.png) [@fransanchez](https://forum.mautic.org/u/fransanchez)\
**Post date:** [June 3, 2017, 10:52am UTC](https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651/2 "2017-06-03T10:52:01Z")

</div>

Hi guys,

I am developing an integration between woocommerce and Mautic. This integration will create new contacts when a customer place an order, as well as sync previous woocommerce customers to Mautic. This plugin also allows to set product name, product SKU and order status as tags.

Everything is working so far except for tracking. Meaning, web activity of contacts are not being detected. This plugin also sends the contact IP, which I though it would enable precious web tracking (by merging the previous collected tracking from the IP to the newly created contact). However, this is not the case.

I was wondering if any of you could let me  
Know how to accomplish this.

---

<div class="post-metadata">

**Author:** ![fransanchez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fransanchez/32/183_2.png) [@fransanchez](https://forum.mautic.org/u/fransanchez)\
**Post date:** [June 3, 2017, 3:18pm UTC](https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651/3 "2017-06-03T15:18:35Z")

</div>

Yep its installed and working

---

<div class="post-metadata">

**Author:** ![fransanchez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fransanchez/32/183_2.png) [@fransanchez](https://forum.mautic.org/u/fransanchez)\
**Post date:** [June 3, 2017, 3:23pm UTC](https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651/4 "2017-06-03T15:23:30Z")

</div>

Right now unidentified leads by IP are showing up. My assumption was that once a customer makes a purchase and the contact is created in Mautic with the IP, if there is tracked activity for that IP it would be assigned to the contact that was just created.

---

<div class="post-metadata">

**Author:** ![fransanchez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fransanchez/32/183_2.png) [@fransanchez](https://forum.mautic.org/u/fransanchez)\
**Post date:** [June 4, 2017, 9:05am UTC](https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651/5 "2017-06-04T09:05:51Z")

</div>

Anyone

---

<div class="post-metadata">

**Author:** ![fransanchez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fransanchez/32/183_2.png) [@fransanchez](https://forum.mautic.org/u/fransanchez)\
**Post date:** [June 4, 2017, 3:16pm UTC](https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651/6 "2017-06-04T15:16:29Z")

</div>

Awesome thanks, but it seems I can’t join the channel without a mautic email address. Would you be so kind to post the link to this question in there?

---

<div class="post-metadata">

**Author:** ![fransanchez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fransanchez/32/183_2.png) [@fransanchez](https://forum.mautic.org/u/fransanchez)\
**Post date:** [June 4, 2017, 6:50pm UTC](https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651/7 "2017-06-04T18:50:20Z")

</div>

I checked and I realised that the unidentified and identified contacts have the same IP ID, then the question is does the system not automatically merge these two? When I send the contact from WooCommerce through the API, do I need to check if the IP already exist, and if it does use that unidentified contact ID to populate the contact fields?

---

<div class="post-metadata">

**Author:** ![robwent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robwent/32/179_2.png) [@robwent](https://forum.mautic.org/u/robwent)\
**Post date:** [June 8, 2017, 6:22am UTC](https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651/8 "2017-06-08T06:22:42Z")

</div>

An ip address can be shared by multiple users (eg multiple people in a office or home on the same connection).

You would need to push the contacts to Mautic with a field which is set to be a unique identifier like an email address, then any existing contact with the same email would be updated rather than a new contact being created.

I think a user needs an account to purchase products (?) so you should have an email address in the system that could be sent with the order information.

Another option would be to create a new unique field for the Wordpress user ID or username and then pass that with the information.

---

<div class="post-metadata">

**Author:** ![arymaynart](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/arymaynart/32/97_2.png) [@arymaynart](https://forum.mautic.org/u/arymaynart)\
**Post date:** [March 29, 2018, 10:40am UTC](https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651/9 "2018-03-29T10:40:28Z")

</div>

There was some progress with this woocommerce plugin?

---

<div class="post-metadata">

**Author:** ![fransanchez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fransanchez/32/183_2.png) [@fransanchez](https://forum.mautic.org/u/fransanchez)\
**Post date:** [March 29, 2018, 10:45pm UTC](https://forum.mautic.org/t/woocommerce-and-mautic-integration-plugin-problem-with-customer-tracking/8651/10 "2018-03-29T22:45:10Z")

</div>

Yes [SIP Mautic integration for WooCommerce](https://wordpress.org/plugins/sip-mautic-integration-for-woocommerce/)
