[Chirpy] 게시글 조회수 설정
[Chirpy] 게시글 조회수 설정
Jekyll의 Chirpy 테마에서 게시글 조회수를 설정하는 방법에 대해 정리한다.
1. GoatCounter 가입
먼저 GoatCounter 사이트에 가입한다. 가입은 어려운거 없다. 이메일 인증까지 완료하면 된다.
2. GoatCounter 설정
본인_account.goatcounter.com/settings에 접속해서 Site settings
- Allow adding visitor counts on your website
옵션을 활성화한다. 하단에 Save를 눌러 설정을 저장한다.
3. Chirpy 설정
_config.yml 파일에서 goatcounter
설정을 다음과 같이 변경한다.
1
2
3
4
5
6
analytics:
goatcounter:
id: newtype0096 # 본인의 것으로 변경
pageviews:
provider: goatcounter
4. 결과 확인
게시글 페이지에 접속하면 우측 상단에 조회수가 표시되는 것을 확인할 수 있다.
This post is licensed under CC BY 4.0 by the author.