Skip to content
Have an event to promote? Let us promote it for FREE!
Thank you for supporting the businesses that support The Northwest Horse Source
Check out the Magazine!
function sendAnalyticsEvent(config) {
if (typeof ga !== 'undefined') {
ga('send', 'event', {
eventAction: config.action,
eventCategory: config.category,
eventLabel: config.label,
});
}
if (typeof gtag !== 'undefined') {
gtag('event', config.action, {
event_category: config.category,
event_label: config.label,
});
}
}
document.addEventListener(
'click',
function (event) {
const button = event.target.closest('.eapps-social-share-buttons-item');
if (button) {
sendAnalyticsEvent({
action: 'click',
category: 'Elfsight Social Share Buttons',
label: button.textContent.trim(),
});
}
},
true
);