title: How to create tracking pixel with Google Analytics for 3rd party site?
body: <p>We need to track conversions that happen on a 3rd party site. The only thing we can place on that site is an image pixel and maybe some JS logic for when to fire it.</p>
  
  <p>I know it is possible to fire a conversion using the Measurement Protocol: <a href="https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#visitor" rel="noreferrer">https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#visitor</a></p>
  
  <p>Ideally, I'd just give the 3rd party an IMG url and that would be it. The problem is the CID (unique client id).</p>
  
  <p>I can try passing the CID from our site to the 3rd party via URL parameter. However, there are many cases where its not available (e.g., IMG pixcel will be in an email, the goal URL is on printed literature) or the 3rd party is not willing to go through the hassle. Is it best practice to pass this CID in this way?</p>
  
  <p>I can try generating a CID, but I can't find a dead simple way of doing that e.g., var CID = generateCID(). The 3rd party site has its own GA on the page. Can I just take their Google Analytics CID and use it in the image pixel URL?</p>
  
  <p>What the best way to do this? Thank you!</p>