We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e06f79 commit 8f460b5Copy full SHA for 8f460b5
src/pages/404.astro
@@ -28,6 +28,14 @@ import { SITE_TITLE } from '../consts';
28
window.location.replace('/en/blog/' + slug + '/');
29
return;
30
}
31
+
32
+ // GA4 404 에러 추적
33
+ if (typeof gtag === 'function') {
34
+ gtag('event', '404_error', {
35
+ page_path: path,
36
+ page_referrer: document.referrer || '(direct)'
37
+ });
38
+ }
39
})();
40
</script>
41
<style>
0 commit comments