See code on Github
GA Beacon
Embed a simple image (pixel tracker) and beacon data to Google Analytics.