Skip to main content

How to Install Soundee’s Analytics.js on a custom website

Kevin avatar
Written by Kevin
Updated yesterday

If you're looking to track visitors, recover abandoned carts, or dynamically load tracks using URL parameters like ?snd_track=, then installing Soundee’s Analytics.js is essential — but only if you're embedding Soundee as a player on a custom website.

⚠️ Note: If you're using the Soundee Pagebuilder with a custom domain, you do not need to install Analytics.js manually. It's already included for you.

Here’s how to get it set up in just a few minutes.


✅ The Recommended Way: Use the Embed Code from Your Soundee Studio

The easiest and most reliable way to install Analytics.js is by grabbing your full embed code directly from your Soundee Studio:

  1. Log in to your Soundee account

  2. Go to Studio > Stores > Embed Code

  3. Copy the entire embed snippet

  4. Paste it into your website’s <head> section (or wherever you normally add scripts)

This embed code already includes the Analytics.js file and ensures everything — from track embedding to event tracking — works smoothly.


⚙️ Installing Analytics.js Separately (Advanced Users)

If you’re manually building your site or only want to include the tracking part without the full player, you can add the script directly:

<script src="https://pagebuilder-cdn.soundee.com/analytics.js"></script>

💡 Tip: Place this before your player embed code (if you’re using it), ideally right before the closing </head> tag. This ensures all tracking events and parameter-based loading (like ?snd_track=your-track) are registered correctly.


🔎 How to Verify It’s Working

To confirm Analytics.js is installed correctly:

  1. Open your website in a browser

  2. Right-click anywhere and choose Inspect to open Developer Tools

  3. Go to the Console tab

  4. Look for this message:

    Soundee events initialized!

If you see that, you're good to go!


💡 What Does Analytics.js Enable?

Once installed, Analytics.js activates a range of powerful features:

  • 🎯 Facebook Pixel & Google Tag Manager compatibility

  • 📈 Visitor & event tracking

  • 🎵 Dynamic loading of specific tracks via ?snd_track=

  • 🧩 Support for custom parameters like campaignId, utm_source, and more

  • 🛒 Recover abandoned carts by tracking user actions via custom URLs or retargeting

These features are essential for anyone serious about optimizing beat sales, running ads, or monitoring user behavior.


📚 Learn More

You can read the full documentation here:
👉 Parameters, Tracking, and Functions


If you’re unsure where to place the script or run into issues, feel free to contact our support team — we’re here to help.

Did this answer your question?