<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<?php get_template_part('googleanalytics'); ?>
<title>テスト</title>
...
</head>
※拡張子「.php」を付けたままにしないよう注意
【WordPress】phpを読み込む「get_template_part」の使い方


<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<?php get_template_part('googleanalytics'); ?>
<title>テスト</title>
...
</head>
※拡張子「.php」を付けたままにしないよう注意