{"id":217,"date":"2020-02-28T16:01:28","date_gmt":"2020-02-28T16:01:28","guid":{"rendered":"http:\/\/wiki2.plumserver.com\/knowledge-base\/magento-affiliate-programs-v2-x-custom-affiliate-program-configuration"},"modified":"2021-09-28T08:38:06","modified_gmt":"2021-09-28T12:38:06","slug":"magento-affiliate-programs-v2-x-custom-affiliate-program-configuration","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-affiliate-programs\/v3\/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> in the <a href=\"https:\/\/plumrocket.com\/magento-affiliate-programs\">Affiliate Programs module for Magento 2<\/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\/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>From the list of the affiliate programs select &#8220;<strong>Custom<\/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\"><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 Program in Magento 2<\/h2>\n\n\n\n<p>After you created new Custom Affiliate Program, 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 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>Please go to the page on which you indicated the JavaScript Library File or Code to be executed.<\/li><li>Using your browser&#8217;s Developer Tool (&#8220;F12&#8221; key on your keyboard) open the search bar (&#8220;Ctrl+F&#8221; keys on your keyboard) and look for the JavaScript Library File or Code which you uploaded for execution.<\/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 you have configured 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 in the Affiliate Programs module for Magento 2. Please, check the following step-by-step guide. Configuring Custom Affiliate Program in Magento 2 After you created new Custom Affiliate Program, you need to configure it. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-affiliate-programs\/v3\/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":"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 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 in the Affiliate\" \/>\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\" \/>\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 in the Affiliate\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/magento-affiliate-programs\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-28T16:01:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-28T12:38:06+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 in the Affiliate","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","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 in the Affiliate","og_url":"https:\/\/plumrocket.com\/magento-affiliate-programs","og_site_name":"Plumrocket Documentation","article_published_time":"2020-02-28T16:01:28+00:00","article_modified_time":"2021-09-28T12:38:06+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#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#webpage","url":"https:\/\/plumrocket.com\/magento-affiliate-programs","name":"How to Set Up Magento 2 Custom Affiliate Tracking - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/plumrocket.com\/magento-affiliate-programs#primaryimage"},"datePublished":"2020-02-28T16:01:28+00:00","dateModified":"2021-09-28T12:38:06+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 in the Affiliate","breadcrumb":{"@id":"https:\/\/plumrocket.com\/magento-affiliate-programs#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/magento-affiliate-programs"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/magento-affiliate-programs#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":"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\/217"}],"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=217"}],"version-history":[{"count":2,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":23562,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/217\/revisions\/23562"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}