- Update Google Analytics code.
This commit is contained in:
@@ -668,15 +668,11 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords,
|
|||||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"{$skin_path}/default.css\"/>
|
<link rel=\"stylesheet\" type=\"text/css\" href=\"{$skin_path}/default.css\"/>
|
||||||
<link rel=\"stylesheet\" type=\"text/css\" href=\"/jplayer/skin/pink.flag/css/jplayer.pink.flag.css\"/>
|
<link rel=\"stylesheet\" type=\"text/css\" href=\"/jplayer/skin/pink.flag/css/jplayer.pink.flag.css\"/>
|
||||||
<title>$page_name</title>
|
<title>$page_name</title>
|
||||||
</head>
|
|
||||||
";
|
";
|
||||||
|
|
||||||
echo " <body style=\"background-image:url(''); background-repeat:repeat;\">
|
|
||||||
";
|
|
||||||
|
|
||||||
|
|
||||||
if( $lmb_ga_enable == true)
|
if( $lmb_ga_enable == true)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
echo "<script>
|
echo "<script>
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(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),
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
@@ -687,9 +683,28 @@ function lmb_header( $page_id, $page_name, $page_title, $description, $keywords,
|
|||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
";
|
||||||
|
*/
|
||||||
|
|
||||||
|
echo " <!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
|
<script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-37642754-1\"></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'UA-37642754-1');
|
||||||
|
</script>
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo " </head>
|
||||||
|
";
|
||||||
|
|
||||||
|
echo " <body style=\"background-image:url(''); background-repeat:repeat;\">
|
||||||
|
";
|
||||||
|
|
||||||
|
|
||||||
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"{$mw_tag}\">
|
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"{$mw_tag}\">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user