From your OpenCart Administration, hover over "System" then click "Settings"
Click "Edit" on the righthand side of your store url.
You now should be the "Settings" page with multiple tabs along the top. Select the far right tab which is labeled "Server"
Paste your Google Analytics code into the text field provided.