Google Analytics Conversion Tracking
To start tracking form submissions using Google Analytics 4, you'll need the create a conversion in your analytics console.
How to set up events as Goal conversions in Google Analytics
Login into your Google analytics account , click admin button then under view column click Goals (Screenshot)
Click on +New goal button (screenshot)
Scroll down and select the custom option (screenshot)
Enter the name of the Goal and select Event as type Goal when filling in the Goal description then click continue. (Screenshot)
In the final step fill in the goal details then click save (Screenshot)
Use the Google analytics code for your website and the Google analytics Event Tracking Snippet to set up your event tracking.
Note: Ensure to replace the values on the Google analytics event tracking snippet shown below with the values you entered in the previous step when entering the goal details.
Example
Replace event category and event action ga('send', 'event', 'Guides', 'download-guide');
Google Analytics embed code
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
Google Analytics Event Tracking Snippet
<!-- Google Analytics Event Tracking Start -->
<script>
ga('send', 'event', 'event_category', 'event_action');
</script>
<!-- Google Analytics Event Tracking End -->
You should now have two pieces of code. Whichever method you choose for placing this code, the Embed Code should always be added before the event tracking snippet.
Conversion Tracking in FunnelBud Landing Page funnels
Open your FunnelBud landing page
Click on the Code button on the left pane
Select "All Pages" at the top
Click on the "Head" button
Add the Google Analytics tracking code
Switch to the page that will be viewed after conversion (after filling out the form)
Click on the "Head" button
Add the conversion tracking snippet
Conversion Tracking in FunnelBud Forms
These instructions only apply if you are using the built-in Thank You page with the FunnelBud form. If you redirect the contact to another page after filling out the form, you should place the event tracking snippet on that page.
Go to Content > Forms
Select your form on the left hand side (you might need to click View All to see it)
Click the top right gear button, select Edit Form
Go to the General tab
Click the edit button next to the option "Use Custom "Thank You" page"
Place both pieces of code inside of the Head tag, make sure that the tracking code is first, and the event snippet second.
Written By: Sam Koekemoer
Contributor: Denis Muhuri