我需要按下以下按钮:
<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>
答案 0 :(得分:0)
您的代码有2个错误 你错过了一个&#34;在onclick结束时,对象是ga不是_ga,我也建议你总是用a完成脚本。
我在我的测试服务器上测试了它的工作
SELECT c.CountryCode, COUNT(f.`country_code_id`) AS view_count FROM fact_access_logs_views f
JOIN dim_country_code c ON f.`country_code_id` = c.`country_code_id`
JOIN dim_time_access d ON f.`access_time_id` = f.`access_time_id`
JOIN dim_channel chn ON f.`channel_id` = chn.`channel_id`
WHERE chn.`shortname_chn` LIKE
CASE WHEN
${channel_param} = "ALL" THEN '%%' ELSE ${channel_param}
END