|
@deliberatecoder | |||||
|
Twitter hivemind, I want to display a per-page hit counter in my web app, pulling data from the Google Analytics API. It seems like it would be a common use-case, but I can't find instances of anyone else doing this. Are there drawbacks I'm not seeing? indiehackers.com/post/is-this-c…
|
||||||
|
||||||
|
David Nicholas Williams
@davnicwil
|
15. sij |
|
If a super hacky solution is acceptable
One time
1 Behavior>Site Content>All Pages
2 Date range = 10 years
3 [SAVE] as "All views" report
Then, regularly, manual or automated
4 Open "All views" report, download as CSV
5 Upload to server
6 Parse out routes -> pageviews count
|
||
|
|
||
|
Michael Lynch
@deliberatecoder
|
16. sij |
|
Oh, this is neat! I like it as a low-cost way to test out what it will look like and see if it has any impact.
|
||
|
|
||
|
Michael Lynch
@deliberatecoder
|
20. sij |
|
Update: I got this working. It took me ~2 hours to do the Google Analytics part and ~10 hours to integrate it into my web app.
CLI example: github.com/mtlynch/google…
Web app integration: github.com/mtlynch/whatgo… pic.twitter.com/IKrbUMpjXY
|
||
|
|
||
|
Victor Zhou
@victorczhou
|
15. sij |
|
a lot of people block google analytics, esp in the tech audience, but i think this works if you just do it server side and cache it yourself
|
||
|
|
||
|
Michael Lynch
@deliberatecoder
|
16. sij |
|
Oh, I don't mind missing out on adblock users. This is for @WanderJest, so it's not necessarily a techie audience. I assume I'll still get >=97% of users, which is good enough.
|
||
|
|
||
|
Rahul Saxena
@rksio
|
15. sij |
|
Works well with live GA Event data.
It has been done.
You can do it.
It will work.
|
||
|
|
||