Step 1: Create an account
Sign up for a PostMetric account at [your-dashboard-url]. You’ll get access to your dashboard where you can manage all your websites.Step 2: Add your website
- Click “Add Website” in your dashboard
- Enter your website name and domain
- Click “Create”
Step 3: Install the tracking script
Copy the tracking script from your dashboard and add it to your website. The script will be generated automatically for your website.Basic installation
Add this script to the<head> section of your website:
YOUR_TRACKING_CODE with the tracking code from your dashboard.
Next.js installation
For Next.js projects, add the script to yourapp/layout.tsx or pages/_app.tsx:
The tracking script automatically tracks page views and supports single-page
applications (SPA) out of the box.
Step 4: Verify tracking
- Visit your website
- Go back to your PostMetric dashboard
- You should see your visit appear in real-time