[{"data":1,"prerenderedAt":127},["ShallowReactive",2],{"/2025/09/05-analytics-with-umami":3},{"id":4,"title":5,"body":6,"date":118,"description":41,"extension":119,"meta":120,"navigation":121,"path":122,"robots":123,"seo":124,"stem":125,"__hash__":126},"posts/2025/09/05 analytics-with-umami.md","05 Analytics With Umami",{"type":7,"value":8,"toc":114},"minimark",[9,18,21,25,28,42,45,53,55,58,95,97,105],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"analytics-with-umami","Analytics with Umami",[19,20],"br",{},[22,23,24],"p",{},"I'm thinking of using third party to check how many visitors to my new blog. Of course, the first thing that came to mind is Google Analytics. But I'm wondered if there's a good alternative. In online forum, some suggested Umami, so I decided to sign up.",[22,26,27],{},"The process from sign up to integration was smooth. It took me less than 5 minutes from zero to running. One thing that I need to adjust is because I used Nuxt, I had to configure Umami's script tag from:",[29,30,31],"code-block",{},[32,33,38],"pre",{"className":34,"code":36,"language":37},[35],"language-text","\u003Cscript defer src=\"https://cloud.umami.is/script.js\" data-website-id=\"...\">\u003C/script>\n","text",[39,40,36],"code",{"__ignoreMap":41},"",[22,43,44],{},"to the following, which is to be placed under app.vue:",[29,46,47],{},[32,48,51],{"className":49,"code":50,"language":37},[35],"\u003Cscript setup lang=\"ts\">\nuseHead({\n  ...\n  script: [ \n    { \n      defer: true,\n      src: 'https://cloud.umami.is/script.js', \n      'data-website-id': '...'\n    }\n  ]\n})\n\u003C/script>\n",[39,52,50],{"__ignoreMap":41},[19,54],{},[22,56,57],{},"For more information:",[59,60,61,83],"ul",{},[62,63,64,71,72],"li",{},[65,66,67,68],"strong",{},"Nuxt ",[39,69,70],{},"useHead",": ",[73,74,77],"span",{"className":75},[76],"text-blue-600",[78,79,80],"a",{"href":80,"rel":81},"https://nuxt.com/docs/4.x/getting-started/seo-meta#usehead",[82],"nofollow",[62,84,85,71,88],{},[65,86,87],{},"Umami",[73,89,91],{"className":90},[76],[78,92,93],{"href":93,"rel":94},"https://umami.is/",[82],[19,96],{},[98,99,100],"section-title",{},[101,102,104],"h2",{"id":103},"github-repository","GitHub Repository",[22,106,107],{},[73,108,110],{"className":109},[76],[78,111,112],{"href":112,"rel":113},"https://github.com/nik-yo/Nikki-no-Nikki",[82],{"title":41,"searchDepth":115,"depth":115,"links":116},2,[117],{"id":103,"depth":115,"text":104},"2025-09-05T00:00:00.000Z","md",{},true,"/2025/09/05-analytics-with-umami",null,{"title":5,"description":41},"2025/09/05 analytics-with-umami","ePxJoDqzDcZkFKiJz1OsxEUw5LuyyRYupBKlH-eLWTY",1785167453250]