{"id":21112,"date":"2021-07-08T17:02:57","date_gmt":"2021-07-08T14:02:57","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=21112"},"modified":"2021-09-28T09:12:47","modified_gmt":"2021-09-28T13:12:47","slug":"magento-affiliate-programs-v2-x-custom-affiliate-program-configuration-2","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-affiliate-programs\/v2\/integrations\/custom","title":{"rendered":"How to Set Up Magento 2 Custom Affiliate Tracking"},"content":{"rendered":"\n<h2 id=\"managing-custom-affiliate-program-in-magento-2\">Creating Custom Affiliate Program in Magento 2<\/h2>\n\n\n\n<p>In this article, you will learn how to create and configure your <strong>Custom Affiliate Program<\/strong> <a href=\"\/magento-affiliate-programs\">Magento 2 Affiliate Programs plugin<\/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><strong>Go to the &#8220;Plumrocket&#8221; tab in the main menu.<\/strong><\/li><li><strong>Navigate to the &#8220;Affiliate Programs&#8221; tab &gt; select &#8220;Manage Affiliate Programs&#8221;.<\/strong><\/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><strong>Press on the &#8220;Add New Affiliate&#8221; button.<\/strong><\/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_extension_magento_2_v1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/3_configuration_affiliate_extension_magento_2_v1.jpg\" alt=\"3 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><strong>From the list of the affiliate programs select &#8220;Custom&#8221;.<\/strong><\/li><li><strong>Press the &#8220;Continue&#8221; button.<\/strong><\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/1_configuration_affiliate_program_magento_2_custom_v1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/1_configuration_affiliate_program_magento_2_custom_v1.jpg\" alt=\"1 configuration affiliate program magento 2 custom v1.jpg\"\/><\/a><\/figure>\n\n\n\n<h2 id=\"configuring-custom-affiliate-program-in-magento-2\">Configuring Custom Affiliate Tracking Code in Magento 2<\/h2>\n\n\n\n<p>After you created new &#8220;Custom Affiliate Program&#8221;, 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_program_magento_2_custom_v1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/2_configuration_affiliate_program_magento_2_custom_v1.jpg\" alt=\"2 configuration affiliate program magento 2 custom 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>The <strong>&#8220;JavaScript Library File&#8221;<\/strong> option allows you to upload the JavaScript Library File which to be executed.<\/li><li>The &#8221; <strong>Code&#8221;<\/strong> field allows you to insert the code which you need to execute.<\/li><li>The <strong>&#8220;Execute On&#8221;<\/strong> option allows you to select the page(s) where you want the JavaScript Library File and Code to be executed.<\/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_program_magento_2_custom_v1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/3_configuration_affiliate_program_magento_2_custom_v1.jpg\" alt=\"3 configuration affiliate program magento 2 custom 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>Repeat the steps 1-3 from the previous screenshot in this section, if necessary.<\/li><li>Repeat the steps 1-3 from the previous screenshot in this section, if necessary.<\/li><li>Press on the <strong>&#8220;Save&#8221;<\/strong> button, when all the changes have been performed.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/docs\/wp-content\/uploads\/2020\/05\/3a_configuration_affiliate_program_magento_2_custom_v1.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"\/docs\/wp-content\/uploads\/2020\/05\/3a_configuration_affiliate_program_magento_2_custom_v1.jpg\" alt=\"3a configuration affiliate program magento 2 custom v1.jpg\"\/><\/a><\/figure>\n\n\n\n<h3>List of available variables<\/h3>\n\n\n\n<figure class=\"wp-block-table regular-table\"><table><tbody><tr><th>Variable<\/th><th>Description<\/th><\/tr><tr><td><strong>order_subtotal<\/strong><\/td><td>Order Subtotal<\/td><\/tr><tr><td><strong>order_id<\/strong><\/td><td>Order ID<\/td><\/tr><tr><td><strong>order_date<\/strong><\/td><td>Order Date<\/td><\/tr><tr><td><strong>order_coupon_code<\/strong><\/td><td>Coupon Code used for Order<\/td><\/tr><tr><td><strong>order_discount_amount<\/strong><\/td><td>Discount Amount in the Order<\/td><\/tr><tr><td><strong>order_tax_amount<\/strong><\/td><td>Tax Amount in the Order<\/td><\/tr><tr><td><strong>order_currency_code<\/strong><\/td><td>Currency Symbol in the Order<\/td><\/tr><tr><td><strong>customer_email<\/strong><\/td><td>Customer Email Address<\/td><\/tr><tr><td><strong>customer_name<\/strong><\/td><td>Customer Name<\/td><\/tr><tr><td><strong>delivery_country<\/strong><\/td><td>Country of Delivery<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"testing-custom-affiliate-program-in-magento-2\">Testing Custom Affiliate Program 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><strong>Please go to the page on which you indicated the JavaScript Library File or Code to be executed.<\/strong><\/li><li><strong>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 JavaScript Library File or Code which you uploaded for execution.<\/strong><\/li><\/ol>\n<\/div><\/div>\n\n\n\n<p><strong>Once you locate the JavaScript Library File or Code which you uploaded for execution &#8211; this means that your Custom Affiliate Program has been set up correctly. Now log into your account at Affiliate Network and verify that your transactions are being tracked correctly.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating Custom Affiliate Program in Magento 2 In this article, you will learn how to create and configure your Custom Affiliate Program Magento 2 Affiliate Programs plugin. Please, check the following step-by-step guide. Configuring Custom Affiliate Tracking Code in Magento 2 After you created new &#8220;Custom Affiliate Program&#8221;, you need to configure it. Please, follow &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-affiliate-programs\/v2\/integrations\/custom\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Set Up Magento 2 Custom Affiliate Tracking&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","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":[292],"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 Custom Affiliate Tracking - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"Creating Custom Affiliate Program in Magento 2 In this article, you will learn how to create and configure your Custom Affiliate Program Magento 2\" \/>\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\/docs\/magento-affiliate-programs\/v3\/integrations\/custom\" \/>\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 Custom Affiliate Tracking\" \/>\n<meta property=\"og:description\" content=\"Creating Custom Affiliate Program in Magento 2 In this article, you will learn how to create and configure your Custom Affiliate Program Magento 2\" \/>\n<meta property=\"og:url\" content=\"\/docs\/magento-affiliate-programs\/v3\/integrations\/custom\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-08T14:02:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-28T13:12:47+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 Custom Affiliate Tracking - Plumrocket Documentation","description":"Creating Custom Affiliate Program in Magento 2 In this article, you will learn how to create and configure your Custom Affiliate Program Magento 2","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\/docs\/magento-affiliate-programs\/v3\/integrations\/custom","og_locale":"en_US","og_type":"article","og_title":"How to Set Up Magento 2 Custom Affiliate Tracking","og_description":"Creating Custom Affiliate Program in Magento 2 In this article, you will learn how to create and configure your Custom Affiliate Program Magento 2","og_url":"\/docs\/magento-affiliate-programs\/v3\/integrations\/custom","og_site_name":"Plumrocket Documentation","article_published_time":"2021-07-08T14:02:57+00:00","article_modified_time":"2021-09-28T13:12:47+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":"\/docs\/magento-affiliate-programs\/v3\/integrations\/custom#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":"\/docs\/magento-affiliate-programs\/v3\/integrations\/custom#webpage","url":"\/docs\/magento-affiliate-programs\/v3\/integrations\/custom","name":"How to Set Up Magento 2 Custom Affiliate Tracking - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"\/docs\/magento-affiliate-programs\/v3\/integrations\/custom#primaryimage"},"datePublished":"2021-07-08T14:02:57+00:00","dateModified":"2021-09-28T13:12:47+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"Creating Custom Affiliate Program in Magento 2 In this article, you will learn how to create and configure your Custom Affiliate Program Magento 2","breadcrumb":{"@id":"\/docs\/magento-affiliate-programs\/v3\/integrations\/custom#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["\/docs\/magento-affiliate-programs\/v3\/integrations\/custom"]}]},{"@type":"BreadcrumbList","@id":"\/docs\/magento-affiliate-programs\/v3\/integrations\/custom#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":"v2","item":"https:\/\/plumrocket.com\/docs\/magento-affiliate-programs\/v2"},{"@type":"ListItem","position":5,"name":"Integrations","item":"https:\/\/plumrocket.com\/docs\/magento-affiliate-programs\/v2\/integrations"},{"@type":"ListItem","position":6,"name":"Custom 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\/21112"}],"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=21112"}],"version-history":[{"count":3,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/21112\/revisions"}],"predecessor-version":[{"id":24646,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/21112\/revisions\/24646"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=21112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=21112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=21112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}