« first day (2047 days earlier)      last day (2886 days later) » 

2:54 PM
anyone ever play with feeding google analytics back into a WP site?
 
how do you mean?
as in displaying traffic stats on the frontend/back end?
or most popular posts?
 
3:41 PM
@TomJNowell well I was researching for a way to show post views on single.php through a widget, like SE does
Ive contemplated using Google's analytic API to back feed into a site, but im currently looking for a solution other than a plugin to learn the implementation they used to get an idea of how they did it.
 
David Haney on May 24, 2016
At Stack Overflow, we're committed to making the internet a better place, and our products aim to enrich the lives of developers as they grow and mature in their careers. This week we have been given the opportunity to expand our reach beyond developers into another worthy demographic: foster youth.
 
@Darth_Vader, SE can afford a server that will handle stats, you probably can't. If you don't have much traffic just filtering known search engines and writting to the DB on every page hit can be enough, but for any non trivial site this will just not work
going with GA API, or wordpress.com is better
 
3:57 PM
@MarkKaplun ah, ok. So what is the better way to record page hits, Ive seen a few Q&As on WP
ah this looks to be interesting: wordpress.stackexchange.com/questions/33460/…
 
As I said, the most simple is GA and wordpress.com. If you want DIY you better creat a different process that you don't care much if it fails, but it will not bring down the site itself. his is why second server is ideal
then just like GA you load some empty image/css/js from that server.
From your WP you can access the other DB when you need the info
on the stats server you can either store access in a DB or use logs and aggregate them every hour
 

« first day (2047 days earlier)      last day (2886 days later) »