{"id":220,"date":"2020-02-28T16:01:31","date_gmt":"2020-02-28T16:01:31","guid":{"rendered":"http:\/\/wiki2.plumserver.com\/knowledge-base\/magento-affiliate-programs-v2-x-google-analytics-affiliate-program-configuration"},"modified":"2021-10-18T11:22:33","modified_gmt":"2021-10-18T15:22:33","slug":"magento-affiliate-programs-v2-x-google-analytics-affiliate-program-configuration","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-affiliate-programs\/v3\/integrations\/google-analytics","title":{"rendered":"How to Set Up Magento 2 Google Analytics Ecommerce Tracking"},"content":{"rendered":"\n<h2 id=\"managing-google-analytics-affiliate-program-in-magento-2\">Creating Google Analytics Ecommerce Tracking Program in Magento 2<\/h2>\n\n\n\n<p>In this article, you will learn how to create and configure <a href=\"\/magento-affiliate-programs\/google-analytics-ecommerce\">Magento 2 Google Analytics Ecommerce Tracking Affiliate Program<\/a>. Please, check the following step-by-step guide.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-Step action:<\/p>\n\n\n\n<ol><li>Go to the &#8220;<strong>Plumrocket<\/strong>&#8221; tab in the main menu.<\/li><li>Navigate to the &#8220;<strong>Affiliate Programs<\/strong>&#8221; tab <strong>&gt;<\/strong> select &#8220;<strong>Manage Affiliate Programs<\/strong>&#8220;.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/2_configuration_affiliate_extension_magento_2_cj_v1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/2_configuration_affiliate_extension_magento_2_cj_v1.jpg\" alt=\"2 configuration affiliate extension magento 2 cj v1.jpg\"\/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-Step action:<\/p>\n\n\n\n<ol><li>Press on the &#8220;<strong>Add New Affiliate<\/strong>&#8221; button.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/2a_configuration_affiliate_extension_magento_2_v1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/2a_configuration_affiliate_extension_magento_2_v1.jpg\" alt=\"2a configuration affiliate extension magento 2 v1.jpg\"\/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-Step action:<\/p>\n\n\n\n<ol><li>From the list of the affiliate programs select &#8220;<strong>Google Analytics<\/strong>&#8220;.<\/li><li>Press the &#8220;<strong>Continue<\/strong>&#8221; button.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/1_configuration_affiliate_programs_magento_2_google_analytics_v1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2021\/05\/magento2-affiliate-programs-extension-cofiguration-7.png\" alt=\"1 configuration affiliate programs magento 2 google analytics v1.jpg\" class=\"wp-image-18527\"\/><\/a><\/figure>\n\n\n\n<h2 id=\"configuring-google-analytics-affiliate-program-in-magento-2\">Configuring Google Analytics Ecommerce Tracking Program in Magento 2<\/h2>\n\n\n\n<p>After you created a new <strong>Google Analytics Ecommerce Tracking<\/strong> <strong>Affiliate Program<\/strong>, you need to configure it. Please, follow the steps below.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-Step action:<\/p>\n\n\n\n<ol><li>Specify the <strong>&#8220;Name&#8221;<\/strong> of your Affiliate Program.<\/li><li>The <strong>&#8220;Status&#8221;<\/strong> option allows you to enable or disable the Affiliate Program.<\/li><li>In the <strong>&#8220;Store View&#8221;<\/strong> section you may select the store view(s) where your Magento 2 Affiliate Program will be executed.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/2_configuration_affiliate_programs_magento_2_google_analytics_v1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/2_configuration_affiliate_programs_magento_2_google_analytics_v1.jpg\" alt=\"2 configuration affiliate programs magento 2 google analytics v1.jpg\"\/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-Step action:<\/p>\n\n\n\n<ol><li><strong>&#8220;Google Analytics API&#8221;<\/strong> allows you to configure the Google Analytics Affiliate Program by following the instructions provided by the system. After you enable your Google Analytics &#8211; <strong>refresh<\/strong> this page.<\/li><li>Once you see the success message, click on the <strong>&#8220;Save&#8221;<\/strong> button.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/3_configuration_affiliate_programs_magento_2_google_analytics_v1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/3_configuration_affiliate_programs_magento_2_google_analytics_v1.jpg\" alt=\"3 configuration affiliate programs magento 2 google analytics v1.jpg\"\/><\/a><\/figure>\n\n\n\n<p>To enable Ecommerce tracking, you need to sign into your Google Analytics account and follow the steps below.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-Step action:<\/p>\n\n\n\n<ol><li>In your Google Analytics account press on the <strong>&#8220;Admin&#8221;<\/strong> button.<\/li><li>Select the <strong>&#8220;View Settings&#8221;<\/strong> option.<\/li><li>Change the Ecommerce tracking switcher to <strong>&#8220;On&#8221;<\/strong> in the <strong>&#8220;Ecommerce Settings&#8221;<\/strong> section. When the change has been done, press the <strong>&#8220;Save&#8221;<\/strong> button to save these settings.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/Google_analytics_enable_ecommerce.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/Google_analytics_enable_ecommerce.png\" alt=\"Google analytics enable ecommerce.png\"\/><\/a><\/figure>\n\n\n\n<h2 id=\"testing-google-analytics-affiliate-program-in-magento-2\">Testing Google Analytics Ecommerce Tracking Code in Magento 2<\/h2>\n\n\n\n<p>In order to test and check whether your Magento 2 Affiliate Program has been installed properly, please check the instructions below.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-Step action:<\/p>\n\n\n\n<ol><li>Create a test order at your Magento 2 frontend and proceed to the Order Success page.<\/li><li>Using your browser&#8217;s Developer Tool (&#8220;F12&#8221; key on your keyboard) open search bar (&#8220;Ctrl+F&#8221; keys on your keyboard) and look for the code which contains <strong>var _orderData = {&#8220;order_id&#8221;: <\/strong><\/li><li>The part of the code will appear.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/5_configuration_affiliate_programs_magento_2_google_analytics_v1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/5_configuration_affiliate_programs_magento_2_google_analytics_v1.jpg\" alt=\"5 configuration affiliate programs magento 2 google analytics v1.jpg\"\/><\/a><\/figure>\n\n\n\n<p><strong>If you locate the part of the code by Google Analytics &#8211; this means that your Google Analytics Affiliate Program has been set up correctly. Now log into your account at google.com and verify that your transactions are being tracked correctly.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating Google Analytics Ecommerce Tracking Program in Magento 2 In this article, you will learn how to create and configure Magento 2 Google Analytics Ecommerce Tracking Affiliate Program. Please, check the following step-by-step guide. Configuring Google Analytics Ecommerce Tracking Program in Magento 2 After you created a new Google Analytics Ecommerce Tracking Affiliate Program, you &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-affiliate-programs\/v3\/integrations\/google-analytics\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Set Up Magento 2 Google Analytics Ecommerce Tracking&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[294],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Set Up Magento 2 Google Analytics Ecommerce Tracking - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"Creating Google Analytics Ecommerce Tracking Program in Magento 2 In this article, you will learn how to create and configure Magento 2 Google Analytics\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/magento-affiliate-programs\/google-analytics-ecommerce\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up Magento 2 Google Analytics Ecommerce Tracking\" \/>\n<meta property=\"og:description\" content=\"Creating Google Analytics Ecommerce Tracking Program in Magento 2 In this article, you will learn how to create and configure Magento 2 Google Analytics\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/magento-affiliate-programs\/google-analytics-ecommerce\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-28T16:01:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-18T15:22:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/05\/2_configuration_affiliate_extension_magento_2_cj_v1.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Set Up Magento 2 Google Analytics Ecommerce Tracking - Plumrocket Documentation","description":"Creating Google Analytics Ecommerce Tracking Program in Magento 2 In this article, you will learn how to create and configure Magento 2 Google Analytics","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:\/\/plumrocket.com\/magento-affiliate-programs\/google-analytics-ecommerce","og_locale":"en_US","og_type":"article","og_title":"How to Set Up Magento 2 Google Analytics Ecommerce Tracking","og_description":"Creating Google Analytics Ecommerce Tracking Program in Magento 2 In this article, you will learn how to create and configure Magento 2 Google Analytics","og_url":"https:\/\/plumrocket.com\/magento-affiliate-programs\/google-analytics-ecommerce","og_site_name":"Plumrocket Documentation","article_published_time":"2020-02-28T16:01:31+00:00","article_modified_time":"2021-10-18T15:22:33+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2020\/05\/2_configuration_affiliate_extension_magento_2_cj_v1.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/magento-affiliate-programs\/google-analytics-ecommerce#primaryimage","inLanguage":"en-US","url":"\/docs\/wp-content\/uploads\/2020\/05\/2_configuration_affiliate_extension_magento_2_cj_v1.jpg","contentUrl":"\/docs\/wp-content\/uploads\/2020\/05\/2_configuration_affiliate_extension_magento_2_cj_v1.jpg"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/magento-affiliate-programs\/google-analytics-ecommerce#webpage","url":"https:\/\/plumrocket.com\/magento-affiliate-programs\/google-analytics-ecommerce","name":"How to Set Up Magento 2 Google Analytics Ecommerce Tracking - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/plumrocket.com\/magento-affiliate-programs\/google-analytics-ecommerce#primaryimage"},"datePublished":"2020-02-28T16:01:31+00:00","dateModified":"2021-10-18T15:22:33+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"Creating Google Analytics Ecommerce Tracking Program in Magento 2 In this article, you will learn how to create and configure Magento 2 Google Analytics","breadcrumb":{"@id":"https:\/\/plumrocket.com\/magento-affiliate-programs\/google-analytics-ecommerce#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/magento-affiliate-programs\/google-analytics-ecommerce"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/magento-affiliate-programs\/google-analytics-ecommerce#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 Affiliate Programs","item":"https:\/\/plumrocket.com\/magento-affiliate-programs"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-affiliate-programs"},{"@type":"ListItem","position":4,"name":"v3","item":"https:\/\/plumrocket.com\/docs\/magento-affiliate-programs\/v3"},{"@type":"ListItem","position":5,"name":"Integrations","item":"https:\/\/plumrocket.com\/docs\/magento-affiliate-programs\/v3\/integrations"},{"@type":"ListItem","position":6,"name":"Google Analytics Affiliate Program Configuration"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","caption":"Plumrocket"},"sameAs":["https:\/\/plumrocket.com\/docs"]}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/220"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":5,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":24869,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/220\/revisions\/24869"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}