@n3oltd/link-builder
v1.0.24
Published
A simple tool to build links for tracking
Downloads
2,307
Readme
Link Builder
A simple tool to build links for tracking
How use script
<script>
(function(w, d, s, c, u) {
let f = d.body.getElementsByTagName(s)[0],
j = d.createElement(s);
j.async = true;
j.src = u;
j.type = "text/javascript";
f.parentNode.insertBefore(j, f);
j.onload = function() {
if (w.n3o_attribution && typeof w.n3o_attribution.init === 'function') {
w.n3o_attribution.init(c);
}
}
})(window, document, 'script', {defaults: {4: 'default entry'}, utm_parameters: {utm_campaign: 0, utm_medium: 1,utm_source: 2},
allowShortenUrl: false, shortenUrl: async (token, shortenUrl, url) => {}}, 'https://unpkg.com/@n3oltd/link-builder/umd/n3o-attribution.js');
</script>