If you’re doing stuff you’re supposed to be doing in Analytics – like slicing and dicing request, counting page views, etc. – then you should probably make sure you’re counting correctly.
2 big pitfalls here are:
- If you’re sampling your data with App Insights 2.0 sdk, then you should obviously reflect that when counting.
- If you’ve got a bunch of tests set up, then you probably don’t want to count those as page views.
For #1, you need to make sure you are always summing items – do sum(itemCount) instead of a simple count().
For #2, remember to add a where clause on the synthetic source field.
Here’s an example:
| where timestamp > ago(1d)
| where operation_SyntheticSource == ""
| summarize sum(itemCount) by performanceBucket