4.3K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Event tracking

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello!

Is there any way to track an event of a dropdown value in a form of a website, but the tracking starts only after the form submission?

For example : I have a registration form on my website, User is asked to select a country from a dropdown list. I want to track which value is selected.

Can the tracking start only after the user clicks submit?(p.s- only after clicking on submit. Not when the user selects a dropdown value ). If so can you please share the code?

Thanks in advance 

Re: Event tracking

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭
Hi,

I think that better way is send needed data through dataLayer (which will send after the form submission) And then you can use for example, custom dimensions in Google Analytics.
About dataLayer: https://developers.google.com/tag-manager/devguide?hl=en
Have a good day!