Skip to content
Snippets Groups Projects
Commit 6be38e9f authored by Aonrud's avatar Aonrud Committed by Yassine Doghri
Browse files

fix(analytics): show full referrer domain in web pages visits reports

fixes #367
parent 1eb680d6
No related branches found
No related tags found
Loading
Pipeline #14109 passed
Pipeline: Castopod

#14110

    ......@@ -73,7 +73,7 @@ class AnalyticsWebsiteByRefererModel extends Model
    ! ($found = cache("{$podcastId}_analytics_website_by_domain_weekly"))
    ) {
    $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')
    ->where([
    'podcast_id' => $podcastId,
    ......@@ -100,7 +100,7 @@ class AnalyticsWebsiteByRefererModel extends Model
    ! ($found = cache("{$podcastId}_analytics_website_by_domain_yearly"))
    ) {
    $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')
    ->where([
    'podcast_id' => $podcastId,
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment