Analytics

You can add any analytics tool to your blog.

You just have to modify the nuxt.config.ts file to add the tracking code of your analytics provider.

For example, to add Pirsch, you can add the following code to the nuxt.config.ts file:

export default {
    app: {
        head: {
            htmlAttrs: {
                lang: "en",
            },
            script: [
                {
                    src: "https://api.pirsch.io/pirsch.js",
                    id: "pirschjs",
                    defer: true,
                    "data-code": "YOUR_PIRSCH_CODE",
                    type: "text/javascript",
                },
            ],
        },
    },
}
Replace YOUR_PIRSCH_CODE with your Pirsch code.