Initial setup, untested
Validate Build / validate-build (push) Failing after 36s

This commit is contained in:
Cooper Dalrymple
2026-08-25 14:58:39 -05:00
parent 7159f7099e
commit 5f702470cc
17 changed files with 2573 additions and 163 deletions
+39
View File
@@ -0,0 +1,39 @@
<?php
/**
* @package ogre-consent
* @author cleverogre
* @copyright 2026 CleverOgre
* @license GLP-3.0-or-later
* @version 0.0.0
* @since 0.0.0
*/
namespace Ogre\Consent\Services;
use Ogre\Consent\GoogleTagManagerService;
use Override;
defined('ABSPATH') || exit;
final class GoogleAnalytics extends GoogleTagManagerService {
protected function __construct() {
parent::__construct('google-analytics', consent_id: 'analytics_storage');
}
#[Override]
public function get_config(): array
{
return array_merge(
parent::get_config(),
[
'cookies' => [
'/^_ga(_.*)?/'
],
]
);
}
}
GoogleAnalytics::instance();