{"id":8886668,"date":"2017-03-07T23:15:24","date_gmt":"2017-03-07T23:15:24","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/onclick-tracking-code-help\/"},"modified":"2017-03-07T23:15:24","modified_gmt":"2017-03-07T23:15:24","slug":"onclick-tracking-code-help","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/onclick-tracking-code-help\/","title":{"rendered":"OnClick tracking code help"},"content":{"rendered":"<p>I am trying to set up Onclick tracking code, but I dont know if I have got it correct. My Google analytics is using universal analytics and this is the code that I am putting in the Lead Call Button Onclick code box:<\/p>\n<p>onClick=&#8221;ga(&#8216;send&#8217;, &#8216;event&#8217;, &#8216;Mobile Contact&#8217;, &#8216;Phone&#8217;, &#8216;Phone button clicked&#8217;);&#8221; <\/p>\n<p>Nothing is showing up in my GA when I test this. Is there something I am doing wrong?<\/p>\n","protected":false},"template":"","class_list":["post-8886668","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8886668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8886668\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8886668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}