a small javascript snippet to send google analytics events via data-attributes