MediaWiki:Common.js: diferenças entre revisões

Sem resumo de edição
Sem resumo de edição
Linha 338: Linha 338:
});
});
// page_view 설정: 언어 서브디렉터리 포함 경로를 명시
gtag('config', GA_ID, {
page_path: location.pathname + location.search
});
// 언어를 사용자 속성으로 항상 전송(보고서에서 맞춤차원으로 필터)
// 언어를 사용자 속성으로 항상 전송(보고서에서 맞춤차원으로 필터)
gtag('set', 'user_properties', { site_language: lang });
gtag('set', 'user_properties', { site_language: lang });
    // page_path + content_group 같이 전송
gtag('event', 'page_view', {
gtag('event', 'page_view', {
    page_location: location.href,
    page_location: location.href,
Linha 352: Linha 346:
    content_group: lang
    content_group: lang
});
});
     console.log('gtag', lang);
     console.log('gtag', lang, document.title);
    console.log('title', document.title)
})();
})();