毎回ロードされるレイアウトビューページがある場合は、それを先頭に配置します。
ex。地雷がビュー/テンプレート/のlayout.php
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php echo $description; ?>">
<meta name="author" content="">
<!google site verification -->
<meta name="google-site-verification" content="" />
<title><?php echo $title; ?></title>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '', 'auto');
ga('send', 'pageview');
</script>
</head>
に位置しています –
@Jobyマシューズをpublic_htmlに検索コンソールの確認ページで提供検証ファイルをダウンロードし、それをアップロードしてくださいCodeIgniterのどこインデックスのルート・ディレクトリにあるファイルを置きます。また、** robots.txt **を入力すると、** Googlebot **にあなたのウェブサイトを読むことができます。 robots.txtの詳細についてはhttp://www.robotstxt.org/robotstxt.html –
私はpublic_htmlにアップロードしましたが、エラーが表示されます –