How to Track Direct Uploader form submissions with Google Analytics (Universal & GA 4)
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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.
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.
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 .