Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Michal Mroz Posted December 16, 2016 Posted December 16, 2016 Hello, I'm trying to set up a Google conversion tracking in my store. I can easily add it to the payment button with onClick attribute and it works almost great. <button type='submit' class='ipsButton ipsButton_important ipsButton_veryLarge ipsButton_fullWidth' onClick="ga('send', 'event', 'przycisk', 'zamow', {'nonInteraction': true});"><i class='fa fa-check-circle'></i> {{if $amountToPay->amount->compare( $invoice->total->amount ) !== 0}}{lang="confirm_and_pay_split" sprintf="$amountToPay"}{{else}}{lang="confirm_and_pay"}{{endif}}</button> However, it counts all clicks - even those when rules are not accepted. I'd like to set up a condtional, so GA code would only fire if Rules were checked. How can I make it?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.