Add OpenReplay tracking code for user session monitoring
This commit is contained in:
@@ -22,6 +22,33 @@ posthog.init('{{ site.posthogKey }}', {
|
|||||||
})
|
})
|
||||||
posthog.capture('$pageview');
|
posthog.capture('$pageview');
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
|
<!-- OpenReplay Tracking Code for my first project -->
|
||||||
|
<script>
|
||||||
|
var initOpts = {
|
||||||
|
projectKey: "5o5HLGZhn4TlGBbOFkVu",
|
||||||
|
// 0 - plain, 1 - obscured, 2 - ignored
|
||||||
|
defaultInputMode: 2,
|
||||||
|
obscureTextNumbers: false,
|
||||||
|
obscureTextEmails: true,
|
||||||
|
};
|
||||||
|
var startOpts = { userID: "" };
|
||||||
|
(function(A,s,a,y,e,r){
|
||||||
|
r=window.OpenReplay=[e,r,y,[s-1, e]];
|
||||||
|
s=document.createElement('script');s.src=A;s.async=!a;
|
||||||
|
document.getElementsByTagName('head')[0].appendChild(s);
|
||||||
|
r.start=function(v){r.push([0])};
|
||||||
|
r.stop=function(v){r.push([1])};
|
||||||
|
r.setUserID=function(id){r.push([2,id])};
|
||||||
|
r.setUserAnonymousID=function(id){r.push([3,id])};
|
||||||
|
r.setMetadata=function(k,v){r.push([4,k,v])};
|
||||||
|
r.event=function(k,p,i){r.push([5,k,p,i])};
|
||||||
|
r.issue=function(k,p){r.push([6,k,p])};
|
||||||
|
r.isActive=function(){return false};
|
||||||
|
r.getSessionToken=function(){};
|
||||||
|
})("//static.openreplay.com/latest/openreplay.js",1,0,initOpts,startOpts);
|
||||||
|
</script>
|
||||||
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user