hi,
How can I add GA onclick event to a “specific button (created from Avia builder)” but not the form submission button?
thank you :)
Hi decode!
Create your button and save the page and then view your page on the frontend. You can right click the page and view it’s source code and then copy the button HTML and then paste that into a codeblock element and add the onclick attribute that way.
Cheers!
Elliott
thanks Elliott :)
What if there are several buttons needed to be tracked in the same page?
like these inquire buttons, they need to be tracked separately….could you give me an example?
thank you :)
Hey!
Does your code look like this?
onclick="_gaq.push(['_trackPageview', '/VP/XXX/XXX']);"
I suppose you would need to create an event for each button. See here, https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide?hl=en.
Best regards,
Elliott
hi, Elliott
I am not a tech guy….. really can’t understand.
Could you give me a real example on how to apply the onclick event on different buttons using the code block when those buttons are all on the same page?
that would be very very helpful :)
thank you.
Hi!
you can find an example on the link Elliott has provided to you. If you need a coder for this job then you can find one here: http://kriesi.at/contact/customization
Cheers!
Andy