{"id":90959,"date":"2018-09-06T00:16:52","date_gmt":"2018-09-06T00:16:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/google-analytics-event-tracking\/"},"modified":"2020-07-01T18:06:59","modified_gmt":"2020-07-01T18:06:59","slug":"dd-gtag-event-tracking","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/dd-gtag-event-tracking\/","author":13127947,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3","stable_tag":"1.3","tested":"5.4.19","requires":"4.5","requires_php":"5.6","requires_plugins":"","header_name":"Analytics Event Tracking for GTAG","header_author":"Howard Ehrenberg","header_description":"Add Google Analytics Event Tracking to any element, works with gtag only.","assets_banners_color":"f1f3f6","last_updated":"2020-07-01 18:06:59","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.duckdiverllc.com","header_plugin_uri":"https:\/\/www.duckdiverllc.com\/gtag-event-tracking","header_author_uri":"https:\/\/www.howardehrenberg.com","rating":0,"author_block_rating":0,"active_installs":20,"downloads":1602,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1936544","resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1936544","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1936544","resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1936544","resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"WP TinyMCE Editor window with link builder.","2":"Page with regular links and tracking links enabled."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[161451,1486,1005,148467],"plugin_category":[],"plugin_contributors":[138676],"plugin_business_model":[],"class_list":["post-90959","plugin","type-plugin","status-publish","hentry","plugin_tags-analytics-events","plugin_tags-events","plugin_tags-google-analytics","plugin_tags-gtag","plugin_contributors-thehowarde","plugin_committers-thehowarde"],"banners":{"banner":"https:\/\/ps.w.org\/dd-gtag-event-tracking\/assets\/banner-772x250.png?rev=1936544","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/dd-gtag-event-tracking\/assets\/icon-128x128.png?rev=1936544","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/dd-gtag-event-tracking\/assets\/screenshot-1.png?rev=1936544","caption":"WP TinyMCE Editor window with link builder."},{"src":"https:\/\/ps.w.org\/dd-gtag-event-tracking\/assets\/screenshot-2.png?rev=1936544","caption":"Page with regular links and tracking links enabled."}],"raw_content":"<!--section=description-->\n<p>This plugin makes it easy to add Google Analytics Events <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/gtagjs\/events\">GTAG Events<\/a> for inbound or outbound links from your website.  Especially useful for click tracking or analyzing landing page interactions.<\/p>\n\n<p>You can also choose via the settings page to use the analytics.js or Universal Analytics event tracking code.<\/p>\n\n<p>This plugin will add a simple to use WP Editor Button for entry of link, link text, and the Analytics event information.<\/p>\n\n<p>Within the WP Editor, the track-able links will be colored red instead of blue.<\/p>\n\n<p>Also adds a lightweight frontend Javascript file to enable the tracking.<\/p>\n\n<h3>1.2<\/h3>\n\n<p>Fix error using universal.<\/p>\n\n<h3>1.1<\/h3>\n\n<p>Add options page to include universal analytics events<\/p>\n\n<h3>1.0<\/h3>\n\n<p>Initial Build<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>gtag-event-tracking<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt><h3>Do I have to use the TinyMCE button to add event tracking?<\/h3><\/dt>\n<dd><p>No, you can simply add data-track=\"event\" to trigger the event, and use data-category, data-label, and data-action to include those elements in the event.<\/p><\/dd>\n<dt><h3>Does this track all click events?<\/h3><\/dt>\n<dd><p>If you use the simple editor button, or add the data-event = \"true\" to any <code>&lt;a&gt;<\/code> tag, then it will track the event in Google Analytics.<\/p><\/dd>\n<dt><h3>Does this only work with GTAG?<\/h3><\/dt>\n<dd><p>There are options in the settings page of the plugin to choose Universal Analytics analytics.js<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Adds a button to the WP Editor for easy insertion of links that can be tracked as Events in Google Analytics using the gtag.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/90959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=90959"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thehowarde"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=90959"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=90959"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=90959"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=90959"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=90959"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=90959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}