1. Log in to your existing account or create a new account http://www.google.com/analytics/.
  2. Fill in all fields to get Google Analytics (analysis) code for your website needs.
  3. Copy the code you will receive.
  4. Log in to Opencart admin panel and navigation systems -> Settings tab. Click Edit, and then go to the Server tab, in the open page.
  5. Scroll to the bottom to find the Google Analytics (analysis) code field. Your Google Analytics (analysis) paste the code into it:webtoasts-Opencart.How-to-add-Google-Analytics-code-2
  6. Save your changes, and then click Control / Command Home + F5 on.
  7. Using the Control / Command + U hotkey to check the page source code. You will find the new code before the closing tag: