Setup self hosted analytics (courtesy of analytics.jtfairbank.com).