{"id":8155860,"date":"2016-09-07T17:12:58","date_gmt":"2016-09-07T17:12:58","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/analytics-event-tracking-for-links\/"},"modified":"2016-09-07T17:12:58","modified_gmt":"2016-09-07T17:12:58","slug":"analytics-event-tracking-for-links","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/analytics-event-tracking-for-links\/","title":{"rendered":"Analytics event tracking for links"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I want to use Event Tracking in Analytics to see when people are clicking on the review links. Any advise on the best way to accomplish this would be greatly appreciated! I have the following code which I think I need to add to the links, but I don&#8217;t know where to add it. <\/p>\n<p><code>onclick=\u201c_gap.push([\u2018_trackEvent\u2019,\u2019reviewread\u2019,\u2019readreview\u2019,\u2019review\u2019]);\u201d<\/code><\/p>\n<p>Thanks so much!<\/p>\n","protected":false},"template":"","class_list":["post-8155860","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8155860","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\/8155860\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8155860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}