How to Track Direct Uploader form submissions with Google Analytics (Universal & GA 4)
Overview
Nosto's UGC provides a Google Analytics plugin that allows you to track common user interactions via Google Event tracking.
The data sent to Google Analytics is pre-set and currently limited to interactions with Onsite Widgets and Email Campaigns.
In this guide, we will showcase how you can use the Direct Uploader custom code editor to track in Google Analytics when someone submits a form.
Key Concepts
Google Analytics Events
Events are user interactions with content that can be tracked independently from a web page or screen load.
Data related to these interactions can be sent to Google Analytics.
The Fun Part
Getting Started
In this example we will need to do the following:
Create a Direct Uploader form
Use Google Tag Manager and Google Analytics event tracking methods to send some of this data to Google Analytics.
This guide can be used for both Universal Analytics and Google Analytics 4.
Sending data to Google Analytics
Before we look into this further, we'll need a way to establish how this data is being sent to Google Analytics via Google Tag Manager. As the gtag() calls do not use the current Nosto's UGC Google Analytics plugin Tracking ID or data, we'll need to include this in the Direct Uploader Javascript or the parent page with the tracking ID or Google Tag ID / Measurement ID. In the example below we are including firstname, lastname, and email as custom parameters for the event
Please change the X-XXXXX in the code above to Tracking Id for Universal Analytics or Google Tag Id / Measurement ID for Google Analytics 4. You can find more details here.
Last updated