워드프레스 플러그인 WP Statistics 에 네이버 다음 추가
워드프레스의 방문자 조회 플러그인중에 많은 사용자가 있는 WP Statistics 에는
글로번 검색 엔진인 Bing, DuckDuckGo, Google, Yahoo, Yandex 들이 기본으로 설치 되어 있다
여기에 국내 사용자가 많이 사용하는 네이버와 다음을 추가 하여
네이버와 다음 검색엔진의 접속 통계 정보를 보도록 하자
네이버 아이콘
다음 아이콘
WP-Content/Plugins/Wp-statistics/Assets/Images |
wp-content/plugins/wp-statistics/includes/functions/functions.php 수정 |
$ vi functions.php |
function wp_statistics_searchengine_list 아래에 내용 추가 한다
'naver' => array( 'name' => 'Naver', 'translated' => __('Naver', 'wp_statistics'), 'tag' => 'naver', 'sqlpattern' => '%naver.com%', 'regexpattern' => 'naver.com', 'querykey' => 'sm', 'image' => 'naver.png' ), 'daum' => array( 'name' => 'Daum', 'translated' => __('Daum', 'wp_statistics'), 'tag' => 'daum', 'sqlpattern' => '%daum.net%', 'regexpattern' => 'daum\.net', 'querykey' => 'q', 'image' => 'daum.png' ), |
[추가 전]
[네이버, 다음 추가 후]
댓글