mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Add Microsoft clarity as an analytics provider (#451)
This commit is contained in:
parent
8b4b4004c1
commit
4b7b2ab907
@ -682,6 +682,10 @@ growingio_analytics: # <project_id>
|
||||
# See: https://www.cloudflare.com/web-analytics/
|
||||
cloudflare_analytics:
|
||||
|
||||
# Microsoft Clarity Analytics
|
||||
# See: https://clarity.microsoft.com/
|
||||
clarity_analytics: # <project_id>
|
||||
|
||||
# Show number of visitors of each article.
|
||||
# You can visit https://www.leancloud.cn to get AppID and AppKey.
|
||||
leancloud_visitors:
|
||||
|
||||
1
layout/_third-party/analytics/index.njk
vendored
1
layout/_third-party/analytics/index.njk
vendored
@ -2,3 +2,4 @@
|
||||
{%- include 'baidu-analytics.njk' -%}
|
||||
{%- include 'growingio.njk' -%}
|
||||
{%- include 'cloudflare.njk' -%}
|
||||
{%- include 'microsoft-clarity.njk' -%}
|
||||
|
||||
3
layout/_third-party/analytics/microsoft-clarity.njk
vendored
Normal file
3
layout/_third-party/analytics/microsoft-clarity.njk
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{%- if theme.clarity_analytics %}
|
||||
<script async src="https://www.clarity.ms/tag/{{ theme.clarity_analytics }}"></script>
|
||||
{%- endif %}
|
||||
Loading…
x
Reference in New Issue
Block a user