Black Lives Matter. Please consider donating to Black Girls Code today.

Basic traffic monitoring for a dash app deployed on MS Azure

Hi everyone,

I have a simple dash app deployed as a Docker container on Azure. I was wondering if there’s a simple way to add some basic traffic monitoring to the app - e.g. tracking number of visitors, number of unique visitors, average time spent in the app etc.

From my understanding, such functionality is provided through the Application Insights.

Following the documentation of the Application Insights, it appears that the main task is to add a JavaScript snippet somewhere to my dash app. How exactly should I do that? I suppose it will have to do with adding external resources. But how exactly? Do I just create a file assets/my_js_snippet.js and paste the snippet in there?

Thanks for help!