document.querySelectorAll('.bookmarkLink:not(.is-bookmarked)').forEach(bookmarkLink => { bookmarkLink.addEventListener('click', () => { gtag('event','bookmark'); }); });