web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Google Analytics + Microsoft Dynamics Marketing Forms

(1) ShareShare
ReportReport
Posted on by 30

Hi all

I would like to integrate MD 365 Marketing forms to the website and for me is very important to know from what sources (Organic, Social, etc) come leads.

I decided to create goals in Google Analytics (Submitted forms) and would like to track this goal.

So do you have experience with how to track submitted MD365 Marketing forms in Google Analytics? Please share your ideas or results.

Thanks in advance.

I have the same question (0)
  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    There is no OOTB way to connect Dynamics with Google Analytics directly. It may be achieved by some managed solutions or other third-party tools.

     

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

  • OlehYaruchyk Profile Picture
    30 on at

    Hi Nya, thanks for the answer. What about Google Tag Manager + Google Analytics and MD365 Marketing? Do you have some info about this connection?

    Thanks

  • CU04020524-1 Profile Picture
    4 on at
    If your goal is to track the source of your leads (Paid Search, Organic Search, Organic Social, etc) then you probably have two options.
     
    The first is the one you mentioned, sending a conversion event to Google Analytics whenever someone submits a form on your website. You can use tools like Google Tag Manager to do it, but the setup is pretty complicated. There are tools like Converly.io and others which may also be useful. These tools are dedicated to sending conversions to Google Analytics and you get a simple workflow style builder (I.e. You pick an trigger, like when a D365 form is submitted, and then you pick your actions, like sending a conversion to Google Analytics, Google Ads, etc).
     
    The other option is to capture the lead source data with the form submission and send it into Dynamics CRM (or whatever CRM you are using). That way on each contact record you'll be able to see data like Channel = Paid Search, Channel Drilldown 1 = Google, Channel Drilldown 3 = Brand Campaign, etc. Tools like Attributer.io can pass this data through with each submission of your D365 forms (though there are others too).
  • MyloKaye Profile Picture
    14 on at
  • Suggested answer
    ManoVerse Profile Picture
    646 Super User 2026 Season 1 on at
    Google Analytics (especially GA4) automatically identifies the traffic source of a visitor based on UTM parameters
    When a user lands on your website, GA stores their source in the browser session. When they submit a Dynamics 365 Marketing form embedded on your site, the browser fires the “form submit event” -> GA ties that event back to that same session -> so you know the exact source.
    1. A visitor lands on your website, Examples:
    Comes from Google -> Organic Search
    Comes from Facebook -> Social
    Comes from Google Ads -> Paid Search
    Comes from Email campaign -> Email
    GA automatically tags that session with the appropriate source/medium.
    If UTMs are used:
    ?utm_source=linkedin&utm_medium=social&utm_campaign=leadgen
     
    2. Visitor fills out a Dynamics 365 Marketing form
    You embed the D365 Marketing form inline on your webpage. The form script loads inside your page, so GA can track any event you fire from the browser.
    Use the D365 Marketing “onSuccess” callback to send an event to GA , When the form is submitted successfully, this callback runs:
    msdynmkt.onFormSubmitSuccess(function() {
        gtag('event', 'lead_form_submit', {
            event_category: 'D365 Marketing',
            event_label: 'Lead Form'
        });
    });
    This fires a GA Event named lead_form_submit.
     
    3. GA records the event and automatically associates it with the session source
    GA uses the visitor’s session data to tell you where the lead came from, such as:
    Organic Search (Google/Bing)
    Paid Search (Google Ads)
    Social (Facebook, LinkedIn, Instagram)
    Email (your email campaigns)
    Referral (another website)
    Direct (typed the URL manually)
    You convert your custom event (lead_form_submit) into a Conversion.
    Now GA will show:
    Conversion
    Source
    Medium
    Count
    Lead Form Submit
    google
    organic
    55
    Lead Form Submit
    linkedin
    social
    20
    Lead Form Submit
    newsletter
    email
    18
    Lead Form Submit
    google
    cpc
    12
     
    This tells you exactly where your D365 leads came from. 
     
    Regards,
    Manoj
    If this answer helped you, please consider marking it as Verified, it really helps others in community
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 118 Super User 2026 Season 1

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 46 Most Valuable Professional

#3
NeerajPawar Profile Picture

NeerajPawar 41

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans