๐งช HubSpot Form Integration Test
Use this to test the form submission and tracking functionality before implementing on your research library.
๐ Configuration
๐งโ๐ผ Test User Data
๐ง Test Functions
๐ Test Checklist
- Add your HubSpot Portal ID and Form ID above
- Click "Check Storage Status" to see current state
- Click "Test LocalStorage" to verify 90-day expiry system
- Click "Test HubSpot Form Submission" to verify API connection
- Click "Test Complete Download Flow" to run all tests
- Check the debug log for detailed information
๐ Additional Tests (run in browser console):
โข testFunctions.testHubSpotTracking() - Test HubSpot tracking code
โข testFunctions.testGoogleAnalytics() - Test Google Analytics
โข testFunctions.testEmailValidation() - Test email validation
โข testFunctions.log('Custom test message') - Add custom debug messages
๐จ Common Issues & Solutions
CORS Error: Form submission blocked by browser security. This is normal for external domains - will work on your HubSpot domain.
Form Not Found (404): Check your Form ID is correct and form is published.
Portal Not Found: Verify your Portal ID in HubSpot Settings > Account Information.
Missing Fields: Ensure your HubSpot form has all required custom fields created.
LocalStorage Full: Browser storage limit reached. Clear test data and try again.