Trigger Javascript on button click in CMS collections

Hey friends, I’m trying to figure out how to trigger a 3rd party javascript snippet when the donate button is pressed for each of my CMS collection entries.

<script src="https://app.giveforms.com/install-popup-button.js" type="text/javascript" defer></script><link rel="stylesheet" href="https://app.giveforms.com/giveforms_embed.css"/><a class="giveforms-donation-button" href="https://app.giveforms.com/campaigns/crewbooks/demo-giveform" data-multi-step="true">Donate</a>

I’ve added a link field (GiveForms URL) for each new collection listing, but I don’t know how to go about inserting the code into the button and dynamically pulling in the URL from the CMS data. Please help!

Here is my public share link: LINK
(how to access public share link)