Conversions

Website code

Count it from your page, when it happens.

Your page tells YouSendIt that the conversion happened, at the moment it happens: a booking confirmed, a quote requested, a plan chosen. Use it when no page address or activity marks the moment. Your website needs the tracking code.

Set it up

  • Add the tracking code to your site.
  • In Settings → Conversions, add Website code and save. The conversion’s page then shows the code, with its id filled in.
  • Paste the code on your page, below the tracking code, where the conversion happens (or call it from your JavaScript at that moment).
On the page where it happens
<script>
  window.ysi = window.ysi || [];
  ysi.push(["conversion", "<conversion id>"]);
</script>

Sending a value

To send what this conversion was worth, turn on Use the value the website code sends in the conversion, and add it to the call:

With a value
ysi.push(["conversion", "<conversion id>", { value: 189 }]);

Anyone can send any number from a browser, so where the amount matters, send it from your server instead: an order through Sending orders, or an event with a value through Sending your own events. With the switch off, the conversion’s own value is used.

How calls count

  • Only visitors we know count (which visitors are recorded), and these conversions are labelled as coming from your website.
  • A page that is reloaded calls it again: set Count at most 1 time per contact if it should count once.