View Categories

Integrating Google Analytics, Meta Pixel, and More

9 minute read

Connect Your Favorite Analytics and Advertising Platforms #

FORMEPIC makes it effortless to integrate with the world’s most popular analytics and advertising platforms through a single Google Tag Manager integration. Instead of adding multiple tracking scripts to your forms or wrestling with complex code, you simply add your GTM container ID once, and then control all your tracking from the GTM dashboard.

This powerful approach gives you ultimate flexibility. Want to send form submission data to Google Analytics? Done. Need to fire a Meta Pixel conversion event? Easy. Want to track LinkedIn Insight Tag conversions, TikTok Pixel events, and Pinterest Tag activities—all from the same form? No problem. With FORMEPIC’s GTM integration, you can manage all your tracking platforms from one central location.

Best of all, FORMEPIC automatically sends rich, detailed events to your GTM dataLayer, including form views, user interactions, step changes, and successful submissions. You get granular insights into user behavior without writing a single line of code.

Supported Platforms #

FORMEPIC’s tracking system supports integration with all major analytics and advertising platforms through Google Tag Manager:

Analytics Platforms #

  • Google Analytics (GA4) – Track form performance, user behavior, and conversion funnels
  • Google Analytics Universal (via GTM) – Legacy analytics tracking

Advertising Platforms #

  • Google Ads – Track conversions and optimize campaign performance
  • Meta (Facebook) Pixel – Monitor Facebook and Instagram ad conversions
  • TikTok Pixel – Track TikTok ad performance and conversions
  • LinkedIn Insight Tag – Measure LinkedIn campaign effectiveness
  • X (Twitter) Pixel – Track conversions from X (formerly Twitter) ads
  • Pinterest Tag – Monitor Pinterest advertising performance
  • Snapchat Pixel – Track Snapchat ad conversions

Other Platforms #

Through Google Tag Manager, you can integrate virtually any platform that supports custom events or pixel tracking, including Reddit Pixel, Bing Ads, Quora Pixel, and more.

How to Integrate Analytics Platforms #

Method: Google Tag Manager (Recommended) #

This is the most flexible and powerful method, as it allows you to send data to multiple platforms from a single integration.

Step 1: Set Up Google Tag Manager #

  1. If you don’t have a GTM account, create one at tagmanager.google.com
  2. Create a new container for your website (or use an existing one)
  3. Note your container ID (format: GTM-XXXXXXX)

Step 2: Add GTM to Your Form #

  1. Open your form in the FORMEPIC Builder
  2. Navigate to General SettingsTracking
  3. Enter a descriptive Tracking Name
  4. Select your Platform (Google Analytics, Meta Pixel, etc.)
  5. Enter your GTM Container ID
  6. Click “Save Tracking Settings”
  7. Toggle the switch to Enable your tracking

Step 3: Configure Tags in GTM #

Now you’ll set up tags in Google Tag Manager for each platform you want to integrate.

Platform-Specific Setup Instructions #

Google Analytics 4 (GA4) #

In Google Tag Manager:

  1. Create a new Google Analytics: GA4 Configuration tag
  2. Enter your GA4 Measurement ID (format: G-XXXXXXXXXX)
  3. Set the trigger to “All Pages”
  4. Create a new Google Analytics: GA4 Event tag
  5. Name the event “form_submit”
  6. Set Configuration Tag to your GA4 Configuration tag
  7. Add a trigger for “Custom Event” with event name: form_submit
  8. Optionally add event parameters from the dataLayer (form_id, form_title, etc.)

In Google Analytics:

  1. Go to Admin → Events
  2. Find your “form_submit” event
  3. Toggle “Mark as conversion” to track it as a conversion

Google Ads Conversion Tracking #

In Google Ads:

  1. Go to Tools → Conversions
  2. Create a new conversion action
  3. Choose “Website” as your conversion source
  4. Select “Manually add code”
  5. Note your Conversion ID and Conversion Label

In Google Tag Manager:

  1. Create a new Google Ads Conversion Tracking tag
  2. Enter your Conversion ID and Conversion Label
  3. Set Conversion Value if applicable
  4. Add a trigger for “Custom Event” with event name: form_submit
  5. Publish your container

Meta (Facebook) Pixel #

In Meta Events Manager:

  1. Navigate to Events Manager
  2. Create or select a Pixel
  3. Note your Pixel ID

In Google Tag Manager:

  1. Create a new Custom HTML tag
  2. Paste the Facebook Pixel base code (from Meta Events Manager)
  3. Set trigger to “All Pages”
  4. Create another Custom HTML tag for the conversion event
  5. Add this code:
   <script>
     fbq('track', 'Lead', {
       content_name: {{form_title}},
       content_category: {{form_type}}
     });
   </script>
  1. Set trigger to “Custom Event” with event name: form_submit
  2. Publish your container

Alternatively, use the Facebook Pixel tag template from GTM’s template gallery.

TikTok Pixel #

In TikTok Events Manager:

  1. Navigate to Assets → Events
  2. Create or select a Pixel
  3. Note your Pixel ID

In Google Tag Manager:

  1. Create a new Custom HTML tag
  2. Paste the TikTok Pixel base code
  3. Set trigger to “All Pages”
  4. Create another Custom HTML tag for conversions
  5. Add TikTok conversion event code (e.g., ttq.track(‘SubmitForm’))
  6. Set trigger to “Custom Event” with event name: form_submit
  7. Publish your container

LinkedIn Insight Tag #

In LinkedIn Campaign Manager:

  1. Go to Account Assets → Insight Tag
  2. Copy your Partner ID

In Google Tag Manager:

  1. Create a new Custom HTML tag
  2. Paste the LinkedIn Insight Tag base code
  3. Set trigger to “All Pages”
  4. Create a conversion tracking tag using the LinkedIn conversion event code
  5. Set trigger to “Custom Event” with event name: form_submit
  6. Publish your container

Pinterest Tag #

In Pinterest Ads Manager:

  1. Navigate to Ads → Conversions
  2. Create a Pinterest tag and note your Tag ID

In Google Tag Manager:

  1. Install the Pinterest Tag template from the GTM template gallery, or
  2. Create a Custom HTML tag with the Pinterest base code
  3. Set trigger to “All Pages”
  4. Create a conversion tag that fires the “lead” event
  5. Set trigger to “Custom Event” with event name: form_submit
  6. Publish your container

Other Platforms #

For platforms not listed above, the general process is:

  1. Obtain the base tracking code from the platform
  2. Add it to GTM as a Custom HTML tag (trigger: All Pages)
  3. Add conversion event code as another Custom HTML tag
  4. Set trigger to “Custom Event” with event name: form_submit
  5. Use dataLayer variables to pass form data to the platform

Using DataLayer Variables #

FORMEPIC automatically sends these variables to the GTM dataLayer with each event:

  • form_id – Unique form identifier
  • form_title – The form’s title
  • form_type – Type (form, quiz, poll, survey)
  • field_id – Field identifier (for field interaction events)
  • field_type – Type of field
  • field_label – Field label
  • current_step – Current step number (for multi-step forms)
  • total_steps – Total steps
  • submission_id – Unique submission ID (for form_submit events)

To use these in your GTM tags:

  1. Go to Variables → User-Defined Variables → New
  2. Choose “Data Layer Variable”
  3. Enter the variable name (e.g., “form_title”)
  4. Use the variable in your tags by selecting it from the variable picker

Requirements #

  • A Google Tag Manager account (free)
  • Container ID from GTM (format: GTM-XXXXXXX)
  • Account access to the platforms you want to integrate (Google Analytics, Meta Business Suite, etc.)
  • Basic understanding of how to create tags and triggers in GTM (or willingness to learn—it’s quite intuitive!)

Tips and Tricks #

  • Use GTM Preview Mode: Before publishing, use GTM’s Preview mode to test that events are firing correctly and data is being sent to your platforms
  • Start with One Platform: Get comfortable with GA4 tracking first, then add additional platforms one at a time
  • Leverage GTM Templates: Check the Template Gallery in GTM for pre-built tags for popular platforms—they’re often easier than custom HTML
  • Set Up Variables Once: Create dataLayer variables in GTM once and reuse them across all your tags
  • Use GTM Workspaces: If you’re managing complex tracking setups, use GTM workspaces to organize your changes before publishing
  • Document Your Setup: Add notes to each tag in GTM explaining what it does—your future self will thank you
  • Monitor Tag Health: Use GTM’s built-in debugging tools to ensure tags are firing correctly after you publish
  • Create Consistent Naming: Use a consistent naming convention for tags (e.g., “GA4 – Form Submit”, “Meta Pixel – Form Submit”)

Important Notes #

  • You can only have one tracking setup per platform in FORMEPIC, but your GTM container can send data to multiple properties within that platform
  • All tracking events are sent in real-time as users interact with your form
  • Some platforms (like Google Ads and Meta) may take 24-48 hours to show conversion data
  • GTM changes must be published (not just saved) to take effect on live forms
  • Test Mode submissions in FORMEPIC also fire tracking events, allowing you to test your setup safely
  • Always comply with privacy regulations (GDPR, CCPA, etc.) and include proper consent mechanisms for tracking
  • Different platforms have different attribution windows—check each platform’s documentation for details

Common Issues & Troubleshooting #

GTM container not loading

  • Verify your GTM ID is correct (starts with GTM- and includes only letters/numbers)
  • Check that your tracking is enabled in FORMEPIC
  • Clear your browser cache and reload the form
  • Check browser console for JavaScript errors

Events showing in GTM but not in analytics platform

  • Verify your platform tag is configured correctly in GTM
  • Check that your tag trigger is set to the correct event name (form_submit)
  • Ensure your GTM container is published (not just in draft)
  • Verify your platform account credentials (Measurement IDs, Pixel IDs, etc.) are correct
  • Some platforms have data processing delays—wait 24-48 hours

Duplicate events firing

  • Make sure you only have one FORMEPIC tracking setup per platform
  • Check that you don’t have duplicate tags in GTM with the same trigger
  • Verify you’re not including platform tracking codes both in GTM and directly on your page

Events not including form data

  • Create dataLayer variables in GTM for the data you want to capture
  • Verify variable names match exactly (case-sensitive: form_id, not Form_ID)
  • Check GTM Preview mode to see if the dataLayer variables are populating correctly

Meta Pixel not tracking conversions

  • Use the Meta Pixel Helper browser extension to debug
  • Verify the pixel is “active” and firing on form submission
  • Check that you’re tracking the right event type (typically “Lead” or “CompleteRegistration”)
  • Ensure your ad account is connected to the pixel in Meta Business Suite

Google Analytics 4 not showing conversions

  • Make sure you’ve marked the event as a conversion in GA4 Admin → Events
  • Allow 24-48 hours for conversion data to process
  • Check that your GA4 Measurement ID is correct in your GTM configuration tag
  • Verify your GA4 event tag is firing on the form_submit event

“Platform already exists” error

  • FORMEPIC restricts one tracking setup per platform to prevent duplicate events
  • If you need multiple GTM containers, set additional platforms to “Other”
  • Consider using one GTM container with multiple tags for different tracking needs instead

Not Finding What You Are Looking For?

Chat With Us

Get instant answers to your questions anytime, any-day!

Email Us

Prefer email? Visit our contact us page to send us an email!