How to call an onclick google ads javascript function on button click within Brizy Cloud?
I want to measure the number of clicks I receive in the "purchase" button in my landing page.
-
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 -
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 -
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 -
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 -
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.
Comments
5 comments