HubSpot Ideas

nickgi

Allow CTA (Beta) popup link to be dynamically generated on page

We are using the Gatsby framework that dyanmically creates page content (including links) when a user navigates to the page. I want to use the "Trigger on button click" method to open a Popup CTA when a user clicks a link on our site. I have added the relevant classes to the link but it doesn't work. I presume the reason is that Hubspot is not aware of these links since it only attaches it's event listeners on page load. Can Hubspot attach event listeners to new elements as they are created on page rather than on page load only?