User stories
- As an admin, I want to select the form goal on the backend (e.g Petition Signup, Action Alert, Contact Form, Other).
- As a data analyst, I want to have a cleaner setup on Google Tag Manager
Description
- Create a new dropdown field on the Form Backend.
Field name: Goal
Dropdown values: [list here
- Send a dataLayer event with parameters defined on the backend:
Embed a dataLayer.push once the form is submitted. This will send the parameters (values) that were selected by the user on the dropdown field “Goal”:
Important: This value should be submitted together with the dataLayer event 'petitionSignup' after form submission. There's no need to implement this on page load.
dataLayer.push({
'gGoal’ : ‘[value defined in Goal field]’,
});
.
This is related to the previous ticket: https://jira.greenpeace.org/browse/PLANET-3208
- relates to
-
PLANET-5285 EN Form Block not firing gGoal dataLayer value
- CLOSED