# Is it possible to have the user agent in report for bots/automate detection?

**URL:** <https://community.piwik.pro/t/is-it-possible-to-have-the-user-agent-in-report-for-bots-automate-detection/1857>\
**Category:** Data collection and tags\
**Created:** [March 21, 2023, 9:51am UTC](https://community.piwik.pro/t/is-it-possible-to-have-the-user-agent-in-report-for-bots-automate-detection/1857 "2023-03-21T09:51:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![spujade](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/spujade/32/1453_2.png) [@spujade](https://community.piwik.pro/u/spujade)\
**Post date:** [March 21, 2023, 9:51am UTC](https://community.piwik.pro/t/is-it-possible-to-have-the-user-agent-in-report-for-bots-automate-detection/1857/1 "2023-03-21T09:51:10Z")

</div>

Hi the Piwik Pro Team and specially @Admin ,

Hope you’re good.  
Here’s my question please:  
Is it possible to have the user agent in report for bots/automate detection ?  
On an other tool we’re using we found that almost 60% of our traffic can be linked to automates/ monitoring tool for digital asset and one way to avoid it is to use the user agent.

I would like to know if it’s possible to have it within PIwik Pro report & also in the french CNIL & GDPR context please ?  
If so, what shloud i do please (settings, specific settings…) ?  
Many thanks in advance for your kindly help.  
Kind regards,  
Sébastien

---

<div class="post-metadata">

**Author:** ![mbaersch](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/mbaersch/32/35_2.png) [@mbaersch](https://community.piwik.pro/u/mbaersch)\
**Post date:** [March 21, 2023, 11:37am UTC](https://community.piwik.pro/t/is-it-possible-to-have-the-user-agent-in-report-for-bots-automate-detection/1857/2 "2023-03-21T11:37:17Z")

</div>

Hi,

what do you use to detect a bot by User Agent? If the rules are not too complex, you could parse the User Agent in the browser and just either a) add a bot marker as a dimension or b) block those hits from being sent directly inside the Tag Manager instead of polluting reports and add those hits to your limits.

best,  
Markus

---

<div class="post-metadata">

**Author:** ![spujade](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/spujade/32/1453_2.png) [@spujade](https://community.piwik.pro/u/spujade)\
**Post date:** [March 21, 2023, 11:46am UTC](https://community.piwik.pro/t/is-it-possible-to-have-the-user-agent-in-report-for-bots-automate-detection/1857/3 "2023-03-21T11:46:28Z")

</div>

Hi Markus,

in fact this is done with segments or within google bigquery by looking at how much non-humans (for instance 30 sessions of 5 secondes max within 2hours) sessions are done.

BUt looking at the piwik pro interface i didn’t see anything to get the user agent natively. Thgat’s why i was wondering if it’s exclude by default in the web interface or accessible within the API ? if available where and how to find it ? Thanks Markus for your help and answer. Hope also have more info from the piwik pro team abvout what’s possible or not. Have a lovely day Sébastien

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [March 21, 2023, 1:04pm UTC](https://community.piwik.pro/t/is-it-possible-to-have-the-user-agent-in-report-for-bots-automate-detection/1857/4 "2023-03-21T13:04:53Z")

</div>

Hi,

full user agents are available only from the tracker debugger (after clicking the `</>` icon) and only for last 6h.

Our reporting system extracts dimensions from the user agent string. You can see it under Analytics → Reports → Devices & Software. An example report for the diferrent versions of MS Edge below:

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

---

<div class="post-metadata">

**Author:** ![spujade](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/spujade/32/1453_2.png) [@spujade](https://community.piwik.pro/u/spujade)\
**Post date:** [March 21, 2023, 1:40pm UTC](https://community.piwik.pro/t/is-it-possible-to-have-the-user-agent-in-report-for-bots-automate-detection/1857/5 "2023-03-21T13:40:01Z")

</div>

HI @Admin ,

Many thanks for the confirmation & the tips.  
It provides great help

Have a nice day  
Sébastien
