The JS hosting shouldn't matter for this code since it effectively does 2 things:
- Checks for a valid desktop user agent
- Adds an event listener for mouse movement which sets the bot variable to "false"
Without knowing too much on how you've implemented this, I might lean on this being a timing issue where your hit is firing before the variable can be changed.
Quick check - on any page of your application, even if the adobe hit fires, could you move around your mouse, then check the variable "websiteBot" (you can just type it in console). Is it retuning as "false" ?