Month: January 2016

Just random stuff - Nothing to see here - Move along...

Adding Multiple GA IDs on One Domain

You may find the need to add additional (or include your own) tracking code on a website. ¬†Using the async analytics.js GA code, here’s an example: <!– UA-12345496-5 ORIG UA-72112345-1 CNVG US-55123457-1 UNKN –> <script> (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’); ga(‘create’, ‘UA-12345496-5′,’auto’); ga(‘create’, ‘UA-72112345-1′,’auto’, {‘name’: ‘CNVG’}); ga(‘create’, ‘UA-55123457-1′,’auto’, {‘name’: ‘UNKN’}); ga(‘send’, ‘pageview’); ga(‘CNVG.send’, ‘pageview’); ga(‘UNKN.send’,…
Read more

WordPress Apache PHP5-FPM and Redirect-Loop

Ok, here’s a quick and dirty .. just so I log this as it drove me crazy and I lost about 3 hours of my life on it. Earlier in the day I wrote a script to sync configs across servers and that’s been working great. ¬†Using a unison and some other bits, so keep…
Read more