Skip to content

Commit

Permalink
Add missing GA click events to templates (#1342)
Browse files Browse the repository at this point in the history
  • Loading branch information
petechd authored Mar 27, 2024
1 parent 2431c38 commit c9df847
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 20 deletions.
3 changes: 2 additions & 1 deletion templates/confirm-email.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ <h1 class="question__title ons-u-fs-xxl" data-qa="confirm-email-title">{{ conten
"data-qa": "btn-submit",
"data-ga-category": "Submit button",
"data-ga-action": "Continue",
"data-ga-label": "Continue button click"
"data-ga-label": "Continue button click",
"data-ga": "click"
}
})
}}
Expand Down
3 changes: 2 additions & 1 deletion templates/feedback-sent.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ <h1 data-qa="feedback-thank-you-text">{{ _("Thank you for your feedback") }}</h1
"data-qa": "btn-done",
"data-ga-category": "Submit button",
"data-ga-action": "Done",
"data-ga-label": "Done button click"
"data-ga-label": "Done button click",
"data-ga": "click"
}
})
}}
Expand Down
5 changes: 3 additions & 2 deletions templates/feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"id": "top-previous",
"text": _("Back"),
"attributes": {
"data-ga": 'previous-link',
"data-ga": 'click',
"data-ga-category": 'Navigation',
"data-ga-action": 'Previous',
"data-ga-label": "Previous link click"
Expand Down Expand Up @@ -43,7 +43,8 @@ <h1 class="question__title ons-u-fs-xxl" data-qa="feedback-title">{{ content.que
"data-qa": "btn-submit",
"data-ga-category": "Submit button",
"data-ga-action": "Send feedback",
"data-ga-label": "Send feedback button click"
"data-ga-label": "Send feedback button click",
"data-ga": "click"
}
})
}}
Expand Down
3 changes: 2 additions & 1 deletion templates/individual_response/confirmation-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ <h1 id="question-title"class="question__title ons-u-mb-xs ons-u-fs-l js-piping">
'data-qa': 'btn-submit',
"data-ga-category": "Submit button",
"data-ga-action": "Continue",
"data-ga-label": "Continue button click"
"data-ga-label": "Continue button click",
"data-ga": "click"
}
})
}}
Expand Down
3 changes: 2 additions & 1 deletion templates/individual_response/confirmation-text-message.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ <h1 id="question-title"class="question__title ons-u-mb-xs ons-u-fs-l js-piping">
'data-qa': 'btn-submit',
"data-ga-category": "Submit button",
"data-ga-action": "Continue",
"data-ga-label": "Continue button click"
"data-ga-label": "Continue button click",
"data-ga": "click"
}
})
}}
Expand Down
3 changes: 2 additions & 1 deletion templates/individual_response/interstitial.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ <h1 class="ons-u-mt-m">{{_("If you can't answer questions for others in your hou
'data-qa': 'btn-submit',
"data-ga-category": "Submit button",
"data-ga-action": "Request separate census",
"data-ga-label": "Request separate census button click"
"data-ga-label": "Request separate census button click",
"data-ga": "click"
}
})
}}
Expand Down
3 changes: 2 additions & 1 deletion templates/interstitial.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ <h1 class="question__title">{{ block.content.title }}</h1>
"data-qa": "btn-submit",
"data-ga-category": "Submit button",
"data-ga-action": "Save and continue",
"data-ga-label": "Save and continue button click"
"data-ga-label": "Save and continue button click",
"data-ga": "click"
}
})
}}
Expand Down
3 changes: 2 additions & 1 deletion templates/layouts/_calculatedsummary.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"data-qa": "btn-submit",
"data-ga-category": "Submit button",
"data-ga-action": "Confirm",
"data-ga-label": "Confirm button click"
"data-ga-label": "Confirm button click",
"data-ga": "click"
}
})
}}
Expand Down
3 changes: 2 additions & 1 deletion templates/layouts/_questionnaire.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"data-qa": "btn-submit",
"data-ga-category": "Submit button",
"data-ga-action": "Save and continue",
"data-ga-label": "Save and continue button click"
"data-ga-label": "Save and continue button click",
"data-ga": "click"
}
})
}}
Expand Down
3 changes: 2 additions & 1 deletion templates/layouts/_submit.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ <h1 class="ons-u-mt-m">{{ content.title }}</h1>
'data-qa': 'btn-submit',
"data-ga-category": "Submit Button",
"data-ga-action": "Submit",
"data-ga-label": "Submit Button click"
"data-ga-label": "Submit Button click",
"data-ga": "click"
}
})
}}
Expand Down
3 changes: 2 additions & 1 deletion templates/layouts/configs/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"data-qa": header_button_data_qa,
"data-ga-category": "Navigation",
"data-ga-action": header_button_data_ga_action,
"data-ga-label": header_button_data_ga_label
"data-ga-label": header_button_data_ga_label,
"data-ga": "click"
},
"iconType": "exit",
"iconPosition": "after"
Expand Down
3 changes: 2 additions & 1 deletion templates/partials/confirmation-email-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"data-qa": "btn-submit",
"data-ga-category": "Submit button",
"data-ga-action": "Send confirmation",
"data-ga-label": "Send confirmation button click"
"data-ga-label": "Send confirmation button click",
"data-ga": "click"
}
})
}}
3 changes: 2 additions & 1 deletion templates/partials/introduction/start-survey.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"data-qa": "btn-submit",
"data-ga-category": "Submit button",
"data-ga-action": "Start survey",
"data-ga-label": "Start button click"
"data-ga-label": "Start button click",
"data-ga": "click"
}
})
}}
6 changes: 4 additions & 2 deletions templates/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ <h1 class="ons-u-mt-m">{{ _("Preview of the questions in this survey") }}</h1>
"data-qa": "btn-print",
"data-ga-category": "Print button",
"data-ga-action": "Open print Dialogue",
"data-ga-label": "Print button click"
"data-ga-label": "Print button click",
"data-ga": "click"
}
})
}}
Expand All @@ -65,7 +66,8 @@ <h1 class="ons-u-mt-m">{{ _("Preview of the questions in this survey") }}</h1>
"data-qa": "btn-pdf",
"data-ga-category": "PDF button",
"data-ga-action": "Download PDF",
"data-ga-label": "PDF button click"
"data-ga-label": "PDF button click",
"data-ga": "click"
}
})
}}
Expand Down
6 changes: 4 additions & 2 deletions templates/sectionsummary.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"data-qa": "btn-submit",
"data-ga-category": "Submit button",
"data-ga-action": "Continue",
"data-ga-label": "Continue button click"
"data-ga-label": "Continue button click",
"data-ga": "click"
}
})
}}
Expand Down Expand Up @@ -52,7 +53,8 @@ <h1>{{content.summary.title}}</h1>
"data-qa": "btn-submit",
"data-ga-category": "Submit button",
"data-ga-action": "Continue",
"data-ga-label": "Continue button click"
"data-ga-label": "Continue button click",
"data-ga": "click"
}
})
}}
Expand Down
6 changes: 4 additions & 2 deletions templates/view-submitted-response.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ <h1 class="ons-u-mt-m">
"data-qa": "btn-print",
"data-ga-category": "Print button",
"data-ga-action": "Open print Dialogue",
"data-ga-label": "Print button click"
"data-ga-label": "Print button click",
"data-ga": "click"
}
})
}}
Expand All @@ -52,7 +53,8 @@ <h1 class="ons-u-mt-m">
"data-qa": "btn-pdf",
"data-ga-category": "PDF button",
"data-ga-action": "Download PDF",
"data-ga-label": "PDF button click"
"data-ga-label": "PDF button click",
"data-ga": "click"
}
})
}}
Expand Down

0 comments on commit c9df847

Please sign in to comment.