I have a custom component button created in CQ ( CQ5.5). We are planning to use CQ5.5 with DTM
The custom button component being modular, can be used anywhere across the site, or even within the same page. We need to populate a data layer attribute which captures where in the page(which section) and which page the component is dropped.
The question i have is who's responsibility is to capture the information which defines the section where the component is used in the page. Is this something that can be done in DTM, by the component instance generating a unique id?
Or the component needs to have some logic embedded which will capture the section information from the markup?