Add Google Analytics to Dubsado Forms

Back to Blog

How to Use External CSS Files for Dubsado Customizations

When it comes to styling your Dubsado forms, injecting CSS directly into each form may seem convenient at first. But as your customizations grow, managing all that code across multiple forms can become a headache. This is where external CSS files come to the rescue, offering a streamlined way to centralize your styling and make […]


If you’re a data enthusiast like us, you probably crave insights into how your clients interact with your Dubsado forms. One of the most effective ways to unlock this treasure trove of data is to add Google Analytics into your Dubsado forms. With just a few straightforward steps, you can start monitoring views, clicks, and more—providing actionable insights to optimize your client experience.

Here’s your step-by-step guide to adding Google Analytics to Dubsado forms, complete with tips to avoid common pitfalls.


Why Add Google Analytics to Dubsado Forms?

Google Analytics helps you:

  • Track Form Views: Discover how many clients view your proposals, questionnaires, or other forms.
  • Monitor Client Behavior: See which parts of your forms get the most attention.
  • Optimize Conversions: Use data to refine your forms and workflows for maximum client engagement.

Adding this functionality can turn your forms into data-driven tools for scaling your business efficiently.


Prerequisites Before You Begin

To successfully integrate Google Analytics tracking, make sure you:

  1. Use a Custom Domain: Forms on custom domains track data more reliably. If you haven’t set this up, follow Dubsado’s guide to configure your custom domain.
  2. Link Your Google Analytics Property to the Subdomain: Ensure your Google Analytics account is connected to the subdomain you use for white-labeling your Dubsado account.
  3. Understand Embedding Limitations: Be aware that Google Analytics may not function as expected if your Dubsado forms are embedded on another website.

Step-by-Step Guide to Adding Google Analytics to Dubsado Forms

Step 1: Set Up Your Google Analytics Property

  • Log in to your Google Analytics account.
  • Create a new property for your Dubsado forms’ subdomain (e.g., forms.yourbusiness.com).
  • Copy the tracking ID or Measurement ID. It will look something like G-XXXXXXX.

Step 2: Add Your Subdomain to Dubsado

  • Navigate to Settings in your Dubsado account.
  • Under Custom Domains, input the subdomain where your forms will live.
  • Follow Dubsado’s prompts to complete the connection.

💡 Tip: Verify that your subdomain is working by visiting it in your browser.

Step 3: Insert the Google Analytics Code

  • Open the form you want to track in Dubsado.
  • Go to the Code Injection or Custom Code section.
  • Paste your Google Analytics tracking code. For most cases, it will look like this:
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXX');
</script>

Replace G-XXXXXXX with your actual tracking ID.

Step 4: Test Your Integration

  • Publish your form and view it using your browser.
  • Open Google Analytics and navigate to the Real-Time Reports section to confirm activity is being tracked.

💻 Pro Tip: Use Google’s Tag Assistant to troubleshoot tracking issues.


Best Practices for Success

  1. Keep Forms on the Custom Domain
    Forms perform best when hosted on your custom domain instead of being embedded. Embedding may result in tracking discrepancies due to iframe limitations.
  2. Set Up Goals in Google Analytics
    Use goals to track form submissions, proposal acceptances, or other key actions that align with your business objectives.
  3. Enable Enhanced Measurement
    Turn on enhanced measurement settings in Google Analytics to automatically capture additional data, such as clicks and scrolls.
  4. Monitor and Iterate
    Regularly review your analytics to identify trends and areas for improvement. Adjust your forms to enhance user engagement.

Unlock Insights with Ease

Integrating Google Analytics with your Dubsado forms is more than just a cool feature—it’s a powerful way to understand and serve your clients better. By taking the time to set up tracking, you’re laying the groundwork for a data-informed approach to growing your business.

Need help making your forms not only functional but also stunningly on-brand? At Forms & Flows, we specialize in creating beautiful, user-friendly forms and workflows that empower entrepreneurs to focus on what they love. Explore our Forms and Templates to elevate your Dubsado experience today.

🚀 Your journey to smarter systems starts here!