Paypal IPN should not be excluded as a bot!

At some point in the last few updates (I was a few rev’s behind before I recently updated to the current version) the paypal IPN user agent “PayPal IPN ( https://www.paypal.com/ipn )” was added as a bot, with all tracking excluded for it by default. This breaks ecommerce tracking, and all my sales are now showing as abandoned carts.

I see where to add user agents I want excluded, but how do I add a user agent I want Included?

I’ve also seen in other posts you can add bots=1 to the JS tracker, but (since it’s an IPN script) I’m using the php tracker. Not sure if that can be used there…?

Ok so I was able to bandaid this by calling setUserAgent in my IPN script, like so:

$matomoTracker->setUserAgent(‘Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0’);

This fixed my ecommerce tracking, so I’m good. But I still think Paypal IPN shouldn’t be counted as a bot by default, as I’m sure others will run into this. Or, possibly you could exclude those visits in terms of pageviews, etc but allow ecommerce tracking calls from pages with that as the user agent.