- Update GoogleAnalytics scripts.

This commit is contained in:
agibert 2015-02-16 17:07:27 +00:00
parent d4ba1f98e0
commit 13705fc9c1

View File

@ -1,8 +1,8 @@
<? <?
// $RCSfile: lmbrowse.php,v $ // $RCSfile: lmbrowse.php,v $
// $Revision: 1.11 $ // $Revision: 1.12 $
// $Name: $ // $Name: $
// $Date: 2015/01/11 17:04:44 $ // $Date: 2015/02/16 17:07:27 $
// $Author: agibert $ // $Author: agibert $
/* /*
@ -754,19 +754,14 @@ function lmb_header( $page_id, $page_name, $img_path, $img_alt, $description, $k
echo " <body style=\"background-image:url(''); background-repeat:repeat;\"> echo " <body style=\"background-image:url(''); background-repeat:repeat;\">
"; ";
echo "<script type=\"text/javascript\"> echo "<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');
var _gaq = _gaq || []; ga('create', 'UA-37642754-1', 'auto');
var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; ga('send', 'pageview');
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', 'UA-37642754-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script> </script>
"; ";