In this demo, analytics events involving <rh-cta> elements are parsed by a document-level analytics event listener. Unlike <pfe-cta>, which implemented support for analytics internally, <rh-cta> users must implement their own analytics code, taking this demo as an example.

Simple Case: Light DOM

Default Primary Secondary Brick

Using href attribute

Default Primary Secondary Brick

Advanced Case: Deep Shadow

Using href attribute

Complex Case: Slotted Link, Deep CTA

Default Primary Secondary Brick

Last CTA Analytics Event

{}