Setup Snappy in HubSpot
Install Snappy in HubSpot
Adding Snappy to your HubSpot website is straightforward and gives your marketing team the freedom to optimize your site without developer involvement.
Overview
Accessing HubSpot Settings
To get started with Snappy on your HubSpot site:
- Log in to your HubSpot account
- Click on the Settings icon (gear) in the main navigation bar
- In the left sidebar, select Website → Pages & Templates
This will bring you to the website settings where you can modify your HubSpot site's code.
Adding the Snappy Script
HubSpot provides multiple ways to add custom code to your site depending on your needs:
Method 1: Site-wide Installation (Recommended)
To add Snappy to all pages on your HubSpot site:
- In Pages & Templates, click on Advanced → Site Header
- In the HTML editor, paste your Snappy script just before the closing
</head>
tag:
<script src="https://scripts.letsbesnappy.com/YOUR_DOMAIN/admin.js"></script>
- Make sure to replace
YOUR_DOMAIN
with the domain the script should be installed on - Click Save to apply your changes
Method 2: Using HubL to Add to Templates
If you want more control over which templates include Snappy:
- Navigate to Marketing → Website → Website Pages
- Select a template to edit
- Click Edit → Edit Template
- In the template editor, find the
<head>
section - Add your Snappy script before the closing
</head>
tag:
<script src="https://scripts.letsbesnappy.com/YOUR_DOMAIN/admin.js"></script>
- Make sure to replace
YOUR_DOMAIN
with the domain the script should be installed on - Click Publish changes to save
Verifying Installation
To confirm Snappy is working correctly:
- Visit your live HubSpot website in a web browser
- Right-click and select View Page Source
- Search (Ctrl+F or Cmd+F) for "letsbesnappy.com" - you should see your script in the head section
- Log in to your Snappy dashboard - your HubSpot site should appear as a connected site
Troubleshooting
If you're experiencing issues with your Snappy installation on HubSpot:
Script not appearing on all pages
HubSpot uses different templates and modules that might affect how scripts load:
- If using Method 1 (Site Header), verify the code was properly saved
- If using Method 2, check that you've updated all necessary templates
- For landing pages created with the landing page editor, you may need to add the script separately
HubSpot modules and limitations
Some HubSpot features interact differently with custom code:
- For HubSpot CMS Hub Professional or Enterprise users, use the site-wide header injection option
- For CMS Hub Starter, you may need to add the script to individual templates
- HubSpot landing pages may need separate configuration in some cases
After theme updates
When updating your HubSpot theme:
- Check that your custom code remains in place
- If the script disappears, re-add it using the appropriate method
- Consider documenting your Snappy installation details for future reference
Working with A/B tests
If you're using both HubSpot's native A/B testing and Snappy:
- Make sure to add the Snappy script to all variants
- Consider using only one testing platform at a time on a single page to avoid conflicts
- For complex scenarios, contact our support team for guidance
With Snappy successfully installed on your HubSpot site, you're ready to start creating widgets, conducting A/B tests, and optimizing your site without waiting for development cycles.
Ready to transform your HubSpot site? Login to your Snappy dashboard and begin creating your first optimization today!