This plugin allows you to track visitors to your NodeBB, including getting detailed view rates per topic/category.
This plugin requires NodeBB v0.1.1 or greater, due to hooks added during that revision.
-
Create a Google Analytics account (here), and create a new app in order to receive a
UA-
number. This is your tracking ID. -
Install the plugin:
npm install nodebb-plugin-google-analytics
-
Activate the plugin in the administration panel, and restart your NodeBB
-
Navigate to the Google Analytics settings page
/admin/plugins/google-analytics
, and save your tracking ID and domain, as specified in step 1. -
Restart your NodeBB, and verify that the tracking code appears at the bottom of the page source.