During a recent inspection of a charming 2-family home, I had the extraordinary opportunity to encounter a rare relic of heating history...
bottom of page
$w.onReady(function () {
// Select all links with the data-testid="linkElement"
const buttons = $w('a'); // Select all anchor tags
buttons.forEach((button) => {
// Check if the aria-label or innerText is "Schedule Now"
if (button.getAttribute('aria-label') === 'Schedule Now' || button.label === 'Schedule Now') {
// Attach an event handler for the click
button.onClick(() => {
gtag('event', 'schedule_tool_click', {
'link_url': button.href, // Capture the link URL dynamically
'button_text': 'Schedule Now' // Capture the button text
});
});
}
});
});