ACDL Tracking: How to set pageName on s.tl() beacon?
Hey everyone,
I've been exploring the ACDL Launch Extension and so far I've gotten pretty far with it. I get that the 'eventInfo.path' provides you the AEM core component ID that was associated with the AEM event.
Of example, on the WKND site, the home page page load event of cmp:show references the eventInfo.path of 'page.page-2eee4f8914'. You can then add that ID to the window.adobeDataLayer.getState() method so you can grab the name of the page (dc:title) in a Data Element.
but my question is, how do you get the 'page.page-2eee4f8914' pageName when you click on button?
Meaning, when I click my 'eventInfo.path' updates to the component I clicked on, for example 'component.teaser-af173d94fb-cta-fdf48f11a9'. That component has a 'dc:title' variable with the value of 'View Trips', which of course is NOT the pageName, that would be the 'link name'. But on my s.tl() beacon I want to capture both the pageName and the Link Name.
So again, how do you get the pageName (dc:title = wknd adventures and travel) when you click a button that has a dc:title = view trips?
Any thoughts or ideas?