How do I add a script to the head section of each page?1 user found helpful
Another way is if your theme has a header file that is included on every page you could do
I just tried this, but it's not working. This is in my "header.php" under /concrete***/updates/themes/elements:
<?php defined('C5_EXECUTE') or die("Access Denied.");
$as = new GlobalArea('Header Search');
$blocks = $as->getTotalBlocksInArea();
$displayThirdColumn = $blocks > 0 || $c->isEditMode();
I've tried modifying each page's "page header" blocks to include this code, but it doesn't work.
ga('create', 'UA-xxxxxxxx-x', 'auto');
I just figured out that my page themes don't all update with the design function; so, maybe after updating them it'll work (as I mentioned, I have it working on the root dir/home page).
I'll keep you all posted.
By doing this, I am now able to see the granular information (which page a person is viewing).