# Mautic & piwik/device-detector

**URL:** <https://forum.mautic.org/t/mautic-piwik-device-detector/6505>\
**Category:** Product Support\
**Created:** [November 10, 2016, 10:19pm UTC](https://forum.mautic.org/t/mautic-piwik-device-detector/6505 "2016-11-10T22:19:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MX\_Mark](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MX\_Mark](https://forum.mautic.org/u/MX_Mark)\
**Post date:** [November 10, 2016, 10:19pm UTC](https://forum.mautic.org/t/mautic-piwik-device-detector/6505/1 "2016-11-10T22:19:17Z")

</div>

I’d like to integare piwik/device-detector with Mautic?  
  
  
  
I’ve searched for documentation on this, but cannot find any simple straight forward instructions on how to merge these two together.

---

<div class="post-metadata">

**Author:** ![MX\_Mark](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MX\_Mark](https://forum.mautic.org/u/MX_Mark)\
**Post date:** [November 10, 2016, 10:19pm UTC](https://forum.mautic.org/t/mautic-piwik-device-detector/6505/2 "2016-11-10T22:19:17Z")

</div>

I’d like to integare piwik/device-detector with Mautic?

I’ve searched for documentation on this, but cannot find any simple straight forward instructions on how to merge these two together.

---

<div class="post-metadata">

**Author:** ![MarkLL](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@MarkLL](https://forum.mautic.org/u/MarkLL)\
**Post date:** [November 11, 2016, 11:26am UTC](https://forum.mautic.org/t/mautic-piwik-device-detector/6505/3 "2016-11-11T11:26:34Z")

</div>

Hi @MX Mark. It’s already integrated.

It’s used to decode the Useragent for email Open and landing page events. What exactly did you want to do with it?

---

<div class="post-metadata">

**Author:** ![MX\_Mark](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MX\_Mark](https://forum.mautic.org/u/MX_Mark)\
**Post date:** [November 11, 2016, 1:20pm UTC](https://forum.mautic.org/t/mautic-piwik-device-detector/6505/4 "2016-11-11T13:20:25Z")

</div>

Hi MarkLL,

Thanks for your reply…

I was watching a YT tutorial about device granularity and when the mautic dash was shown it featured the different devices used to view emails etc.

In my dashboard you can only see 50% desktop and 50% unknown. I also read this article [here](https://mautic.org/docs/en/pages/device_granularity.html) about the requirements for the ‘detect devices’ to work (please see under the requirements heading)

---

<div class="post-metadata">

**Author:** ![MarkLL](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@MarkLL](https://forum.mautic.org/u/MarkLL)\
**Post date:** [November 11, 2016, 2:16pm UTC](https://forum.mautic.org/t/mautic-piwik-device-detector/6505/5 "2016-11-11T14:16:36Z")

</div>

OK, When I check the vendor folder I can see piwik/device-detector and as I mentioned, the code clearly shows it’s being used. see [https://github.com/mautic/mautic/blob/staging/app/bundles/EmailBundle/Model/EmailModel.php#L474](https://github.com/mautic/mautic/blob/staging/app/bundles/EmailBundle/Model/EmailModel.php#L474)  
and [https://github.com/mautic/mautic/blob/staging/app/bundles/PageBundle/Model/PageModel.php#L599](https://github.com/mautic/mautic/blob/staging/app/bundles/PageBundle/Model/PageModel.php#L599)

I’m not sure if the piwik package has any other dependencies that may affect it use (for example the php get\_browser() function requires `browscap` to be set up - [http://php.net/manual/en/function.get-browser.php](http://php.net/manual/en/function.get-browser.php))

---

<div class="post-metadata">

**Author:** ![MX\_Mark](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MX\_Mark](https://forum.mautic.org/u/MX_Mark)\
**Post date:** [November 12, 2016, 5:07pm UTC](https://forum.mautic.org/t/mautic-piwik-device-detector/6505/6 "2016-11-12T17:07:50Z")

</div>

Okay Mark, thanks for confirming piwik/device-detector is already bundled with mautic. Like I said, in my particular dashboard it shows 50% desktop and 50% unknown, so you may be right about having other dependencies for it to show other devices, but your guess is as good as mine?

With regards to your php get\_browser() and browscap theory, I’m afraid that information is way beyong my knowledge ☹

I’m a mere marketer who doesn’t understand php or any other coding language.

---

<div class="post-metadata">

**Author:** ![mojo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mojo/32/543_2.png) [@mojo](https://forum.mautic.org/u/mojo)\
**Post date:** [January 30, 2020, 6:37pm UTC](https://forum.mautic.org/t/mautic-piwik-device-detector/6505/7 "2020-01-30T18:37:52Z")

</div>

Some new idea, how to work with Matomo (formerly Piwik)?
