Firing events in Google Tag Manager

Google Tag Manager (GTM) is a system from Google that allows you to manage website tags. If you have GTM installed on your website, you can send the VoteAmerica+ events to GTM using the following JavaScript snippet.

window.dataLayer = window.dataLayer || [];
window.addEventListener("VoteAmericaEvent", function (evt) {

Once the events are sent to GTM, you’ll need to set up triggers for your tags there. Google has documentation on that here.

See JavaScript Events for more details on the types of events and the data contained in each event.