Here are the instructions for implementing Google Analytic on website in core PHP.
If you are using Google AdWords, you need to link it to your Google Analytics account to report on cost and click data.
Google Analytics uses a combination of JavaScript and first party cookies to gather anonymous data about your visitors.