Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deeper analytics for Azure Static Web Apps?

Is it possible to access analytics such as browser, dates and times of site hits, IP addresses, etc.?

From the docs here, it looks like Azure App Insights are only available for Static Web Apps that use Azure Functions. I just have a static website, no API's.

Here is the message I'm shown when trying to enable App Insights: enter image description here

Ideally, I want to set a Diagnostic Setting and use Azure Log Analytics to view analytics.

How can I get deeper analytics on a Static Web App without a Function API?

EDIT 1: I'd like to at least capture the number of hits somewhere.

  • Azure Metrics is grabbing them, but doesn't seem to expose logs anywhere, only these visualizations.

enter image description here

like image 970
SeaDude Avatar asked May 29 '26 22:05

SeaDude


1 Answers

Ended up going with:

  • A stand-alone Application Insights instance
    • Azure Static Apps does not allow App Insights to be turned on for the resource unless there is an Azure Function involved(?)
  • Added this App Insights Javascript snippet to each page of the static site.

Got some great help from @MSNEV!

This is the solution I was looking for.

like image 75
SeaDude Avatar answered May 31 '26 11:05

SeaDude



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!