← Back to Blog·January 2, 2025·4 min read

Set Up Website Analytics in 5 Minutes

A step-by-step guide to adding analytics to any website. Works with WordPress, Wix, Squarespace, Next.js, and every other platform.

Developer setting up website analytics on a laptop

1️⃣ Step 1: Create Your Account (1 minute)

Head to Copper Analytics and create a free account. You'll need:

  • 📧 An email address
  • 🔑 A password
  • 🌐 Your website URL

No credit card required. The free plan includes 10,000 page views per month.

2️⃣ Step 2: Get Your Tracking Code (30 seconds)

After creating your account, you'll see your unique tracking code:

<script defer src="https://copperanalytics.com/track.js"
data-site="CA-XXXXXXXXXX"></script>

Copy this code. You'll paste it into your website in the next step.

3️⃣ Step 3: Add the Code to Your Website (2-3 minutes)

The process varies slightly by platform. Find your platform below:

📝 WordPress

  1. Go to Appearance → Theme Editor (or use a plugin like Insert Headers and Footers)
  2. Open your header.php file
  3. Paste the tracking code just before the closing </head> tag
  4. Save changes

Wix

  1. Go to Settings → Custom Code
  2. Click "+ Add Custom Code"
  3. Paste the tracking code
  4. Set it to load on "All Pages" in the "Head"
  5. Save and publish

🎨 Squarespace

  1. Go to Settings → Advanced → Code Injection
  2. Paste the tracking code in the "Header" section
  3. Save

⚛️ Next.js / React

Add to your _app.js or layout component:

import Script from 'next/script'
<Script
defer
src="https://copperanalytics.com/track.js"
data-site="CA-XXXXXXXXXX"
/>

🌐 HTML / Static Sites

Add the script tag to every page, just before the closing </head> tag.

4️⃣ Step 4: Verify It's Working (1 minute)

Visit your website in a new browser tab. Then check your Copper Analytics dashboard. You should see:

  • 👤 1 current visitor (that's you!)
  • 📊 A page view recorded
  • 🌍 Your location on the map

If you see data appearing, congratulations! Your analytics are live.

🔧 Troubleshooting

No data showing up? Check these common issues:

  • 🗄️ Caching: Clear your site's cache and your browser cache
  • 🛡️ Ad blocker: Some ad blockers may block analytics. Test in incognito mode with extensions disabled
  • 📍 Code placement: Make sure the script is in the <head> section, not the body
  • 📤 Published changes: On Wix/Squarespace, make sure you clicked "Publish" after adding the code

🚀 What's Next?

Now that analytics are running, wait 24-48 hours to collect meaningful data. Then:

  1. 🏆 Review your top pages—what content resonates?
  2. 🔗 Check traffic sources—where are visitors coming from?
  3. 📱 Look at devices—are you optimized for your audience?

🚀 Ready to Get Started?

Create your free account and start tracking in minutes.

Create Free Account