Popup Mode via GTM
Deploy your form as a popup using Google Tag Manager. This method allows you to manage popup triggers and settings through the GTM interface.
Implementation Steps
Step 1: Get Your Form Configuration
- Go to your form's Embed page
- Select Google Tag Manager
- Choose Popup as the display mode
- Setup delay option - time in seconds when pop-up will appear after page load
- Copy your Form ID and configuration settings
Step 2: Create Custom HTML Tag
- Log in to Google Tag Manager
- Select your container
- Go to Tags → New
- Click Tag Configuration
- Select Custom HTML
Step 3: Add the Embed Code
Paste the following code into the HTML field:
<script async src="https://widgets.interactiveform.com/embed.js"></script>
<script>
window.ifLayer = window.ifLayer || [];
window.ifLayer.push({
id: 'YOUR_FORM_ID', type: 'pop-up', timeout: 5
});
</script>
Step 4: Configure Triggering
Choose when the tag should fire:
Option A: Page Load Trigger
- Click Triggering
- Select All Pages or create a custom trigger
- For specific pages, create a new trigger:
- Trigger Type: Page View
- This trigger fires on: Some Page Views
- Add condition:
Page URLcontains/your-page-path
Option B: Click Trigger
- Click Triggering → New
- Choose Click - All Elements
- This trigger fires on: Some Clicks
- Add condition:
Click Classescontainsopen-form-button
Option C: Time Delay Trigger
- Click Triggering → New
- Choose Timer
- Set interval:
5000(milliseconds) - Limit:
1(fire once)
Step 5: Name and Save
- Name your tag: "Interactive Form - Popup"
- Click Save
Step 6: Test in Preview Mode
- Click Preview in GTM
- Visit your website
- Verify the tag fires correctly
- Test the popup functionality
Step 7: Publish
- Click Submit in GTM
- Add version name and description
- Click Publish
Troubleshooting
Tag doesn't fire
- Check trigger configuration in GTM Preview mode
- Verify trigger conditions match your page
- Check for JavaScript errors in browser console
Popup doesn't appear
- Ensure the embed script loads successfully
- Verify form ID is correct
Multiple popups appear
- Check for duplicate tags in GTM
- Verify trigger limits are set correctly
- Use "fire once per page" option if needed
Best Practices
- Use Preview Mode: Always test in GTM preview before publishing
- Version Control: Add descriptive version names when publishing
- Trigger Limits: Set appropriate limits to avoid annoying users
- Mobile Testing: Test on mobile devices before going live
Next Steps
- Learn about Float Button mode via GTM
- Explore Manual Embedding for more display options