GAの解析タグをinputでリンクも適用させたいです。
<a href="https://www.google.com" onclick="ga('send', 'event', 'aaaa', 'bbb','bbb_ccc')" ;="">表示名称</a>
こういうのをむりやりいれると飛びませんでした。どうしたら、りんく先へ変移しつつ解析も出来るでしょうか?
**現状** <li> <input type="checkbox" name ="group-3" id="group-3" onClick="location.href='https://www.google.com'"> <label for="group-3">表示名称</label> </li> **イメージもちろん解析どころか飛べない** <li> <input type="checkbox" name ="group-3" id="group-3" onClick="location.href='https://www.google.com'ga('send', 'event', 'aaaa', 'bbb','bbb_ccc')"> <label for="group-3">表示名称</label> </li>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。