mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-05 08:52:00 +00:00
fix(analytics): show full referrer domain in web pages visits reports
fixes #367
This commit is contained in:
parent
1eb680d617
commit
6be38e9fda
@ -73,7 +73,7 @@ class AnalyticsWebsiteByRefererModel extends Model
|
|||||||
! ($found = cache("{$podcastId}_analytics_website_by_domain_weekly"))
|
! ($found = cache("{$podcastId}_analytics_website_by_domain_weekly"))
|
||||||
) {
|
) {
|
||||||
$oneWeekAgo = date('Y-m-d', strtotime('-1 week'));
|
$oneWeekAgo = date('Y-m-d', strtotime('-1 week'));
|
||||||
$found = $this->select("SUBSTRING_INDEX(domain, '.', -2) as labels")
|
$found = $this->select('domain as labels')
|
||||||
->selectSum('hits', 'values')
|
->selectSum('hits', 'values')
|
||||||
->where([
|
->where([
|
||||||
'podcast_id' => $podcastId,
|
'podcast_id' => $podcastId,
|
||||||
@ -100,7 +100,7 @@ class AnalyticsWebsiteByRefererModel extends Model
|
|||||||
! ($found = cache("{$podcastId}_analytics_website_by_domain_yearly"))
|
! ($found = cache("{$podcastId}_analytics_website_by_domain_yearly"))
|
||||||
) {
|
) {
|
||||||
$oneYearAgo = date('Y-m-d', strtotime('-1 year'));
|
$oneYearAgo = date('Y-m-d', strtotime('-1 year'));
|
||||||
$found = $this->select("SUBSTRING_INDEX(domain, '.', -2) as labels")
|
$found = $this->select('domain as labels')
|
||||||
->selectSum('hits', 'values')
|
->selectSum('hits', 'values')
|
||||||
->where([
|
->where([
|
||||||
'podcast_id' => $podcastId,
|
'podcast_id' => $podcastId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user