@@ -62,14 +41,14 @@ public function buildForm(array $form, FormStateInterface $form_state) {
F.e.: <code>https://yourname.<strong>containers</strong>.piwik.pro/</code> or
<code>https://yourname.piwik.pro/<strong>containers</strong></code>. Always end with a slash (/).'),
'#default_value'=>$config->get('piwik_domain'),
'#required'=>true,
'#required'=>TRUE,
];
$form['general']['site_id']=[
'#type'=>'textfield',
'#title'=>$this->t('Site ID'),
'#description'=>$this->t('The ID for your site in Piwik Pro. <a href=":piwik_help_url" target="_blank">Where to find it?</a>',[':piwik_help_url'=>'https://help.piwik.pro/support/questions/find-website-id/']),
'#default_value'=>$config->get('site_id'),
'#required'=>true,
'#required'=>TRUE,
];
$form['general']['sync_snippet']=[
'#type'=>'checkbox',
@@ -84,7 +63,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
Rename the data layer if you use other data layers to prevent interference.
<a href=":piwik_help_datalayer" target="_blank">How to check it?</a>',[':piwik_help_datalayer'=>'https://developers.piwik.pro/en/latest/tag_manager/data_layer_name.html#data-layer-name-guidelines']),
'#default_value'=>$config->get('data_layer'),
'#required'=>true,
'#required'=>TRUE,
];
$form['tracking']=[
@@ -106,7 +85,11 @@ public function buildForm(array $form, FormStateInterface $form_state) {
'#description'=>$this->t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.",['%blog'=>'/blog','%blog-wildcard'=>'/blog/*','%front'=>'<front>']),
'#description'=>$this->t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.",[