Adding Analytics to Azure Web Sites

Download this episode

Download Video

Download captions

Download Captions


Scott and Chandrika add the new Analytics JavaScript to one of Scott's production sites running within Azure and then explore the resulting data within the new Azure Portal.

Areas covered in this video:

  •  Analytics on the Azure Portal
  •  Add JavaScript to set up analytics
  •  View analytics from Scott's web site
  •  Drill down into specific issues exposed by analytics
  •  Monitoring verses analytics
  •  Alert rules

Useful topics and links:



Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image

      Finally !!!! I have been looking for the answer to the question: what is the equivalent of "google analytics" for Microsoft :)

      QQ: can i use the JS script for a website in a different domain?

    • User profile image

      @jlcard. Yes. 

      Also check out Application Insights on Visual Studio Online. Currently what is exposed in the Azure Portal is a tiny bit of its capability. 
      You can instrument your code to expose any metrics you desire. Including A/B testing. ie: Exactly what did they click on & how long did they look prior to clicking. Avg Price of each order etc. 

      It also gives you complete stack trace & can link it to a specific build of your code to help step thru debug your production code even if your developers are working on a much later build. 



    • User profile image
      Shawn de Wet

      I've just created a new AzureWebSite, but the Analytics block in the blade for this website does not provide a link to the script that I need to insert.
      Why is that?

    • User profile image
      Beyers Cronje

      I have the same problem as Shawn, the Analytics block for two of my websites does not open or provide a link. Any idea?

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.