Skip to content

Instantly share code, notes, and snippets.

@chavesm
Last active November 17, 2021 14:58
Show Gist options
  • Save chavesm/8a76387d163a1bcf4d77eb2a3cfa1ccb to your computer and use it in GitHub Desktop.
Save chavesm/8a76387d163a1bcf4d77eb2a3cfa1ccb to your computer and use it in GitHub Desktop.
Form Conversion Event (949478)
if (document.URL === "https://myverycool.site/form-page/") {
const subBtn949478 = document.querySelector(
"form#avia_contact_6935_contact-us-about input.button"
);
if (subBtn949478) {
subBtn949478.addEventListener(
"click",
function (evt) {
__gaTracker(
"send",
"event",
"form",
"conversion",
"avia_contact_6935_contact-us-about-led-driver-technology",
1
);
},
false
);
}
}
@chavesm
Copy link
Author

chavesm commented Sep 17, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment