Question
Form button - on click event
Hi All,
Our web developers have asked me to insert a script into a form button, on click event. It relates to a data layer regarding GA and tracking.
This is the code:
onclick="dataLayer.push({ 'car_enquiry_type': "'" +vehicleIntendedFor.value+"'" });"
Can this be done and if so where would it be inserted?
Thanks
Matt