- Create an account and log into Google Analytics. More detailed documentation
- Edit theme config file and fill
google_analyticswith your Google track ID. Google track ID always starts with
# Google Analytics
localhost_ignore is set to true, NexT will not send record to google analytics, as long as page request has "localhost" as its host name. This will prevent local debugging from polluting analytics. Set
localhost_ignore to disable it.
- Create an account and log into Application Insights. More detailed documentation
- Edit theme config file and change section
application_insightsto your instrumentation key.
# Application Insights
Login to Baidu Analytics and locate to site code getting page.
Copy the script ID after
hm.js?, like the following picture:
Edit theme config file and change section
baidu_analytics to your script ID.
# Baidu Analytics ID
- Please login to Tencent Analytics and get your ID.
Then put it into
tencent_analyticssection of theme config file.
# Tencent analytics ID
- Create an account and log into Tencent Mobile Analytics. More detailed documentation
- Edit theme config file and fill section
# Tencent MTA ID
- Create an account and log into CNZZ Analytics. More detailed documentation
- Set the value of section
cnzz_siteidin theme config file to your CNZZ site ID. You can find this ID in link or the auto-generated script.
# CNZZ count
The script will show «Webmaster Statistics» and it's ugly, so we used a
display: none; to hide it.
Firebase Analytics provides the functionality of visitor statistics.
Login to Firebase to get apiKey and projectId. More detailed documentation
Edit theme config file and add or change
busuanzi_count option in theme config file.
enable: true, global setting is enabled. If
page_pv are all
false, Busuanzi only counts but never shows.
site_uv: true, it will show site UV in footer.
site_uv_footer is custom style words, and you can hide it by leaving it blank. You can also use font-awesome, it looks like
# View: Site visited by 12345 people.
site_pv: true, it will show site PV in footer.
site_pv_footer is custom style words, and you can hide it by leaving it blank, you can also use font-awesome, it looks like
# View: Site visited by 12345 times.
page_pv: true, it will show page PV under post title.
page_pv_footer is custom style words, and you can hide it by leaving it blank, you can also use font-awesome, it looks like
# View: Post read by 12345 times.
Adding article reading times counting to NexT theme. Documentation how to set the counter up and running safely aviable in hexo-leancloud-counter-security.
hexo-leancloud-counter-security by run following command in site root dir:
$ npm install hexo-leancloud-counter-security --save
Edit site config file and add following content:
Edit theme config file and fill options under
# Show number of visitors to each article.