Add missing CTA tracking attributes
Created by: elzannewentzel
Stakeholders: Adam G, Erica F, Rebecca R What? In the CTA audit, we identified which CTAs don't have the 3 data attributes needed to track them in GA. These attributes need to be added to the identified CTAs and links. Why? The Marketing Analytics team can get data for full views of each interaction because not all CTAs are set up and tagged correctly.
Requirements:
- In the audit spreadsheet, rows with a grey background indicate which links/CTAs need attributes. Update these with the style, location and type attributes.
- Where applicable, also add the title to the links that do not have it. (this can be done in a separate task, the data attributes are more important)
-
Attribute definitions
- Additional attributes might be needed if our existing set does not cover it.
- We need to test this and confirm that we can see the correct CTA data attributes in GA
Might be useful: Pages with CTA attributes:https://k8s.sgdev.org/search?q=context:global+repo:%5Egithub%5C.com/sourcegraph/about%24+data-button-+&patternType=regexp Code Insight: https://k8s.sgdev.org/insights/dashboards/ZGFzaGJvYXJkOnsiSWRUeXBlIjoiY3VzdG9tIiwiQXJnIjo3MjcyNjZ9
Related to: #5447 (closed)