Install SparkPulse

Follow these steps to add tracking to your website

1 Your Tracking Snippet

Copy this snippet and paste it into your website's HTML. It goes just before the closing </body> tag on every page you want to track.

2 Install on Your Platform

Choose your platform below for specific instructions:

WordPress
Shopify
Squarespace
Wix
Static HTML
Other

Option A — Plugin (Recommended):

  • Install the WPCode or "Insert Headers and Footers" plugin
  • Go to plugin settings → paste the snippet in the "Footer" or "Body" section
  • Save changes

Option B — Hostinger hPanel:

  • Websites → Manage your site → Custom Code (or Header Scripts)
  • Paste in the "Body" or "Footer" section → Save

Option C — Theme File:

  • Appearance → Theme Editor → footer.php
  • Paste before </body>
⚠️ Theme updates will overwrite Option C. Use a child theme or a plugin instead.
  • Online Store → Themes → Edit Code
  • Open theme.liquid
  • Paste the snippet before </body>
  • Save the file
  • Settings → Advanced → Code Injection
  • Paste the snippet in the Footer section
  • Save
  • Settings → Custom Code → Add New
  • Paste the snippet, set placement to "Body - end"
  • Apply to all pages
  • Open each .html file in your code editor
  • Paste the snippet just before the closing </body> tag
  • Save and deploy

The universal rule: paste the snippet just before the closing </body> tag on every page you want to track.

Most platforms have a "Custom Code", "Code Injection", or "Header/Footer Scripts" section in their settings where you can paste it once and it applies to all pages.

3 Verify It Works

4 Custom Events (Optional)

After the snippet loads, you can fire custom events anywhere on your page using the pulse() function:

pulse('click', {button: 'signup'}); pulse('purchase', {item: 'pro-plan', amount: 29}); pulse('download', {file: 'guide.pdf'}); pulse('signup', {method: 'google'});

Custom events appear in your dashboard under the Events tab.

? Troubleshooting

No data showing?
Make sure the snippet is installed on your live site (not just localhost). Check that the site_key in the snippet matches the site in your dashboard.
CORS errors in console?
Your SparkPulse instance must allow your site's origin. If you're self-hosting, check your server's CORS configuration.
Script not loading?
Verify the snippet is between <body> and </body>, not in <head>. Also check for ad-blockers that might block tracking scripts.
Need help?
Check the browser console (F12) for any red error messages — they usually point to the exact problem.
✅ Copied to clipboard!