Update naming convention of CTA tracking
Created by: bretthayes
What?
We'd like to update the naming convention of our CTA tracking variables to be more human readable.
Note this is blocked by #5594 since the variables sent to GA will be changed via the gtag event.
Why?
- To make it easier to understand in GA
- To allow more granular tracking and options for CTA types
- To update the naming convention to more accurately describe the data since not every cta is a button
Actions Items:
- The variables should be changed to
data-cta-style
,data-cta-location
, anddata-cta-type
. - Event names should be changed/renamed in GA/GTM
- Our event logger payload for
useLogAllLinkClicks
should be updated to reflect the name change and the queries will have to be updated as per this comment - Our GA Dashboard metrics should be renamed to track the updated names and values
The data-cta-type
would offer more flexibility for values such as:
-
leadGeneration
: formSubmission
learnMore
productDiscovery
socialSharing
leadNurturing
salesClosing
eventPromotion
Please see this comment for more context.