A number of changes to the CSS, page layout (moved to HTML5), and updated the editor.
This commit is contained in:
+8
-12
@@ -1,17 +1,13 @@
|
||||
<?
|
||||
$ga_id = config('GOOGLE_ANALYTICS_ID');
|
||||
if (! $is_admin && $ga_id) { ?>
|
||||
<script type="text/javascript">
|
||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||
var script = document.createElement( 'script' );
|
||||
script.src = unescape(gaJsHost + "google-analytics.com/ga.js");
|
||||
script.type = "text/javascript";
|
||||
var head = document.getElementsByTagName('head')[0];
|
||||
head.appendChild ( script );
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var pageTracker = _gat._getTracker(<?= json_encode($ga_id, JSON_HEX_TAG) ?>);
|
||||
pageTracker._initData();
|
||||
pageTracker._trackPageview();
|
||||
<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','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', <?= json_encode($ga_id, JSON_HEX_TAG) ?>, 'auto');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
<? } ?>
|
||||
|
||||
Reference in New Issue
Block a user