Analytics and tracking
Add GA4, Plausible, Meta Pixel, and other analytics or conversion-tracking tools to your PageFork site.
PageFork supports any analytics or tracking script that works via client-side JavaScript — which is basically all of them. Below are the most common ones with ready-to-paste prompts.
Before you add tracking, consider whether you need a cookie-consent banner. Most analytics beyond the privacy-first options (Plausible, Fathom, Simple Analytics) require consent in the EU/UK. See Cookie consent and privacy.
Google Analytics 4 (GA4)
The most common setup. Get your Measurement ID from GA4 → Admin →
Data Streams (format: G-XXXXXXXXXX).
Add Google Analytics 4 to the whole site. Measurement ID: G-ABC12345.
Verify in GA4 → Realtime report after publishing.
Plausible
Privacy-focused, no cookies, no consent banner required in most cases.
Add this to the <head> of every page:
<script defer data-domain="yourbrand.com"
src="https://plausible.io/js/script.js"></script>
Verify in your Plausible dashboard within a minute or two of the first visit.
Fathom
Same category as Plausible — lightweight, cookieless.
Add Fathom Analytics to every page. Site ID: ABCDEFGH.
Or paste the snippet Fathom gives you:
<script src="https://cdn.usefathom.com/script.js"
data-site="ABCDEFGH" defer></script>
Simple Analytics
Add Simple Analytics to every page:
<script async src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif"
alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
Microsoft Clarity
Free heatmaps and session recordings.
Add Microsoft Clarity to the whole site. Project ID: abc123def.
Verify in the Clarity dashboard’s Live section.
PostHog
Product analytics with session replay and feature flags.
Add PostHog to every page. API key: phc_abc123. Host: https://us.i.posthog.com.
Google Tag Manager (GTM)
The “umbrella” option — load GTM once, then manage all your pixels from its UI without touching the site again.
Add Google Tag Manager to the whole site. Container ID: GTM-ABC1234.
GTM inserts two snippets (one in <head>, one right after <body>
opens). The AI handles both.
Meta (Facebook) Pixel
For Facebook / Instagram ad conversion tracking.
Add the Meta Pixel to every page. Pixel ID: 1234567890123456.
Verify with the Meta Pixel Helper Chrome extension on the published site.
LinkedIn Insight Tag
Add the LinkedIn Insight Tag to every page. Partner ID: 1234567.
TikTok Pixel
Add the TikTok Pixel to every page. Pixel ID: ABCDEFGHIJ.
Google Ads Conversion Tracking
Paste the exact snippet from Google Ads → Tools → Conversions → your conversion → Tag setup → Install the tag yourself.
Add this Google Ads conversion tag to the thank-you page only:
<!-- (paste the full <script> block from Google Ads here) -->
Scope it to the thank-you page so the conversion only fires after a form submission.
Segment
Customer-data platform that fans events out to many downstream tools.
Add Segment to every page. Write key: abc123def456.
X (Twitter) Conversion Tracking
Add the X Pixel to every page. Pixel ID: abc12.
Reddit Pixel
Add the Reddit Pixel to every page. Pixel ID: t2_abcde.
Hotjar
Add Hotjar to the whole site. Site ID: 1234567.
Multiple trackers at once
Totally fine — they don’t conflict. If you’re stacking several, use Google Tag Manager as the single container and configure individual tags inside GTM’s UI. That way you only touch PageFork once.
Firing events on specific actions
For a form-submission or button-click event, ask the AI to wire it:
Fire a GA4 event called "signup" when the newsletter form is submitted.
Fire the Meta Pixel "Lead" event when the "Book a call" button is
clicked.
The AI will add the right event snippet at the right DOM hook.
Troubleshooting
- No data in the dashboard — confirm the site is published (not just saved), and you’re visiting the live URL, not the editor preview.
- Script loads but no events — check browser devtools → Network tab for calls to the vendor’s endpoint. Most vendors also have a “diagnose” tool (Meta Pixel Helper, GA4 DebugView).
- Consent banner blocks everything — if you’ve added a cookie banner, it may be gating scripts. Make sure analytics is allowed in the category the visitor accepted.