<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite xml:lang="ja">イベントについて - アナリティクス ヘルプ</cite>
(<time>2016-04-11 12:08:11 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://support.google.com/analytics/answer/1033068?hl=ja">https://support.google.com/analytics/answer/1033068?hl=ja</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <cite xml:lang="ja">イベント トラッキング  |  ウェブ向けアナリティクス(analytics.js)  |  Google Developers</cite>
(<time>2016-03-23 02:26:45 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://developers.google.com/analytics/devguides/collection/analyticsjs/events?hl=ja">https://developers.google.com/analytics/devguides/collection/analyticsjs/events?hl=ja</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> 他は正常に動作しているのにイベントトラッキングだけ正しく記録されない場合、
<code>ga()</code> の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">引数</anchor>を正しく指定できているか調べてみるといいかもしれません。
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">typo</anchor> していないかなど。)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> レポートのイベントの項目に正しく表示されていなくても、リアルタイムの項のイベントの項目内には表示されることがあります。
ほとんど遅延なしでリアルタイムに反映されるので、ここで正しく動作しているか試すことができます。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> <cite xml:lang="ja">analytics.js から gtag.js に移行する  |  ウェブ向けアナリティクス(gtag.js)  |  Google Developers</cite>
(<time>2018-04-18 02:50:38 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://developers.google.com/analytics/devguides/collection/gtagjs/migration?hl=ja">https://developers.google.com/analytics/devguides/collection/gtagjs/migration?hl=ja</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> 昔のやつ</p><pre class="code javascript">    ga ('send', {
      hitType: 'event',
      eventCategory: 'category1',
      eventAction: 'action1',
      eventLabel: 'label1',
      transport: 'beacon',
    });</pre><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">GA4</anchor></p><pre class="code javascript">gtag('event', 'event1', {
  'event_category': 'category1',
  'event_label': 'label1',
  'transport_type': 'beacon',
});</pre></body></html>