For analysing data context is very important. How about check how battery level influence for web user behaviour?
To solve this case I’ve prepared modification of code. This code put battery level in dataLayer and you can track it in every web analytics solution using Google Tag Manager.
Create Custom HTML tag with this code:
Publish your container and that’s it!
Now create new dataLayer variables in GTM to get this values and send i.e. in Google Analytics tracking as custom dimension (session scope):
Check also source code on my Github.
On last MeasureCamp #8 in London I’ve led session about ML:
Machine Learning in action. Advanced users segmentation using Google Analytics, Google Tag Manager and R.
Summary of workflow
- Prepare data collection
- Google Tag Manager
- browser fingerprinting
- Data processing and aggregation
- Google Analytics
- Custom Dimensions
- Content Grouping
- Advanced data analysis
- R + Google Analytics API
- Unsupervised Learning – k-Means algorithm
Result – clustered users:
Slides from my session are now available on SlideShare:
You can find complete example on my GitHub repository
It was pleasure to speak for full room. I hope that this session provide some inspiration to new way of web traffic analysis 🙂