Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.avina.io/llms.txt

Use this file to discover all available pages before exploring further.

The Avina Web SDK is a lightweight JavaScript tracker you install on your site to resolve IPs to accounts, capture UTM parameters, and de-anonymize visitors. Once installed, it powers web-based signals (web visits, ad engagement, outbound engagement, re-engagement) and attaches rich context to every identified session.
Who installs this: typically a developer or marketing-ops admin with access to your site’s HTML or Google Tag Manager.

Insert the Avina SDK script tag

Add the following to the footer of every page you’d like Avina to track. Make sure to replace the SDK key at the end of the script with the one in Settings → Web SDK of your Avina dashboard. If you use Google Tag Manager you can add this script directly in the Tag Manager console as a new tag.
<script>
(function (m,e,s,h,a,i,c) {
  m[a] = m[a] || function () {
    (m[a].q = m[a].q || []).push(arguments);
  };
  var o = document.createElement(s);
  o.type = 'text/javascript';
  o.id = 'mesh-analytics-sdk';
  o.async = true;
  o.src = h;
  o.setAttribute("data-mesh-sdk", i);
  o.setAttribute("data-mesh-sdk-attributes", JSON.stringify(c));
  var x = document.getElementsByTagName(s)[0];
  x.parentNode.insertBefore(o, x);
})(window,document,'script',
   'https://cdn.jsdelivr.net/npm/@mesh-interactive/mesh-sdk@latest/dist/umd/index.js','mesh',
   'YOUR SDK KEY HERE',
   {useFingerprint: false, track:{session: true, forms: true}});
</script>