File size: 733 Bytes
800aa60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php

/**
 * Matomo - free/libre analytics platform
 *
 * @link    https://matomo.org
 * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 */

namespace Piwik\Tracker;

use Piwik\Config\SectionConfig;
use Piwik\Tracker\Config\ThirdPartyCookies;

class TrackerConfig extends SectionConfig
{
    public static function getSectionName(): string
    {
        return 'Tracker';
    }

    /**
     * @return mixed|null
     */
    protected static function getRawConfigValue(string $name, ?int $idSite = null)
    {
        if ($name === 'use_third_party_id_cookie') {
            return ThirdPartyCookies::getInstance($idSite)->getValue();
        }

        return parent::getRawConfigValue($name, $idSite);
    }
}