Add OpenPanel analytics snippet (parallel to Plausible)
This commit is contained in:
parent
99e113130d
commit
9685346cd6
1 changed files with 13 additions and 1 deletions
|
|
@ -192,7 +192,19 @@
|
|||
<!-- Analytics -->
|
||||
<script defer data-domain="openshorts.app" src="https://analytics.fotoexamen.com/js/script.js"></script>
|
||||
<script>window.plausible = window.plausible || function () { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||
</head>
|
||||
<!-- OpenPanel analytics (self-hosted) -->
|
||||
<script>
|
||||
window.op = window.op || function () { var n = []; return new Proxy(function () { arguments.length && n.push([].slice.call(arguments)); }, { get: function (t, r) { return "q" === r ? n : function () { n.push([r].concat([].slice.call(arguments))); }; }, has: function (t, r) { return "q" === r; } }); }();
|
||||
window.op("init", {
|
||||
apiUrl: "https://api.openpanel.fotoexamen.com",
|
||||
clientId: "9b7ab939-bdef-4097-87c4-bb4a2dbe034d",
|
||||
trackScreenViews: true,
|
||||
trackOutgoingLinks: true,
|
||||
trackAttributes: true,
|
||||
});
|
||||
</script>
|
||||
<script src="https://openpanel.dev/op1.js" defer async></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue