I have a single website (I made it myself) with one header, footer and multiple sites in between (I use php include function). I also created a simple command that dynamically changes pages title depening on the site that is used; thats from the header.php
<meta charset="utf-8" />
<title><?php if (isset($subtitle)) { echo $subtitle; } ?></title>
<link rel="stylesheet" href="css/main.css" type="text/css" />
</head>
I just signed up for Google Analytics and I know that I need to add the code they provide just before the </head> tag and I am wondering how is it gonna affect tracking all the pages that I have:
Home
Services
Resources
Blog
Contact
I am gonna be embeding Wordpress into the site, but I am not gonna worry about tracking all the pages there etc, but I would like to have separate data for all the listed above subpages. What is the way to do that? Is it gonna work if I am just gonna add the code to single header.php file now?
Thank you.