about icon indicating copy to clipboard operation
about copied to clipboard

Update naming convention of CTA tracking

Open bretthayes opened this issue 3 years ago • 0 comments

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. It could be a link, button, div, other element, etc.)

Actions Items:

  1. The variables should be changed to data-cta-style, data-cta-location, and data-cta-type.
  2. Event names should be changed/renamed in GA/GTM
  3. 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
  4. 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.

bretthayes avatar Jul 06 '22 17:07 bretthayes