Skip to main content

Capturing Conversion Information

ATS, via the retrieveEnvelope function, can be used alongside traditional image or JavaScript tags to capture conversion events.

Note

Decrypting Envelopes

You will need access to additional LiveRamp services, such as the Identity Envelope Decryption API, in order to convert volatile envelopes into stable s.

Conversion image tag:

<script>
  function dropTag(result) {
    if (result) {
      envelope = JSON.parse(result).envelope;
      envelopeImage = document.createElement('img');
      envelopeImage.src = "https://analytics.example.com/pixel?advertiser=123&su=2&site_url=https%3A%2F%2Fwww.authenticated-traffic-solution.com%2F&referer=https%3A%2F%2Fwww.google.com&envelope=" + envelope;
      document.body.appendChild(envelopeImage);
    }
  }
  ats.retrieveEnvelope(dropTag)
</script>