2017-05-29 91 views

回答

1

你有這樣的解決方案:

<div class="call-wrapper-middle"> 
    <button href="/show/phonenumber-middle" onclick="__gaTracker('send', 'event', 'buttons', 'click', 'phone-number-middle');" target="blank" id="call-phone-middle" style="display: none;"><i class="fa fa-phone"></i>Call us</button> 
    <div class="call-number-middle" style="display: block;"> <a href="tel:555" class="number">555</a></div> 
</div> 

的DOC:https://developers.google.com/analytics/devguides/collection/analyticsjs/events

源:Track button click as goal in Google Analytics

+0

使用這樣的:。工作正常。 –