forked from Transparency/kgroad-frontend2
Fixing google analytics, adding some changes from prod
This commit is contained in:
1 parent
82eb226810
commit
3c4661a9c8
5 files changed
+456
-585
No files matched your search
@@ -8,42 +8,9 @@ import facebook from "./icons/facebook.svg";
|
||||
import instagram from "./icons/instagram.svg";
|
||||
import app_store_btn from "./icons/app-store-btn.svg";
|
||||
import play_market_btn from "./icons/play-market-btn.svg";
|
||||
import NetKgTracker from "@/widgets/NetKgTracker/NetKgTracker";
|
||||
|
||||
const Footer = () => {
|
||||
|
||||
const netKgFooterScript =`
|
||||
<!-- WWW.NET.KG , code for http://kgroad.org -->
|
||||
<script language="javascript" type="text/javascript">
|
||||
java="1.0";
|
||||
java1=""+"refer="+escape(document.referrer)+"&page="+escape(window.location.href);
|
||||
document.cookie="astratop=1; path=/";
|
||||
java1+="&c="+(document.cookie?"yes":"now");
|
||||
</script>
|
||||
<script language="javascript1.1" type="text/javascript">
|
||||
java="1.1";
|
||||
java1+="&java="+(navigator.javaEnabled()?"yes":"now");
|
||||
</script>
|
||||
<script language="javascript1.2" type="text/javascript">
|
||||
java="1.2";
|
||||
java1+="&razresh="+screen.width+'x'+screen.height+"&cvet="+
|
||||
(((navigator.appName.substring(0,3)=="Mic"))?
|
||||
screen.colorDepth:screen.pixelDepth);
|
||||
</script>
|
||||
<script language="javascript1.3" type="text/javascript">java="1.3"</script>
|
||||
<script language="javascript" type="text/javascript">
|
||||
java1+="&jscript="+java+"&rand="+Math.random();
|
||||
document.write("<a href='https://www.net.kg/stat.php?id=7235&fromsite=7235' target='_blank'>"+
|
||||
"<img src='https://www.net.kg/img.php?id=7235&"+java1+
|
||||
"' border='0' alt='WWW.NET.KG' width='88' height='31' /></a>");
|
||||
</script>
|
||||
<noscript>
|
||||
<a href='https://www.net.kg/stat.php?id=7235&fromsite=7235' target='_blank'><img
|
||||
src="https://www.net.kg/img.php?id=7235" border='0' alt='WWW.NET.KG' width='88'
|
||||
height='31' /></a>
|
||||
</noscript>
|
||||
<!-- /WWW.NET.KG -->
|
||||
`
|
||||
|
||||
return (
|
||||
<footer className="footer">
|
||||
<Link href="/">
|
||||
@@ -60,7 +27,7 @@ const Footer = () => {
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<div dangerouslySetInnerHTML={{ __html: netKgFooterScript }} />
|
||||
<NetKgTracker />
|
||||
</div>
|
||||
|
||||
<div className="footer__contacts">
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
"use client"
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
const NetKgTracker = () => {
|
||||
|
||||
const [imghref, setImghref] = useState('');
|
||||
|
||||
useEffect(() => {
|
||||
var java="1.3";
|
||||
var java1=""+"refer="+escape(document.referrer)+"&page="+escape(window.location.href);
|
||||
document.cookie="astratop=1; path=/";
|
||||
java1+="&c="+(document.cookie?"yes":"now");
|
||||
java1+="&java="+(navigator.javaEnabled()?"yes":"now");
|
||||
java1+="&razresh="+screen.width+'x'+screen.height+"&cvet="+
|
||||
(((navigator.appName.substring(0,3)=="Mic"))?
|
||||
screen.colorDepth:screen.pixelDepth);
|
||||
java1+="&jscript="+java+"&rand="+Math.random();
|
||||
setImghref("https://www.net.kg/img.php?id=7235&"+java1);
|
||||
|
||||
}, []);
|
||||
|
||||
return (
|
||||
/*
|
||||
<div>
|
||||
<a href='https://www.net.kg/stat.php?id=7235&fromsite=7235' target='_blank'>
|
||||
<img src={imghref} alt='WWW.NET.KG' width='88' height='31' />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Enable NetKgTracker only in production
|
||||
*/
|
||||
<div/>
|
||||
)
|
||||
|
||||
};
|
||||
|
||||
export default NetKgTracker;
|
||||
Reference in new issue
Block a user