SparkLoop's tracking script can be installed on any web or landing page, eliminating the need for specific referral pages.
Any landing page you're using and that's already converting well can also bring in referrals.
Read this for more on the tracking script and where to find it.
If you use Google Tag Manager, here's how to set it up.
⚠️ Important: Google Tag Manager is often targeted by ad blockers and extensions such as Ghostery, which means some visitors may block it when visiting your website. When this happens, SparkLoop will not load and referrals will not be tracked. Always test in an incognito window with extensions disabled.
How to install the tracking script using Google Tag Manager
In your SparkLoop dashboard, go to Settings > Script and copy your tracking script.
Log into Google Tag Manager and open the container you want to use.
Under Tags, click New.
Give the tag a name (e.g. SparkLoop) and select Custom HTML.
Paste the SparkLoop tracking script into the HTML field.
Scroll down to Triggering and select All Pages — this ensures you capture as many referrals as possible.
Click Save.
Click the Submit button in the top right corner to publish your changes.
⚠️ Don't forget to hit Submit. Clicking Save on a tag does not make it live on your website. You must click Submit in the top right corner of GTM to publish your changes. This is the most common reason the script doesn't work after setup.
If you're using Beehiiv
Once your tag is set up and submitted in GTM, you need to connect your GTM container to Beehiiv:
In Beehiiv, go to Website Builder > Settings > Pixels.
Paste your Google Tag Manager Pixel ID into the field provided.
Click Save.
⚠️ Watch out for extra spaces. When pasting your GTM Pixel ID into Beehiiv, make sure there are no leading or trailing spaces — even a single extra space will prevent it from connecting correctly.
Verifying the script
Once everything is set up, go back to SparkLoop and verify the tracking script through your onboarding checklist. After verifying, make sure to activate Signup Flow using the button in the top right corner of the checklist.
To confirm everything is working end-to-end, visit your publication's landing page, sign up as a test subscriber, and check that the Signup Flow widget appears with your selected recommendations.
Troubleshooting
If the script isn't being detected, check the following:
Did you click Submit in GTM? Saving a tag is not the same as publishing it. You must hit Submit for changes to go live.
Extra space in the Beehiiv Pixel ID field. Remove any spaces before or after the ID when pasting it in.
Ad blocker enabled. Test in an incognito window with browser extensions disabled.
Wrong GTM container. Make sure you're working in the container connected to the correct website.
Still stuck? Reach out to support@sparkloop.app and the team will be happy to help.


