Install mrkr
Add the tracking script to your site: the exact tag, where it goes, and instructions for common frameworks and platforms.
mrkr tracks with a single <script> tag. There's no config file, no build step, and nothing else to install.
The script tag
Your dashboard's Install page has this pre-filled with your own site id. It looks like this:
<script defer src="https://mrkr.app/tracker.js" data-site="YOUR_SITE_ID"></script>
Copy the snippet
From the Install page in your dashboard: it already has your site id filled in.
Paste it into
<head>Just before the closing
</head>tag, on every page you want tracked. Thedeferattribute means it won't block rendering.Deploy
Once the tag is live on your site, mrkr starts receiving pageviews immediately: no waiting period, no propagation delay.
Confirm it's working
Head to Verify your install: the dashboard auto-detects your first pageview within a minute.
Framework and platform instructions
The tag is the same everywhere. What changes is where you paste it.
Next.js (App Router)
Render it from your root app/layout.tsx with next/script. Because it lives in the root layout, every route gets it automatically, with no per-page setup:
import Script from "next/script";
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body>
{children}
<Script src="https://mrkr.app/tracker.js" data-site="YOUR_SITE_ID" />
</body>
</html>
);
}No strategy is needed. next/script defaults to afterInteractive, which loads the tracker early but after hydration begins, and that is the right setting for analytics. A plain <script defer> tag in the layout works too if you would rather not use the component.
Nuxt
Add it to app.head.script in nuxt.config.ts, or call useHead() from your root app.vue:
// nuxt.config.ts
export default defineNuxtConfig({
app: {
head: {
script: [
{ src: "https://mrkr.app/tracker.js", defer: true, "data-site": "YOUR_SITE_ID" },
],
},
},
});Plain HTML
- Open the HTML file (or template) for your site.
- Paste the snippet just before the closing
</head>tag. - Deploy. Every page that includes that
<head>is now tracked.
WordPress
- Install a header-snippet plugin (WPCode, or "Insert Headers and Footers").
- Paste the snippet into the Header /
<head>box. - Save. No theme edits needed: it loads site-wide.
Webflow
- Project Settings → Custom Code → Head Code.
- Paste the snippet into the Head box and save.
- Publish your site to push the change live.
Shopify
- Admin → Online Store → Themes → … → Edit code.
- Open
layout/theme.liquidand paste the snippet right before</head>. - Save. It loads on every storefront page.
Google Tag Manager
- Create a new Custom HTML tag in your GTM container.
- Paste the snippet, then set the trigger to All Pages.
- Submit and publish the container.