Reading Material:

https://help.piwik.pro/support/getting-started/install-a-tracking-code/