Hey, I am trying to setup onclick tracking for analytics on a button within some PHP code but it keeps giving me errors and I don't know why!
PLEASE help PHP + JS
3
Hey,
I am trying to setup onclick tracking for analytics on a button within some PHP code but it keeps giving me errors and I don't know why!
Please take a look:
That is the button I need to track, I place the JS tracking before and after the href but it doesn't work!
Please can anyone help?
Thanks
Ricky
I am trying to setup onclick tracking for analytics on a button within some PHP code but it keeps giving me errors and I don't know why!
Please take a look:
HTML Code:
if (!VmConfig::get('use_as_catalog')) {
$checkout_link_html = '<a href="javascript:document.checkoutForm.submit();" class="vm-button-correct"><span>' . $text . '</span></a>';
} else {
$checkout_link_html = ''; Please can anyone help?
Thanks
Ricky
- jassmee Banned
- jazoo
- drmadcow
- danoercwd
Next Topics on Trending Feed
-
3