Skip to content

Commit d2e8e41

Browse files
add plugin header to ignore 404 snippet
1 parent 09d706d commit d2e8e41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

code-snippets/disable-tracking-for-404s.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
/**
3+
* Plugin Name: Koko Analytics: Ignore 404 Pages
4+
*/
25

36
add_filter('koko_analytics_load_tracking_script', function ($load) {
47
return $load && ! is_404();

0 commit comments

Comments
 (0)