<head>data-key attribute must match your site's API keySymptoms: No events showing in dashboard, browser console shows 404 error for sp.js
Solution:
https://referscope.app/sp.jsscript-src https://referscope.app) and the visits it sends (connect-src https://collect.referscope.app https://referscope.app)Symptoms: Script loads successfully but no events in dashboard
Solution:
Symptoms: Works in development but not in production, or events duplicated on every page change
Solution for Next.js App Router:
app/layout.tsx inside the <head> using Next.js Script component with strategy="afterInteractive"rm -rf .next && npm run buildSolution for Next.js Pages Router:
pages/_document.tsx in the <Head> componentSymptoms: Can't find where to add the script, or script gets removed after updates
Solution:
header.php and add the script before </head>Symptoms: Events tracked inconsistently or not at all
Solution:
referscope.appWe're here to help. Send us your site URL and we'll diagnose the problem.
Email Support