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?https://www.indiehackers.com/post/is-this-crazy-hit-counter-pulling-from-google-analytics-eae3cdc538 …
-
Prikaži ovu nit
-
Odgovor korisniku/ci @deliberatecoder
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
0 proslijeđenih tweetova 0 korisnika označava da im se sviđa -
Odgovor korisniku/ci @davnicwil
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.
1 reply 0 proslijeđenih tweetova 1 korisnik označava da mu se sviđa -
Odgovor korisnicima @deliberatecoder @davnicwil
1. Google for “Google Analytics superProxy” 2. Open their “Query Explorer” 3. Authorize it to access you GA 4. Use the form to build your query 5. Copy the URL. 6. Run corn job on your backend to fetch data from URL in step 5. At desired cadence. 7. Embed and render on your page
1 reply 0 proslijeđenih tweetova 1 korisnik označava da mu se sviđa
Having to run a whole proxy in AppEngine's kind of a pain. I tested out the regular Google Analytics Core API v4, and it wasn't too hard to use. I got it to dump the data I wanted after about an hour, so I'm moving forward using the official API.pic.twitter.com/W0wuAhMz6D
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.