• Resolved shabean

    (@shabean)


    I am not very familiar with on click events. I have a calculated fields form that shows a premium amount payable. I then have a ‘buy now’ button that I want to redirect to another website where the visitor can purchase the insurance policy.

    What does the code look like that you will place in the ‘buy now’ field.

    I also want to track this in Google Analytics as an event. I have the following that doesn’t work.

    <a href=”http://www.destinationurl.com&#8221;
    onclick=”ga(‘send’,’event’,’Outgoing Links’,’Destination URL’)” target=”_blank”>BUY NOW

    Thanks

    https://ww.wp.xz.cn/plugins/calculated-fields-form/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘On Click Event’ is closed to new replies.