给memos添加umami统计

umami的部署请参见

https://blog.memos.ee/archives/195.html

把以下代码添加到自定义代码中

// umami analytics
function umamiAnalytics() {
  const umami = document.createElement("script");
  umami.async = true;
  umami.src = "<YOUR_UMAMI_ANALYTICS_URL>";
  umami.setAttribute("data-website-id", "<YOUR_DATA_WEBSITE_ID>");
  document.body.appendChild(umami);
};
umamiAnalytics()

自行替换<YOUR_UMAMI_ANALYTICS_URL><YOUR_DATA_WEBSITE_ID>

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注