Hello, I need to execute the google tag but I only see how to do it before a user action, but I don’t need this, I just need it to be executed directly, but I can’t figure out how to do it in html.
- Add an attribute directly onclick to the code of the button or link you want to track. The code you use will depend on how the link or button is displayed on the website (text link, button or button image).
Add the code to a text link: In the code below, change “https://www.webcompany.com/forum/questions-about-wordpress/ -“> ” to the URL of your website or phone link and replace “Download now” by the link text.
k’);” href=”https:///foro/questions-about-wordpress/ -“> “>Download Now
Add the code to a button: this code shows how to add click tracking to a button using the tag
Add the code to a button image: In the code below, replace “https:///foro/preguntas-sobre-wordpress/download_button.gif” with the image of the button, replace width Y height for the image parameters and change “https:///foro/preguntas-sobre-wordpress/ -“> ” for the URL of the link.
k’)” />
Content only visible to registered users