{"id":1694,"date":"2021-01-26T12:03:17","date_gmt":"2021-01-26T06:33:17","guid":{"rendered":"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/ga4-tracking-code\/"},"modified":"2024-11-08T14:03:55","modified_gmt":"2024-11-08T08:33:55","slug":"ga4-tracking-code","status":"publish","type":"docs","link":"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/ga4-tracking-code\/","title":{"rendered":"GA4 Tracking Code"},"content":{"rendered":"\n<p>This article explains how to locate and copy your Google Tag script in the latest Google Analytics interface. Using this script allows you to add Google Analytics tracking to your website, enabling valuable insights into visitor behavior and site performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Video Demonstration:<\/h2>\n\n\n\n<p>For a detailed walkthrough, watch our YouTube tutorial here &#8211; <a href=\"https:\/\/www.youtube.com\/watch?v=-rU3V-ZunWo\">How to Get the Google Tag Script from Google Analytics<\/a>. The video covers each step visually to make the process easy to follow.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Get Google Tag Script from Google Analytics (Update 2024)\" width=\"697\" height=\"392\" src=\"https:\/\/www.youtube.com\/embed\/-rU3V-ZunWo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Steps to Retrieve Your Google Tag Script:<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Log into Google Analytics<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <a href=\"https:\/\/analytics.google.com\/\">Google Analytics<\/a>.<\/li>\n\n\n\n<li>Use your Google account to sign in.<\/li>\n\n\n\n<li>Select the property (website) you want to add the Google Tag to.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Access the Google Tag Manager<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the left-hand menu, navigate to <strong>Admin<\/strong> (usually at the bottom of the menu).<\/li>\n\n\n\n<li>Under <strong>Property Settings<\/strong>, locate and click on <strong>Data Streams<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Select Your Data Stream<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the Data Streams section, find and select your website\u2019s data stream (e.g., your website URL).<\/li>\n\n\n\n<li>This will open a detailed page for your data stream.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Copy the Google Tag Script<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Scroll down to locate the <strong>Google Tag<\/strong> section.<\/li>\n\n\n\n<li>Here, you should see a section labeled <strong>Global Site Tag (gtag.js)<\/strong>.<\/li>\n\n\n\n<li>Copy the provided script, which you can insert directly into the extension setting.<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"featured_media":0,"parent":869,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1694","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GA4 Tracking Code - HuntBee Resources<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/ga4-tracking-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GA4 Tracking Code - HuntBee Resources\" \/>\n<meta property=\"og:description\" content=\"This article explains how to locate and copy your Google Tag script in the latest Google Analytics interface. Using this script allows you to add Google Analytics tracking to your website, enabling valuable insights into visitor behavior and site performance. Video Demonstration: For a detailed walkthrough, watch our YouTube tutorial here &#8211; How to Get [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/ga4-tracking-code\/\" \/>\n<meta property=\"og:site_name\" content=\"HuntBee Resources\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/huntbee.opencart\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-08T08:33:55+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/google-analytics-enhanced-ecommerce-tracking-for-opencart\\\/ga4-tracking-code\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/google-analytics-enhanced-ecommerce-tracking-for-opencart\\\/ga4-tracking-code\\\/\",\"name\":\"GA4 Tracking Code - HuntBee Resources\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\"},\"datePublished\":\"2021-01-26T06:33:17+00:00\",\"dateModified\":\"2024-11-08T08:33:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/google-analytics-enhanced-ecommerce-tracking-for-opencart\\\/ga4-tracking-code\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/google-analytics-enhanced-ecommerce-tracking-for-opencart\\\/ga4-tracking-code\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/google-analytics-enhanced-ecommerce-tracking-for-opencart\\\/ga4-tracking-code\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Analytics Enhanced Ecommerce Tracking for OpenCart\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/google-analytics-enhanced-ecommerce-tracking-for-opencart\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"GA4 Tracking Code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"name\":\"HuntBee Resources\",\"description\":\"OpenCart Extension Documentations - Guides - Blogs - Projects\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\",\"name\":\"HuntBee OpenCart\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"contentUrl\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"width\":945,\"height\":200,\"caption\":\"HuntBee OpenCart\"},\"image\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/huntbee.opencart\",\"https:\\\/\\\/www.instagram.com\\\/opencart.huntbee\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GA4 Tracking Code - HuntBee Resources","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/ga4-tracking-code\/","og_locale":"en_US","og_type":"article","og_title":"GA4 Tracking Code - HuntBee Resources","og_description":"This article explains how to locate and copy your Google Tag script in the latest Google Analytics interface. Using this script allows you to add Google Analytics tracking to your website, enabling valuable insights into visitor behavior and site performance. Video Demonstration: For a detailed walkthrough, watch our YouTube tutorial here &#8211; How to Get [&hellip;]","og_url":"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/ga4-tracking-code\/","og_site_name":"HuntBee Resources","article_publisher":"https:\/\/www.facebook.com\/huntbee.opencart","article_modified_time":"2024-11-08T08:33:55+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/ga4-tracking-code\/","url":"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/ga4-tracking-code\/","name":"GA4 Tracking Code - HuntBee Resources","isPartOf":{"@id":"https:\/\/www.huntbee.com\/resources\/#website"},"datePublished":"2021-01-26T06:33:17+00:00","dateModified":"2024-11-08T08:33:55+00:00","breadcrumb":{"@id":"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/ga4-tracking-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/ga4-tracking-code\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/ga4-tracking-code\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.huntbee.com\/resources\/"},{"@type":"ListItem","position":2,"name":"Google Analytics Enhanced Ecommerce Tracking for OpenCart","item":"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/"},{"@type":"ListItem","position":3,"name":"GA4 Tracking Code"}]},{"@type":"WebSite","@id":"https:\/\/www.huntbee.com\/resources\/#website","url":"https:\/\/www.huntbee.com\/resources\/","name":"HuntBee Resources","description":"OpenCart Extension Documentations - Guides - Blogs - Projects","publisher":{"@id":"https:\/\/www.huntbee.com\/resources\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.huntbee.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.huntbee.com\/resources\/#organization","name":"HuntBee OpenCart","url":"https:\/\/www.huntbee.com\/resources\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/","url":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","contentUrl":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","width":945,"height":200,"caption":"HuntBee OpenCart"},"image":{"@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/huntbee.opencart","https:\/\/www.instagram.com\/opencart.huntbee\/"]}]}},"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/1694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/comments?post=1694"}],"version-history":[{"count":3,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/1694\/revisions"}],"predecessor-version":[{"id":4099,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/1694\/revisions\/4099"}],"up":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/869"}],"next":[{"title":"Settings","link":"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/settings\/","href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/1697"}],"prev":[{"title":"Cart \/ Checkout Abandonment","link":"https:\/\/www.huntbee.com\/resources\/docs\/google-analytics-enhanced-ecommerce-tracking-for-opencart\/cart-checkout-abandonment\/","href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/1483"}],"wp:attachment":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/media?parent=1694"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=1694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}