I got annoyed looking at referrer reports that contained alternate domains (ie. for the site jeancrowder.ca, it wasn't identifying jeancrowder.org, jeancrowder.com or jeancrowder.net, let alone crowder.openconcept.ca as being internal references).

I wrote up a small patch for 4.6 & 4.7 that addresses this. Essentially there just needs to be some means to identify what domains should be considered internal and therefore removed from the query of external references.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mgifford’s picture

FileSize
2.41 KB

Just adding the 4.6 patch.

StevenPatz’s picture

Version: 4.7.3 » x.y.z

Features go in cvs

bdragon’s picture

Version: x.y.z » 6.x-dev
Status: Needs review » Needs work

Autopatch Results:
patching file statistics.module
Hunk #1 succeeded at 354 (offset 43 lines).
Hunk #2 succeeded at 337 with fuzz 2.
Hunk #3 FAILED at 363.
1 out of 3 hunks FAILED -- saving rejects to file statistics.module.rej

Pancho’s picture

Version: 6.x-dev » 7.x-dev

Good point, we need this, but unfortunately not before D7.

Pancho’s picture

Title: Some sites use multiple domains and the statistics module should have some way of addressing this effectively » Improve statistics for multidomain sites
mgifford’s picture

Why not? Or rather we should deal with this now to get it into D7?

mgifford’s picture

Version: 7.x-dev » 8.x-dev
Issue summary: View changes

This might just need to be closed. I haven't evaluated if it is still an issue or not.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Wim Leers’s picture

Status: Needs work » Closed (outdated)

The Statistics module no longer looks at the Referer header, so this can't be a problem anymore.

(Interestingly, #1694922: Send more data to the statistics backend is looking to restore that. IDK why it was removed.)