Google Analytics Autotrack
github.com
github.com
I think we'll start seeing teams adopt more automated approaches to analytics tracking over time.
Disclaimer: I founded Heap (https://heapanalytics.com/) with the idea that manual instrumentation should be the exception, not the norm.
Btw Autotrack is direct competitor to heap. How are you going to maintain differentiation? Or something for which heap gives 10x that autotrack doesn't?
This becomes obvious when you try both products side-by-side (and I encourage you to do so!). I haven't come across a single customer who sees this as a viable substitute for Heap.
Also, collecting everything doesn't mean you should pay attention to every possible metric all the time. It just makes it 1000x easier to hone in on the right metric at the right time.
That said, this is an awesome GA extension, and philipwalton deserves a lot of credit for building it.
Could you email me at matin@heapanalytics.com? We're cooking up some features you might find useful.
Really hard to recommend it to anyone else either since there's no information about what it would end up costing (assuming that adding the Heap badge is out of the question).
Everything works fine, when adblocker was turned off in the page. Any ideas on why this behaviour?
The error is due to the star POST request on Github being blocked. The endpoint in question is https://github.com/googleanalytics/autotrack/star. Your ad blocker uses string matching to block URLs and sees "googleanalytics" (the repository name) in there and blocks it.
Other repo do not have "suspicious" strings in their url, so they pass through ublock, while the real google analytics call is blocked and github does not fail. You can check the network tab in the developer tools in chrome around github and see that calls to GA gets blocked and calls to github pass while on that specific page also the call to github fails
https://philipwalton.com/articles/the-google-analytics-setup... (via https://news.ycombinator.com/item?id=13636884)
and the other set up linked from those comments:
As for a comparison of it vs. the GTM setup used by thenextweb, I briefly explain my thoughts on GTM in another comment here: https://news.ycombinator.com/item?id=13648771
I guess you could find out how it outputs the event and then set a goal for it, but I doubt it would be pretty and you're still going to get a lot of junk in your real-time view. I hate having to set-up callbacks for outbound links, it's a real pain in the butt (especially if you're having to instruct someone else to place the code,) and sometimes it doesn't fire properly on certain browsers so this would be nice...but it could also be messy (from my quick look.)
I do like that GTM can do -most- of this now, which allows the marketing/PPC/Analytics team(s) to do things on the fly without having to bother me.
Every autotrack plugin that sends hits has two configuration options that enable full customization over exactly what fields get sent with each hit.
The options are `fieldsObj` and `hitFilter`: https://github.com/googleanalytics/autotrack/blob/master/doc...
As for under reporting of history state changes, have you reported a bug? Also, how are measuring to confirm that there is under reporting?
Here are a few examples off the top of my head of things you can't do with GTM today (without writing custom code):
- Tracking when (and how long) the page was in the visible vs hidden state.
- Tracking anything performance-related.
- Tracking when DOM elements are visible in the viewport (via IntersectionObserver).
- Tracking the active media query / breakpoint.
- Tracking social widget button usage.
- Tracking the use of service worker
- Tracking interactions with native web push notifications.
I think GTM is great for marketing websites, but for better understanding how someone is using a complex web app, I think it makes more sense to have that logic in the application code.