@unifygtm/intent-client
Version:
JavaScript client for interacting with the Unify Intent API in the browser.
47 lines (46 loc) • 1.29 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8" />
<script>
!(function () {
var e = [
'identify',
'page',
'startAutoPage',
'stopAutoPage',
'startAutoIdentify',
'stopAutoIdentify',
];
function t(o) {
return Object.assign(
[],
e.reduce(function (r, n) {
return (
(r[n] = function () {
return o.push([n, [].slice.call(arguments)]), o;
}),
r
);
}, {}),
);
}
window.unify || (window.unify = t(window.unify)),
window.unifyBrowser || (window.unifyBrowser = t(window.unifyBrowser));
var n = document.createElement('script');
(n.async = !0),
n.setAttribute('src', 'dist/js/browser/index.min.js'),
n.setAttribute(
'data-api-key',
'wk_5fTtsDLJ_7vx9DsjPcr79yk4FweES727w59pxS8EJ',
),
n.setAttribute('id', 'unifytag'),
(document.body || document.head).appendChild(n);
})();
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>