phase 6
This commit is contained in:
@@ -73,6 +73,21 @@ class Website extends Model
|
||||
return $this->hasMany(GoalConversion::class);
|
||||
}
|
||||
|
||||
public function dailyAggregates(): HasMany
|
||||
{
|
||||
return $this->hasMany(DailyAggregate::class);
|
||||
}
|
||||
|
||||
public function pageDailyAggregates(): HasMany
|
||||
{
|
||||
return $this->hasMany(PageDailyAggregate::class);
|
||||
}
|
||||
|
||||
public function getDataRetentionDaysAttribute(): int
|
||||
{
|
||||
return $this->settings['data_retention_days'] ?? 365;
|
||||
}
|
||||
|
||||
public function embedSnippet(): string
|
||||
{
|
||||
$scriptUrl = route('tracking.script', $this->tracking_id);
|
||||
|
||||
Reference in New Issue
Block a user