';
foreach($analytics_sub_tags as $tab_key => $tab_caption){
$active_class = ($current_tab === $tab_key) ? ' nav-tab-active' : '';
echo'
' . esc_html($tab_caption) . '';
}
echo'
';
self::google_anlytics();
echo'
';
self::matomo();
echo'
';
self::clarity();
echo'
';
self::advanced();
echo'
';
self::cookies();
echo'
';
self::custom_tracking();
echo'
';
siteseo_submit_button(__('Save changes', 'siteseo'));
echo'';
}
static function custom_tracking(){
global $siteseo;
if(!empty($_POST['submit'])){
self::save_settings();
}
echo'
Custom Tracking
'.esc_html('Add your own scripts like GTM or Facebook Pixel by copy and paste the provided code to the HEAD/BODY or FOOTER.','siteseo').'
';
}
static function cookies(){
global $siteseo;
if(!empty($_POST['submit'])){
self::save_settings();
}
echo'
Cookies
Manage user consent for GDPR and customize your cookie bar easily.
Works with Google Analytics and Matomo.
';
}
static function matomo(){
global $siteseo;
if(!empty($_POST['submit'])){
self::save_settings();
}
$matomo_subtabs = [
'tracking' => 'Tracking',
];
echo'
';
}
static function advanced(){
global $siteseo;
if(!empty($_POST['submit'])){
self::save_settings();
}
$adavnced_subtabs =[
'custom-dimensions' => 'Custom Dimensions',
'Misc' => 'Misc',
];
echo'
';
}
static function clarity(){
global $siteseo;
if(!empty($_POST['submit'])){
self::save_settings();
}
echo'
Microsoft Clarity
Use Microsoft Clarity to capture session recordings, get instant heatmaps and powerful Insights for Free. Know how people interact with your site to improve user experience and conversions.
'.
printf(wp_kses_post(__('Create your first Microsoft Clarity project here.', 'siteseo')), esc_url('https://clarity.microsoft.com/'))
.'
';
}
static function google_anlytics(){
global $siteseo;
if(!empty($_POST['submit'])){
self::save_settings();
}
echo'
Google Anlytics
Link your Google Analytics to your website. The tracking code will be automatically added to your site.
';
}
static function save_settings(){
}
}