{"id":124771,"date":"2020-07-13T01:04:00","date_gmt":"2020-07-13T01:04:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/referrer-analytics\/"},"modified":"2020-09-10T14:33:01","modified_gmt":"2020-09-10T14:33:01","slug":"referrer-analytics","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/referrer-analytics\/","author":11795616,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.1","stable_tag":"2.0.1","tested":"5.5.18","requires":"5.2","requires_php":"7.2","requires_plugins":"","header_name":"Referrer Analytics","header_author":"Ben Marshall","header_description":"Track & store where you users came from for better reporting data in Google Analytics, conversion tracking & more. Make qualified decisions based on facts & figures, not conjecture.","assets_banners_color":"000000","last_updated":"2020-09-10 14:33:01","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/benmarshall.me\/donate\/?utm_source=referrer_analytics&utm_medium=wordpress_repo&utm_campaign=donate","header_plugin_uri":"https:\/\/benmarshall.me\/referrer-analytics","header_author_uri":"https:\/\/benmarshall.me","rating":5,"author_block_rating":0,"active_installs":40,"downloads":1843,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"bmarshall511","date":"2020-07-13 15:11:31"},"1.2.0":{"tag":"1.2.0","author":"bmarshall511","date":"2020-07-13 22:17:21"},"1.3.0":{"tag":"1.3.0","author":"bmarshall511","date":"2020-07-14 13:15:53"},"1.3.1":{"tag":"1.3.1","author":"bmarshall511","date":"2020-07-14 20:32:59"},"1.4.0":{"tag":"1.4.0","author":"bmarshall511","date":"2020-07-15 16:54:57"},"1.4.1":{"tag":"1.4.1","author":"bmarshall511","date":"2020-07-16 15:15:02"},"1.5.0":{"tag":"1.5.0","author":"bmarshall511","date":"2020-07-18 02:12:05"},"1.6.0":{"tag":"1.6.0","author":"bmarshall511","date":"2020-07-24 01:13:45"},"1.6.1":{"tag":"1.6.1","author":"bmarshall511","date":"2020-07-24 18:31:44"},"1.7.0":{"tag":"1.7.0","author":"bmarshall511","date":"2020-07-27 20:34:43"},"1.7.1":{"tag":"1.7.1","author":"bmarshall511","date":"2020-07-29 13:57:23"},"1.7.2":{"tag":"1.7.2","author":"bmarshall511","date":"2020-08-07 12:28:16"},"2.0.0":{"tag":"2.0.0","author":"bmarshall511","date":"2020-09-09 13:45:05"},"2.0.1":{"tag":"2.0.1","author":"bmarshall511","date":"2020-09-10 14:33:01"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2345764,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2345764,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":2345764,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2345764,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2345764,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0","1.2.0","1.3.0","1.3.1","1.4.0","1.4.1","1.5.0","1.6.0","1.6.1","1.7.0","1.7.1","1.7.2","2.0.0","2.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":2348430,"resolution":"1","location":"assets","locale":""},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":2348430,"resolution":"2","location":"assets","locale":""},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":2348430,"resolution":"3","location":"assets","locale":""},"screenshot-4.jpg":{"filename":"screenshot-4.jpg","revision":2348430,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Referrer Analytics statistics &amp; charts","2":"Referrer Analytics statistics &amp; charts","3":"Referrer Analytics log","4":"Referrer Analytics settings screen"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[232,1005,188266,4131,521],"plugin_category":[36],"plugin_contributors":[78959],"plugin_business_model":[],"class_list":["post-124771","plugin","type-plugin","status-publish","hentry","plugin_tags-analytics","plugin_tags-google-analytics","plugin_tags-google-analytics-add-on","plugin_tags-referrer","plugin_tags-statistics","plugin_category-analytics","plugin_contributors-bmarshall511","plugin_committers-bmarshall511"],"banners":{"banner":"https:\/\/ps.w.org\/referrer-analytics\/assets\/banner-772x250.png?rev=2345764","banner_2x":"https:\/\/ps.w.org\/referrer-analytics\/assets\/banner-1544x500.png?rev=2345764","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/referrer-analytics\/assets\/icon.svg?rev=2345764","icon":"https:\/\/ps.w.org\/referrer-analytics\/assets\/icon.svg?rev=2345764","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/referrer-analytics\/assets\/screenshot-1.jpg?rev=2348430","caption":"Referrer Analytics statistics &amp; charts"},{"src":"https:\/\/ps.w.org\/referrer-analytics\/assets\/screenshot-2.jpg?rev=2348430","caption":"Referrer Analytics statistics &amp; charts"},{"src":"https:\/\/ps.w.org\/referrer-analytics\/assets\/screenshot-3.jpg?rev=2348430","caption":"Referrer Analytics log"},{"src":"https:\/\/ps.w.org\/referrer-analytics\/assets\/screenshot-4.jpg?rev=2348430","caption":"Referrer Analytics settings screen"}],"raw_content":"<!--section=description-->\n<p>A powerful site referrer analytics plugin. Get insights into types of referring traffic, automated <a href=\"https:\/\/support.google.com\/analytics\/answer\/1033863\">GA campaign URLs<\/a>, and useful tracking data for advanced reporting, conversation tracking, and 3rd-party integration.<\/p>\n\n<h4>On-site Reporting &amp; Statistics<\/h4>\n\n<p>A powerful tool that allows owners to gain valuable insights into referring traffic. View on-site reporting and statistics with interactive visual graphs and detailed logging including:<\/p>\n\n<ul>\n<li>GDPR &amp; <a href=\"https:\/\/www.benmarshall.me\/ccpa-compliance\/\">CCPA compliant<\/a><\/li>\n<li>Date &amp; time users were referred<\/li>\n<li>IP addresses of referred users &amp; their <a href=\"https:\/\/benmarshall.me\/html5-geolocation\/\">geolocation<\/a><\/li>\n<li>Types of referring traffic: <em>organic, bots, referral, etc.<\/em><\/li>\n<li>Human-readable referrers (ex. Google, Facebook, etc.)<\/li>\n<li>Referred destination URLs &amp; top landing pages from referrers<\/li>\n<li>Toplists of referrers, types of referrers, popular landing pages &amp; more<\/li>\n<li>Helpful recommendations to block known malicious referrers<\/li>\n<\/ul>\n\n<h4>Automated Google Analytics Integration<\/h4>\n\n<p>Automatically track <a href=\"https:\/\/support.google.com\/analytics\/answer\/1033863\">Google Analytics campaign data<\/a> via automated URLs from referring sources \u2014 no need to manually generate campaign URLs!<\/p>\n\n<p>Here\u2019s how it works:<\/p>\n\n<ol>\n<li>User visits the site from a referring URL like Google<\/li>\n<li>It retrieves &amp; parses the referrers info<\/li>\n<li>Smart redirect with UTM parameters added (i.e. <code>utm_source<\/code>, <code>utm_medium<\/code> and <code>utm_campaign<\/code>)<\/li>\n<\/ol>\n\n<p>When cookies are enabled, last known UTM values and referrer info is stored and can be accessed for advanced reporting, conversion tracking, etc.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the entire referrer-analytics folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the Plugins screen (Plugins &gt; Installed Plugins).<\/li>\n<li>Visit the plugin setting to configure as needed (Settings &gt; Referrer Analytics).<\/li>\n<\/ol>\n\n<p>For more information, see the <a href=\"https:\/\/benmarshall.me\/referrer-analytics\">plugin\u2019s website<\/a>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt><h3>What is a \"self-referral\"?<\/h3><\/dt>\n<dd><p>A \"self-referral\" is traffic coming to the site that has been referred by the same site. Referrer Analytics will typically ignore this type of traffic except when ran on certain hosts such as Pantheon.io. Learn more about \"self-referrals\" in <a href=\"https:\/\/pantheon.io\/docs\/pantheon_stripped\">Pantheon's documentation<\/a>.<\/p><\/dd>\n<dt><h3>What aren't my user referrers being logged?<\/h3><\/dt>\n<dd><p>Referrer Analytics relies on <code>$_SERVER['HTTP_REFERER]<\/code>. Due to increasing privacy settings, there's a handful of edge cases where this variable isn't available. These include:<\/p>\n\n<ul>\n<li>\"direct\" visitors (typed a URL in the browser or used a bookmark)<\/li>\n<li>Followed a link from outside the browser (from an email or mobile app)<\/li>\n<li>Referred from http to https, browsers hid the referrer for security<\/li>\n<li>Browser modified to not send referrer (browser extensions)<\/li>\n<li>Using a proxy server that removes referrer headers<\/li>\n<li>Clicked a link that has an HTML5 <a href=\"https:\/\/html.spec.whatwg.org\/multipage\/links.html#link-type-noreferrer\"><code>rel=noreferrer<\/code> attribute<\/a><\/li>\n<li>Uses JavaScript to link to your site (<code>window.open<\/code> or <code>location.href<\/code>)<\/li>\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/2985579\/does-http-equiv-refresh-keep-referrer-info-and-metadata\/24283850#24283850\"><code>meta refresh<\/code><\/a> redirects<\/li>\n<li>Request was made by a robot<\/li>\n<\/ul>\n\n<p>You can choose to have a URL parameter fallback if one exists such as <code>utm_source<\/code> if the <code>$_SERVER['HTTP_REFERER]<\/code> is unavailable. Note that some CMS like WordPress, automatcially add <code>rel=noreferrer<\/code> to external links. You can control this from the plugin settings page.<\/p><\/dd>\n<dt><h3>What referrer cookies are available<\/h3><\/dt>\n<dd><p>When plugin cookies are enabled, referrer-specific cookies are set and can be used for advanced tracking and reporting (ex. pass UTM values to hidden form inputs).<\/p>\n\n<p>The following cookies are available:<\/p>\n\n<ul>\n<li><code>referrer-analytics-referrer_name<\/code><\/li>\n<li><code>referrer-analytics-referrer_type<\/code><\/li>\n<li><code>referrer-analytics-referrer_host<\/code><\/li>\n<li><code>referrer-analytics-referrer_scheme<\/code><\/li>\n<li><code>referrer-analytics-referrer_url<\/code><\/li>\n<li><code>referrer-analytics-referrer_destination<\/code><\/li>\n<\/ul><\/dd>\n<dt><h3>What Google Analytics cookies are available?<\/h3><\/dt>\n<dd><p>You can access <a href=\"https:\/\/support.google.com\/analytics\/answer\/1033863?hl=en\">Google Analytics UTM values<\/a> via cookies when plugin cookies are enabled. This can be useful with certain hosts like <a href=\"https:\/\/pantheon.io\/docs\/pantheon_stripped\">Pantheon<\/a>, that strip this information on the backend. They also persist during the user's session allowing advanced tracking and reporting (ex. pass UTM values to hidden form inputs).<\/p>\n\n<p>The following cookies are available:<\/p>\n\n<ul>\n<li><code>referrer-analytics-utm_source<\/code><\/li>\n<li><code>referrer-analytics-utm_medium<\/code><\/li>\n<li><code>referrer-analytics-utm_campaign<\/code><\/li>\n<li><code>referrer-analytics-utm_term<\/code><\/li>\n<li><code>referrer-analytics-utm_content<\/code><\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>v2.0.1<\/h4>\n\n<ul>\n<li>IP addresses are now anyonymized to comply with privacy legislation (GDPR, CCPA, etc.). <a href=\"https:\/\/github.com\/bmarshall511\/referrer-analytics\/issues\/3\">#3<\/a><\/li>\n<\/ul>\n\n<h4>v2.0.0<\/h4>\n\n<ul>\n<li>Optimized JS &amp; resource loading<\/li>\n<li>Enhanced statistics dashboard<\/li>\n<li>Re-write of the code base<\/li>\n<\/ul>\n\n<h4>v1.7.2<\/h4>\n\n<ul>\n<li>Fixed overflow issue with top lists<\/li>\n<li>Added additional pre-defined referrer hosts<\/li>\n<\/ul>\n\n<h4>v1.7.1<\/h4>\n\n<ul>\n<li>Added additional pre-defined referrer hosts<\/li>\n<li>Fixed the line charts direction<\/li>\n<li>Various UI enhancements<\/li>\n<\/ul>\n\n<h4>v1.7.0<\/h4>\n\n<ul>\n<li>Various performance enhancements<\/li>\n<li>Various UI enhancements<\/li>\n<li>Added additional pre-defined referrer hosts<\/li>\n<\/ul>\n\n<h4>v1.6.1<\/h4>\n\n<ul>\n<li>Fix for cached CSS files<\/li>\n<\/ul>\n\n<h4>v1.6.0<\/h4>\n\n<ul>\n<li>Added additional pre-defined referrer hosts<\/li>\n<li>Added \"(UTM Source)\" to referrers that use the \"URL Referrer Fallback\"<\/li>\n<li>Added more charts to the Referrer Analytics dashboard<\/li>\n<li>Added a \"inferred\" attribute to known referrers that are defined by the <code>utm_source<\/code><\/li>\n<\/ul>\n\n<h4>v1.5.0<\/h4>\n\n<ul>\n<li>Fixed sorting issue on the log table<\/li>\n<li>Added additional pre-defined referrer hosts<\/li>\n<li>Added more charts<\/li>\n<\/ul>\n\n<h4>v1.4.1<\/h4>\n\n<ul>\n<li>Added additional pre-defined referrer hosts<\/li>\n<li>Changed 'backlink' default to 'referral'<\/li>\n<li>Enhanced the log table<\/li>\n<\/ul>\n\n<h4>v1.4.0<\/h4>\n\n<ul>\n<li>Added additional pre-defined referrer hosts<\/li>\n<li>Added ability to have a fallback referrer if <code>$_SERVER['HTTP_REFERER']<\/code> is unavailable<\/li>\n<li>Added the ability to prevent WP from automatcially adding <code>rel=\"noreferrer\"<\/code> tags to external links<\/li>\n<li>Fixed issue with some plugin form fields not saving<\/li>\n<\/ul>\n\n<h4>v1.3.1<\/h4>\n\n<ul>\n<li>Fixed PHP warning header output issue on the log page after a log is deleted for some hosts<\/li>\n<li>Fixed duplicate comma seperated IP addresses on some hosts like Pantheon<\/li>\n<li>Removed log files &amp; now storing referred traffic in the database<\/li>\n<\/ul>\n\n<h4>v1.3.0<\/h4>\n\n<ul>\n<li>Added additional pre-defined referrer hosts<\/li>\n<li>Various admin UI improvements<\/li>\n<\/ul>\n\n<h4>v1.2.0<\/h4>\n\n<ul>\n<li>Fixed PHP notice for <code>Undefined index: redirect<\/code><\/li>\n<li>Updated the cookie name convention<\/li>\n<li>Changed the helper function <code>referrer_analytics_parsed_log<\/code> to <code>referrer_analytics_parse_log<\/code><\/li>\n<li>Added more insight charts<\/li>\n<li>Minor bug fixes<\/li>\n<li>Added URL field to Defined Referrer Hosts<\/li>\n<li>Added UTM cookies<\/li>\n<\/ul>\n\n<h4>v1.1.0<\/h4>\n\n<ul>\n<li>Added additional pre-defined referrer hosts<\/li>\n<li>Added paging to the Referrer Log<\/li>\n<li>Log now get's synced with updated referrer &amp; known hosts<\/li>\n<\/ul>","raw_excerpt":"Track &amp; store where users come from for enhanced reporting in Google Analytics, on-site statistics, conversion tracking &amp; more.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/124771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=124771"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bmarshall511"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=124771"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=124771"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=124771"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=124771"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=124771"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=124771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}