Skip to content

Commit

Permalink
feat: Add PageSpy SDK and plugins for enhanced page analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwei committed Oct 31, 2024
1 parent 2d0faf7 commit 53ad437
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>电脑壁纸-神族九帝</title>

<!-- PageSpy SDK -->
<script crossorigin="anonymous" src="https://pagespy.shenzjd.com/page-spy/index.min.js"></script>

<!-- 插件(非必须,但建议使用) -->
<script crossorigin="anonymous" src="https://pagespy.shenzjd.com/plugin/data-harbor/index.min.js"></script>
<script crossorigin="anonymous" src="https://pagespy.shenzjd.com/plugin/rrweb/index.min.js"></script>
<script>
window.$harbor = new DataHarborPlugin();
window.$rrweb = new RRWebPlugin();

[window.$harbor, window.$rrweb].forEach(p => {
PageSpy.registerPlugin(p)
})

window.$pageSpy = new PageSpy();
</script>
<%- script %>
</head>

Expand Down

0 comments on commit 53ad437

Please sign in to comment.