{"id":37678,"date":"2014-11-20T04:35:36","date_gmt":"2014-11-20T09:35:36","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=37678"},"modified":"2016-07-12T03:51:30","modified_gmt":"2016-07-12T07:51:30","slug":"opencart-how-to-add-google-analytics-tracking-code","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-how-to-add-google-analytics-tracking-code.html","title":{"rendered":"OpenCart 2.x. How to add Google Analytics tracking code"},"content":{"rendered":"<p>This tutorial will explain you how to add <strong>Google Analytics<\/strong> tracking code in OpenCart 2.x. templates.<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=szlH5zcWIK8?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to add Google Analytics tracking code<\/a>\r\n   <ol>\r\n   <li><p>Log into the existing or create a new account to retrieve the tracking code from: <a href=\"http:\/\/www.google.com\/analytics\" target=\"_blank\">Google Analytics<\/a>.<\/p><\/li>\r\n   <li><p>Copy the provided code.<\/p><\/li>\r\n   <li><p>Log into your <strong>OpenCart admin panel<\/strong>.<\/p><\/li>\r\n   <li><p>Navigate to <strong>Extensions -> Analytics<\/strong>:<\/p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code-300x168.jpg\" alt=\"opencart2x_how_to_add_google_analytics_tracking_code\" width=\"300\" height=\"168\" class=\"alignnone size-medium wp-image-70193\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code-1024x572.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code.jpg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n   <li><p>Next to the <strong>Google Analytics<\/strong> title, click <em>blue pencil icon<\/em> to edit the code:<\/p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code2-300x168.jpg\" alt=\"opencart2x_how_to_add_google_analytics_tracking_code2\" width=\"300\" height=\"168\" class=\"alignnone size-medium wp-image-70194\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code2-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code2-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code2-1024x572.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code2.jpg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n   <li><p>Paste the retrieved <strong>tracking code<\/strong> into the text box.<\/p><\/li>\r\n   <li><p>Select <strong>Enabled<\/strong> and save changes.<\/p><\/li>\r\n   <li><p>Use <strong>Control\/Command+U<\/strong> hotkeys to check the page source code. The snippet should appear before the closing tag of the page head section:<\/p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code3-300x169.jpg\" alt=\"opencart2x_how_to_add_google_analytics_tracking_code3\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-70195\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code3-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code3-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code3-1024x576.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/11\/opencart2x_how_to_add_google_analytics_tracking_code3.jpg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n   <li><p>Proceed to your <strong>Google Analytics Account<\/strong> to track the statistics of the website.<\/p><\/li>\r\n<\/ol>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=szlH5zcWIK8?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to add Google Analytics tracking code<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial will explain you how to add <strong>Google Analytics<\/strong> tracking code in OpenCart 2.x. templates.<\/p>\n","protected":false},"author":93,"featured_media":40465,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1156],"tags":[1043,859,929,1157,1044],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/37678"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/93"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=37678"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/37678\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/40465"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=37678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=37678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=37678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}