...
Download the latest version of the plugin from the Atlassian Marketplace
Log in as an user with Confluence Administrator role
Go to Confluence Administration Console by clicking on the Browse -> Confluence Admin in the top menu bar
On the left sidebar, click on Manage Add-ons link under the Add-ons section
Click on the Upload Plugin link to bring up the Upload Plugin dialog box
Click on the Browse button and select the jar file that you have downloaded previously
Click on the Upload button to upload the plugin
Click on the Close button to acknowledge
Configuration
A license key is required for the plugin to work.
...
To update the license key
Log in as an user with Confluence Administrator role
Go to Confluence Administration Console by clicking on the Browse -> Confluence Admin in the top menu bar
On the left sidebar, click on Manage Add-ons link under the Add-ons section
Search for the Site Statistics for Jira under the User-installed Plugins
Click on it once to expand the details
Paste the license key and click on the Update button