Measurement Protocol<\/a> is Google\u2019s API for sending data into Analytics that is agnostic of the platform using it. It can be used in different scenarios, from data kiosks to IoT.<\/p>\n\n\n\nRolling this idea in my head got me thinking. What if we implemented Google Analytics at a country long toll road to track drivers behavior?<\/p>\n\n\n\n
The basics<\/h2>\n\n\n\n
Some elements were immediately clear. Each entrance to the road is a Session. A section driven through would be a Pageview. In the pageview we would need to know the section passed through and the driver\u2019s direction. This would require that the road is split into its two directions\u200a\u2014 e.g.\u200aNorth and South.<\/p>\n\n\n\n
So a pageview for a section driven would be something of the likes of \u201c\/north\/section-13″.<\/p>\n\n\n\n
The Landing Page will indicate where a driver entered the road. Similarly the Exit Page will indicate where they left. And the cherry on top \u2014 the Pages per Session is the number of sections the driver drove through.<\/p>\n\n\n\n
In Israel, where certain sections of the road are open toll free, Content Grouping can be used to differentiate between the section types (Regular\/Toll free).<\/p>\n\n\n\n
Events<\/h2>\n\n\n\n
So we know how many people came in, where, and the road\u2019s utilization.<\/p>\n\n\n\n
Another important feature would be tracking unusual events on the road.<\/p>\n\n\n\n
For example car accidents. This can simply use Event tracking. Any accident can be reported as an Event, which is of course triggered on a specific section. This can later help on analyzing accident prone sections of the road.<\/p>\n\n\n\n
Ecommerce<\/h2>\n\n\n\n
At the end of the day, we\u2019re a business. So each trip not only has to be recorded but also billed.<\/p>\n\n\n\n
So the Product will be the number of sections passed. The Category can take in the driver\u2019s direction.<\/p>\n\n\n\n
This will give us a clear dashboard of our road\u2019s earnings.<\/p>\n\n\n\n
User tracking<\/h2>\n\n\n\n
Any driver coming in has a clear identifier\u200a\u2014\u200atheir car license plate. This can be used as a User ID (can be replaced with a non personal identifiable value to comply with Analytics policy) . This will enable tracking users lifetime value.<\/p>\n\n\n\n
Additionally, a Custom Dimension can be used to indicate the user\u2019s type\u200a\u2014\u200aRegistered, Unregistered etc.<\/p>\n\n\n\n
Real Time Dashboards<\/h2>\n\n\n\n
Utilizing this Analytics feature can allow simple real time tracking.<\/p>\n\n\n\n
It is easy to see which sections of the road are traffic heavy and when an accident has happened.<\/p>\n\n\n\n
Final thoughts<\/h2>\n\n\n\n
First, please don\u2019t share this to my students as I want them to be able to reach a similar breakdown themselves \u263a<\/p>\n\n\n\n
Second, feel free to comment on what you would add to the tracking. Very interested in hearing additional ideas.<\/p>\n\n\n\n
And last, always keep exercising yourself to think outside the box.<\/p>\n\n\n\n
Originally published on my blog on Medium<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"An exercise I\u2019m planning to run by my students in a an upcoming class.<\/p>\n","protected":false},"author":1,"featured_media":4059,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[38],"class_list":["post-4058","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-google-analytics"],"_links":{"self":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/comments?post=4058"}],"version-history":[{"count":2,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4058\/revisions"}],"predecessor-version":[{"id":4110,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/4058\/revisions\/4110"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/media\/4059"}],"wp:attachment":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/media?parent=4058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/categories?post=4058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/tags?post=4058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}