Skip to main content
Pro subscription required. Analytics tracking is available on the Flashquotes Pro plan. Learn more about upgrading.
Google Tag Manager (GTM) lets you manage multiple tracking pixels and analytics tools from one place. Use GTM when you need to track conversions across multiple platforms like Facebook, LinkedIn, or TikTok.

Why use Google Tag Manager

GTM is ideal when you need to:
  • Track multiple platforms - Send conversion data to Facebook Pixel, LinkedIn Insight Tag, TikTok Pixel, etc.
  • Use advanced triggers - Fire tags based on specific form events or custom conditions
  • Manage tracking centrally - Update all your tracking from one GTM container
  • A/B test tracking - Experiment with different tracking configurations
If you only need Google Analytics 4 tracking, the simpler GA4 direct integration may be all you need.

Events pushed to dataLayer

Flashquotes pushes these events to the GTM dataLayer when visitors interact with your lead intake forms:
EventWhen it firesWhat it tells you
form_viewForm page loadsHow many people see your form
form_startFirst field interactionHow many people start filling out your form
generate_leadSuccessful submissionHow many leads you captured
Each event includes this data in the dataLayer:
{
  event: 'form_view', // or 'form_start' or 'generate_lead'
  form_id: 'abc123',
  form_name: 'Wedding Inquiry Form',
  utm_source: 'facebook',
  utm_medium: 'paid',
  utm_campaign: 'summer_promo',
  utm_term: 'wedding photographer',
  utm_content: 'video_ad'
}
The generate_lead event also includes:
  • lead_id - The Flashquotes lead ID
  • quote_id - The associated quote ID (if created)

Set up GTM tracking

1

Get your GTM Container ID

Your Container ID looks like GTM-XXXXXXX. Find it in Google Tag Manager:
  1. Go to Google Tag Manager
  2. Select your container (or create one)
  3. Your Container ID appears at the top of the workspace
Google’s guide to finding your Container ID
2

Add to Flashquotes

  1. Go to Settings > Integrations
  2. Find the Google Tag Manager card
  3. Click Connect and paste your Container ID
  4. Click Save
You can also access this setting from Forms > [Your Form] > Settings under the Tracking & Analytics section.
3

Create triggers in GTM

In your GTM container, create triggers for each Flashquotes event:
  1. Go to Triggers > New
  2. Choose Custom Event as the trigger type
  3. Set Event name to match (e.g., generate_lead)
  4. Save the trigger
  5. Repeat for form_view and form_start
4

Connect triggers to your tags

  1. Create or edit your conversion tag (e.g., Facebook Pixel)
  2. Under Triggering, add your new trigger
  3. Save and publish your container

Example: Facebook Pixel setup

Here’s how to track Flashquotes leads as Facebook conversions:

1. Create variables for form data

In GTM, go to Variables > User-Defined Variables > New:
Variable NameVariable TypeData Layer Variable Name
FQ - Form IDData Layer Variableform_id
FQ - Form NameData Layer Variableform_name
FQ - Lead IDData Layer Variablelead_id

2. Create the trigger

  1. Go to Triggers > New
  2. Choose Custom Event
  3. Set Event name to generate_lead
  4. Name it “FQ - Lead Generated”

3. Create the Facebook Pixel tag

  1. Go to Tags > New
  2. Choose Facebook Pixel (or Custom HTML if not available)
  3. Configure the Lead event with your Pixel ID
  4. Add the “FQ - Lead Generated” trigger
  5. Save and publish

4. Test in Preview mode

  1. Click Preview in GTM
  2. Open your Flashquotes form
  3. Submit a test lead
  4. Verify the tag fires in GTM’s debug panel

Best practices

  1. Use GTM Preview mode - Always test new tags before publishing
  2. Name things clearly - Use prefixes like “FQ -” for Flashquotes-related items
  3. Document your setup - Note which tags use which triggers
  4. Test conversions end-to-end - Verify data appears in your ad platforms
  5. Don’t double-track - If using GTM, don’t also add GA4 directly in Flashquotes

Troubleshooting

Use Google Tag Assistant for debugging. Google Tag Assistant is the best tool for verifying your setup. It shows exactly what events are firing, what tags are triggered, and what data is being sent. Open Tag Assistant, connect it to your form page, and watch the dataLayer events in real-time as you interact with your form.

Events not appearing in GTM Preview

  1. Check Container ID format - Must be GTM- followed by 6-10 alphanumeric characters
  2. Refresh the page - GTM loads on page load
  3. Check for conflicts - Ensure GTM isn’t also loaded by your website

Tags not firing

  1. Verify trigger setup - Event names are case-sensitive (generate_lead not Generate_Lead)
  2. Check trigger conditions - Make sure there are no extra conditions blocking the trigger
  3. Test in Preview mode - GTM Preview shows exactly why tags fire or don’t fire

Data not appearing in ad platform

  1. Allow time for sync - Some platforms take hours to show conversion data
  2. Check pixel/tag setup - Verify your ad platform tag is configured correctly
  3. Test with platform tools - Use Facebook Pixel Helper, LinkedIn Insight Tag debugger, etc.

Using both GA4 and GTM

If you add both GA4 and GTM IDs in Flashquotes:
  • Both will receive events
  • Make sure you’re not sending duplicate data to GA4 (once directly, once via GTM)
  • Choose one method: either direct GA4 or GA4 via GTM

Next steps