Plugin Author
alekv
(@alekv)
Hi @kilazer
It depends what your goal is. If you want to track something like a submission of a form, then the easiest way is to create a thank-you page where the click redirects to. On that thank-you page you can use various shortcodes provided by the plugin to track the conversion.
Here’s the documentation about the shortcodes: https://docs.woopt.com/wgact/#/shortcodes
Let me know if that’s what you were looking for.
Regards
Aleksandar
Thread Starter
Name
(@kilazer)
I am interested in the target for the click of a button.
example: onclick=”gtag_report_conversion”
Plugin Author
alekv
(@alekv)
If you really don’t want to use the shortcodes, then creating an event listener for a specific link is possible. But there is no general code template that can be used. It must be customized to your use case.
Here’s a simple example that hopefully helps you to get started: https://gist.github.com/alewolf/bf96288df4691a2db91cd71d16f99207
Since this is not a specific feature of the plugin itself and needs custom coding in each case, this is not something that our support covers.