Skip to main content

How to call an onclick google ads javascript function on button click within Brizy Cloud?

Comments

5 comments

  • Alex

    Hi,

    You can add the GTM script in the Code Inject section of your cloud project and the rest you need to learn from GTM. Here's an article about this: https://www.analyticsmania.com/post/google-tag-manager-click-tracking/ 

    1
  • Guilherme Mendes

    Thank you. Is there a way I can edit only the onClick HTML attribute of a button instead? If not, thank you by telling about GTM.

    0
  • Alex

    Unfortunately, no. As a workaround, you can create your own button with HTML, CSS, JS and add it to a Brizy page via Embed element.

    0
  • Johann Hildebrandt

    Sorry to grab this Thread out, can i just copy paste the existing button into a embeded element? (to clone the styling)? i tried this but, the button does not shown at all.

    The reason behind this, i can then manually edit the code and fire an onClick event, with the google ads tracking code.

    Did i miss something? I want to save some time not to write the whole button again.

    0
  • KC George

    Hi Johann

    It may be bit complex to grab the HTML and CSS code for a Brizy button from a Brizy Cloud webpage.

    It is easier to design the button in Codepen and copy from it from there. For example:  https://codepen.io/ichoosesunny/pen/YGzRaJ

    You can embed the HTML into the Embed element and add the CSS under its Settings - Advanced - Custom CSS

    0

Please sign in to leave a comment.