After upgrading to the latest version of MediaWiki, I needed to add my Google Analytics tracking code. Originally, I edited the source PHP files. I did some research to try to find a better way so upgrades wouldn’t take as much effort.
I found a MediaWiki Google Analytics extension and installed it.