1. Home
  2. Docs
  3. FAQ – Frequently As...
  4. GTM & GA4 Setup Bundl...
  5. Advanced Setup: Button Clicks

Advanced Setup: Button Clicks

Note: Do the following changes only if you are sure how it works.

In our GTM setup Button Clicks means click on HTML elements that:

  • Is “button” element type
  • Has “role” attribute that equals “button
  • Link = HTML element “a” where attribute “class” matches regular expression “((^| )btn|-btn|-button|_button)( |$)”. This setup cover click classes used in widely CMSs or Bootstrap templating system.
    • You can change the regular expression to match your specific HTML classes.
    • If you want to setup class(es), change only the highlighted part. Do not touch the brackets. Note: “|” works as “OR”.