There are two things you may want to do. First, extend all events with the network properties information. You can analyze how long page loads on all connections or how AJAX calls behavior changes on weak networks. Second - track network switches. For long living pages like SPA applications, this statistic may be interesting.
This example shows how to add network properties to all telemetry items sent from the page.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I’m traveling today. This picture shows what I saw in airport:
Once I connected to the internet in plane I see other values:
You can query analyze pageViews now using simple query:
Network change event
To get the network change event, you need to subscribe on
change event. When function called - track an event with the new network properties.
1 2 3 4 5 6 7 8 9 10 11
As you see, it’s straightforward to enrich your telemetry. You may now better understand your customers. Based on telemetry you can prioritize optimizing your site for faster or slower networks.