title: JavaScript: reduce Google Analytics / Yandex.Metrica to referrer and screen size
body: <p>I don't feel comfortable embedding an external JavaScript on my site to do all kinds of tracking that I don't actually need.</p>
  
  <p>What I do need is referrer and screen size, which cannot be accomplished with a static HTML <code>img</code> tag alone.</p>
  
  <p>What's the most standard-compliant, browser-supported and rendering-friendly way to load an invisible image, 1&times;1 gif, with a referrer and screen size as part of the URL?</p>
  
  <p>I'm looking for a generic answer, although you could always phrase it in terms of the <a href="https://developers.google.com/analytics/resources/articles/gaTrackingTroubleshooting#gifParameters" rel="nofollow">Google Analytics GIF Request Parameters</a>.</p>