Adding metadata to conversions

Note: This is an advanced feature - we highly advise you get a developer to help implement this in your code.

If you want to store additional data alongside a conversion, e.g. a lead’s name and email, you can do so by adding a meta object within the options object in the conversion code:

  <script src="//tapfiliate.com/tapfiliate.js" type="text/javascript" async></script>
  <script type="text/javascript">
    (function(t,a,p){t.TapfiliateObject=a;t[a]=t[a]||function(){
    (t[a].q=t[a].q||[]).push(arguments)}})(window,'tap');

    tap('create', 'YOUR ACCOUNT ID');

    var metaData = {
        email: "chuck@norris.com",
        foo: "bar",
      };

    tap('conversion', 'UNIQUE CONVERSION ID', CONVERSION AMOUNT, {meta_data: metaData});
  </script>

The following limitations apply to meta data:

  • Maximum key length: 64
  • Maximum value length: 255
  • Maximum number of properties: 10
  • Illegal characters:" : { } ] \ ' / &