0
我需要跟蹤以下按鈕按下:在深層次,跟蹤事件的一點幫助?
<div class="big-radio form-item col js-brochure-fulfilment" id="fulfilment-post">
<input type="radio" name="brochure-type" id="brochure-post" class="" value="1" />
<label for="brochure-post">
<span class="text">By Post</span>
<span class="icon icon-envelope"></span>
</label>
</div>
它不會導致另一頁 - 因此,我在正確的假設我添加一個onClick標籤?
<div class="big-radio form-item col js-brochure-fulfilment" id="fulfilment-post">
<input type="radio" onclick="_ga('send', 'event', 'buttons', 'click') name="brochure-type" id="brochure-post" class="" value="1" />
<label for="brochure-post">
<span class="text">By Post</span>
<span class="icon icon-envelope"></span>
</label>
</div>
這是「GA」,而不是「_ga」(_ga是餅乾和跨域連接參數的名稱,但該方法調用沒有下劃線)。 –
好吧,所以觸發事件只是: (eventCategory:'MyCategory',eventAction:'MyAction',eventLabel:'MyLabel'});「 – restless