forked from blakelee-pendo/blakelee-pendo.github.io
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmfe-tagging-little-app.html
31 lines (30 loc) · 1.42 KB
/
mfe-tagging-little-app.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
<head>
<script>
(function (apiKey) {
(function (p, e, n, d, o) {
var v, w, x, y, z; o = p[d] = p[d] || {}; o._q = o._q || [];
v = ['initialize', 'identify', 'updateOptions', 'pageLoad', 'track']; for (w = 0, x = v.length; w < x; ++w)(function (m) {
o[m] = o[m] || function () {o._q[m === v[0] ? 'unshift' : 'push']([m].concat([].slice.call(arguments, 0)));};
})(v[w]);
y = e.createElement(n); y.async = !0; y.src = 'https://cdn.pendo-calypso.pendo-dev.com/agent/static/' + apiKey + '/pendo.js';
z = e.getElementsByTagName(n)[0]; z.parentNode.insertBefore(y, z);
})(window, document, 'script', 'pendo');
// This function creates visitors and accounts in Pendo
// You will need to replace <visitor-id-goes-here> and <account-id-goes-here> with values you use in your app
// Please use Strings, Numbers, or Bools for value types.
pendo.initialize({
visitor: {
id: 'test-visitor'
},
account: {
id: 'some-account'
}
});
})('07ee5158-9734-46a5-4642-39e833a0979d');
</script>
</head>
<body>
<div class="thing"></div>
</body>
</html>