This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-linkis-website.git
The following commit(s) were added to refs/heads/dev by this push:
new c5d21eee0f modify script (#463)
c5d21eee0f is described below
commit c5d21eee0f294723536336449c5b9e4146332e35
Author: Beacontownfc <[email protected]>
AuthorDate: Mon Aug 1 22:27:52 2022 +0800
modify script (#463)
---
src/pages/home/index.js | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/src/pages/home/index.js b/src/pages/home/index.js
index 77dc6f34dc..a9398acbcc 100644
--- a/src/pages/home/index.js
+++ b/src/pages/home/index.js
@@ -10,9 +10,24 @@ export default function() {
const language = isBrowser && location.pathname.indexOf('/zh-CN/') === 0 ?
'zh-CN' : 'en';
const dataSource = config?.[language];
+ let _paq = [];
+ isBrowser && (window._paq = []);
+ isBrowser && (_paq = window._paq);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="https://apachelinkis.matomo.cloud/";
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
+ _paq.push(['setSiteId', '1']);
+ var d = isBrowser && document;
+ var g = isBrowser && d.createElement('script'), s = isBrowser &&
d.getElementsByTagName('script')[0];
+ isBrowser && (g.async=true);
+ isBrowser &&
(g.src='//cdn.matomo.cloud/apachelinkis.matomo.cloud/matomo.js');
+ isBrowser && (s.parentNode.insertBefore(g,s));
+ })();
+
return (
<div>
- <script
src='//cdn.matomo.cloud/apachelinkis.matomo.cloud/matomo.js'></script>
<div className="home-page slogan">
<div className="ctn-block">
<div className="banner text-center">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]