This commit is contained in:
Vanessa 2022-10-30 00:56:19 +08:00
parent 4340f5bd17
commit 710e703867
2 changed files with 4 additions and 3 deletions

View file

@ -164,8 +164,9 @@ export const onGetConfig = (isStart: boolean) => {
if (!window.siyuan.config.system.disableGoogleAnalytics) {
try {
window.dataLayer = window.dataLayer || [];
// @ts-ignore
window.gtag = () => {window.dataLayer.push(arguments)};
window.gtag = function (...args) {
window.dataLayer.push(args);
};
window.gtag("js", new Date());
window.gtag("config", "G-L7WEXVQCR9");
const para = {