Google Event tracking for phone number

后端 未结 1 1833
-上瘾入骨i
-上瘾入骨i 2021-01-03 17:27

I am running a WordPress site, which is verified with Google Webmaster Tools and has a GA code associated with Google Analytics.

I\'ve done some research on the web

相关标签:
1条回答
  • 2021-01-03 17:55

    The syntax for UA event tracking is

    ga('send', 'event', 'Phone Call Tracking', 'Click/Touch', 'Home Banner')
    

    So your complete code would be

    <a href="tel:18285053969" onclick="ga('send', 'event', 'Phone Call Tracking', 'Click/Touch', 'Home Banner');">828.505.3969</a>
    

    Once you have that set, and if you are not filtering out your own views, you can check for the event hit in Real-Time reports (so you don't have to wait 24 hours to see if it's working).

    0 讨论(0)
提交回复
热议问题