GoogleAnalytics4/Setup/Events.php

37 lignes
751 B
PHP
Brut Lien permanent Vue normale Historique

2024-06-03 12:02:44 +02:00
<?php
declare(strict_types=1);
namespace D3\GoogleAnalytics4\Setup;
class Events
{
/**
* @return void
*/
public static function onActivate()
{
$oActions = oxNew(Actions::class);
$oActions->d3SaveDefaultSettings(
'str',
'_sServersidetagging_js',
'https://www.googletagmanager.com/gtm.js'
);
$oActions->d3SaveDefaultSettings(
'str',
2024-06-03 12:15:00 +02:00
'_sServersidetagging_nojs',
2024-06-03 12:02:44 +02:00
'https://www.googletagmanager.com/ns.html'
);
$oActions->d3SaveDefaultSettings(
'str',
'_sContainerID',
'GTM-'
);
}
/**
* @return void
*/
public static function onDeactivate(){}
}