{"id":580,"date":"2018-04-08T11:51:14","date_gmt":"2018-04-08T09:51:14","guid":{"rendered":"https:\/\/www.affiliationsoftware.com\/page\/?p=580"},"modified":"2018-04-19T17:28:51","modified_gmt":"2018-04-19T15:28:51","slug":"create-perfect-tracking-links","status":"publish","type":"post","link":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/","title":{"rendered":"Create perfect tracking links with your .htaccess file"},"content":{"rendered":"<h2>How to create perfect tracking links with .htaccess file<\/h2>\n<h4>AffiliationSoftware allows you to choose between 7 different Ref-link formats. But if this is not enough, here is a short tutorial that explains how to create perfect tracking links, seo-friendly and easy to remember!<\/h4>\n<p><!--more--><\/p>\n<hr \/>\n<h5>Generate the affiliate tracking link in AffiliationSoftware<\/h5>\n<p>To create perfect tracking links you first need to access the affiliate panel and go to the Banners &amp; Links page. Then select the desired link and copy it.<\/p>\n<p>You can also create multiple links for the same affiliate by assigning a different <a href=\"https:\/\/www.affiliationsoftware.com\/page\/plugins\/\">channel<\/a> to each one, the statistics will be split accordingly.<\/p>\n<pre>Affiliate panel &gt; Banners &amp; Links &gt; Show \/ hide banner code<\/pre>\n<p><a class=\"fancybox\" href=\"https:\/\/www.affiliationsoftware.com\/include\/img3\/en-banner2.png\"><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.affiliationsoftware.com\/include\/img3\/en-banner2.png\" alt=\"Create perfect tracking links\" \/><\/a><\/p>\n<hr \/>\n<h5>Customize the tracking link with the .htaccess file<\/h5>\n<p>With the .htaccess file it is possible to customize any tracking link by redirecting it with one of your choice.<\/p>\n<p>Here&#8217;s an example. We want to create beautiful links to our best affiliates and some of our internal campaigns, these:<\/p>\n<pre>https:\/\/www.affiliationsoftware.com\/jane\r\nhttps:\/\/www.affiliationsoftware.com\/adwords\r\nhttps:\/\/www.affiliationsoftware.com\/social<\/pre>\n<p>To track sales and measure the results achieved on these links we need to make them tracking links. To do this, we can redirect each link to an existing ref-links of our <a href=\"https:\/\/www.affiliationsoftware.com\/page\/affiliates\/\">affiliate program<\/a>.<\/p>\n<p>In this way, when &#8220;https:\/\/www.affiliationsoftware.com\/social&#8221; is clicked, it will actually be redirecting to the ref-link of a specific affiliate &#8220;https:\/\/affiliation.software\/demo\/c?a=1&amp;b=33950&amp;c=social&#8221;.<\/p>\n<hr \/>\n<h5>Example of a .htaccess file with custom tracking links<\/h5>\n<p>One of the easiest ways to do the above is to edit the .htaccess file of your website.<\/p>\n<p>Just open the .htaccess file and add this code, then edit the highlighted parts as explained below:<\/p>\n<pre># affiliationsoftware.com - custom tracking links\r\n# explanation:\r\n# RewriteRule ^<span style=\"color: #808000;\">DESIRED_LINK_NAME<\/span>$ <span style=\"color: #808000;\">COMPLETE_REF_LINK<\/span>\u00a0[L]\r\nRewriteEngine On\r\nRewriteRule ^jane$ https:\/\/affiliation.software\/demo\/c?a=123&amp;b=33950 [L]\r\nRewriteRule ^adwords$ https:\/\/affiliation.software\/demo\/c?a=1&amp;b=33950&amp;c=adwords [L]\r\nRewriteRule ^social$ https:\/\/affiliation.software\/demo\/c?a=1&amp;b=33950&amp;c=social [L]<\/pre>\n<p>The only disadvantage is that you have to insert the links manually, so we recommend you to only add the best links, those that are really worth monitoring. We use this technique to monitor our <a href=\"https:\/\/adwords.google.com\" target=\"_blank\" rel=\"noopener\">adwords<\/a>, ppc and social campaigns.<\/p>\n<p>An advantage is surely that you will be able to modify the ref-link and the desintation url without asking the affiliates to change their links. At the same way if those rules are removed from the .htaccess file the links will no longer work, and would most likely return a 404 error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to create perfect tracking links with .htaccess file AffiliationSoftware allows you to choose between 7 different Ref-link formats. But if this is not enough, here is a short tutorial that explains how to create perfect tracking links, seo-friendly and &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[78,28,26],"class_list":["post-580","post","type-post","status-publish","format-standard","hentry","category-blog","tag-htaccess","tag-link","tag-links"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to create perfect tracking links with your .htaccess file<\/title>\n<meta name=\"description\" content=\"AffiliationSoftware allows you to choose between 7 different Ref-link formats, but if this is not enough, here is a short tutorial that explains how to create perfect tracking links, seo-friendly and easy to remember!\" \/>\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.affiliationsoftware.com\/page\/create-perfect-tracking-links\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create perfect tracking links with your .htaccess file\" \/>\n<meta property=\"og:description\" content=\"AffiliationSoftware allows you to choose between 7 different Ref-link formats, but if this is not enough, here is a short tutorial that explains how to create perfect tracking links, seo-friendly and easy to remember!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/\" \/>\n<meta property=\"og:site_name\" content=\"AffiliationSoftware.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/affiliationsoftware\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-08T09:51:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-19T15:28:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.affiliationsoftware.com\/include\/img3\/en-banner2.png\" \/>\n<meta name=\"author\" content=\"AffiliationSoftware\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@affiliationsoft\" \/>\n<meta name=\"twitter:site\" content=\"@affiliationsoft\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"AffiliationSoftware\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/\"},\"author\":{\"name\":\"AffiliationSoftware\",\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/#\\\/schema\\\/person\\\/4f411a107e497afcca83d9888c346321\"},\"headline\":\"Create perfect tracking links with your .htaccess file\",\"datePublished\":\"2018-04-08T09:51:14+00:00\",\"dateModified\":\"2018-04-19T15:28:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/\"},\"wordCount\":362,\"publisher\":{\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/include\\\/img3\\\/en-banner2.png\",\"keywords\":[\"htaccess\",\"link\",\"links\"],\"articleSection\":[\"AffiliationSoftware's Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/\",\"url\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/\",\"name\":\"How to create perfect tracking links with your .htaccess file\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/include\\\/img3\\\/en-banner2.png\",\"datePublished\":\"2018-04-08T09:51:14+00:00\",\"dateModified\":\"2018-04-19T15:28:51+00:00\",\"description\":\"AffiliationSoftware allows you to choose between 7 different Ref-link formats, but if this is not enough, here is a short tutorial that explains how to create perfect tracking links, seo-friendly and easy to remember!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/include\\\/img3\\\/en-banner2.png\",\"contentUrl\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/include\\\/img3\\\/en-banner2.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/create-perfect-tracking-links\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create perfect tracking links with your .htaccess file\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/#website\",\"url\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/\",\"name\":\"AffiliationSoftware.com\",\"description\":\"Start your own Affiliate Program\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/#organization\",\"name\":\"AffiliationSoftware.com\",\"url\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/wp-content\\\/uploads\\\/logo-social.jpg\",\"contentUrl\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/wp-content\\\/uploads\\\/logo-social.jpg\",\"width\":250,\"height\":250,\"caption\":\"AffiliationSoftware.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/affiliationsoftware\",\"https:\\\/\\\/x.com\\\/affiliationsoft\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/affiliationsoftwarecom\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.affiliationsoftware.com\\\/page\\\/#\\\/schema\\\/person\\\/4f411a107e497afcca83d9888c346321\",\"name\":\"AffiliationSoftware\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/02ea3108a7792a4bfb3d89b37daa439f1d77e638b5bb522c2075b94a0a293310?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/02ea3108a7792a4bfb3d89b37daa439f1d77e638b5bb522c2075b94a0a293310?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/02ea3108a7792a4bfb3d89b37daa439f1d77e638b5bb522c2075b94a0a293310?s=96&d=mm&r=g\",\"caption\":\"AffiliationSoftware\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to create perfect tracking links with your .htaccess file","description":"AffiliationSoftware allows you to choose between 7 different Ref-link formats, but if this is not enough, here is a short tutorial that explains how to create perfect tracking links, seo-friendly and easy to remember!","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.affiliationsoftware.com\/page\/create-perfect-tracking-links\/","og_locale":"en_US","og_type":"article","og_title":"How to create perfect tracking links with your .htaccess file","og_description":"AffiliationSoftware allows you to choose between 7 different Ref-link formats, but if this is not enough, here is a short tutorial that explains how to create perfect tracking links, seo-friendly and easy to remember!","og_url":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/","og_site_name":"AffiliationSoftware.com","article_publisher":"https:\/\/www.facebook.com\/affiliationsoftware","article_published_time":"2018-04-08T09:51:14+00:00","article_modified_time":"2018-04-19T15:28:51+00:00","og_image":[{"url":"https:\/\/www.affiliationsoftware.com\/include\/img3\/en-banner2.png","type":"","width":"","height":""}],"author":"AffiliationSoftware","twitter_card":"summary_large_image","twitter_creator":"@affiliationsoft","twitter_site":"@affiliationsoft","twitter_misc":{"Written by":"AffiliationSoftware","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/#article","isPartOf":{"@id":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/"},"author":{"name":"AffiliationSoftware","@id":"https:\/\/www.affiliationsoftware.com\/page\/#\/schema\/person\/4f411a107e497afcca83d9888c346321"},"headline":"Create perfect tracking links with your .htaccess file","datePublished":"2018-04-08T09:51:14+00:00","dateModified":"2018-04-19T15:28:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/"},"wordCount":362,"publisher":{"@id":"https:\/\/www.affiliationsoftware.com\/page\/#organization"},"image":{"@id":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/#primaryimage"},"thumbnailUrl":"https:\/\/www.affiliationsoftware.com\/include\/img3\/en-banner2.png","keywords":["htaccess","link","links"],"articleSection":["AffiliationSoftware's Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/","url":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/","name":"How to create perfect tracking links with your .htaccess file","isPartOf":{"@id":"https:\/\/www.affiliationsoftware.com\/page\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/#primaryimage"},"image":{"@id":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/#primaryimage"},"thumbnailUrl":"https:\/\/www.affiliationsoftware.com\/include\/img3\/en-banner2.png","datePublished":"2018-04-08T09:51:14+00:00","dateModified":"2018-04-19T15:28:51+00:00","description":"AffiliationSoftware allows you to choose between 7 different Ref-link formats, but if this is not enough, here is a short tutorial that explains how to create perfect tracking links, seo-friendly and easy to remember!","breadcrumb":{"@id":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/#primaryimage","url":"https:\/\/www.affiliationsoftware.com\/include\/img3\/en-banner2.png","contentUrl":"https:\/\/www.affiliationsoftware.com\/include\/img3\/en-banner2.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.affiliationsoftware.com\/page\/create-perfect-tracking-links\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.affiliationsoftware.com\/page\/"},{"@type":"ListItem","position":2,"name":"Create perfect tracking links with your .htaccess file"}]},{"@type":"WebSite","@id":"https:\/\/www.affiliationsoftware.com\/page\/#website","url":"https:\/\/www.affiliationsoftware.com\/page\/","name":"AffiliationSoftware.com","description":"Start your own Affiliate Program","publisher":{"@id":"https:\/\/www.affiliationsoftware.com\/page\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.affiliationsoftware.com\/page\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.affiliationsoftware.com\/page\/#organization","name":"AffiliationSoftware.com","url":"https:\/\/www.affiliationsoftware.com\/page\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.affiliationsoftware.com\/page\/#\/schema\/logo\/image\/","url":"https:\/\/www.affiliationsoftware.com\/page\/wp-content\/uploads\/logo-social.jpg","contentUrl":"https:\/\/www.affiliationsoftware.com\/page\/wp-content\/uploads\/logo-social.jpg","width":250,"height":250,"caption":"AffiliationSoftware.com"},"image":{"@id":"https:\/\/www.affiliationsoftware.com\/page\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/affiliationsoftware","https:\/\/x.com\/affiliationsoft","https:\/\/www.youtube.com\/c\/affiliationsoftwarecom"]},{"@type":"Person","@id":"https:\/\/www.affiliationsoftware.com\/page\/#\/schema\/person\/4f411a107e497afcca83d9888c346321","name":"AffiliationSoftware","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/02ea3108a7792a4bfb3d89b37daa439f1d77e638b5bb522c2075b94a0a293310?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/02ea3108a7792a4bfb3d89b37daa439f1d77e638b5bb522c2075b94a0a293310?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/02ea3108a7792a4bfb3d89b37daa439f1d77e638b5bb522c2075b94a0a293310?s=96&d=mm&r=g","caption":"AffiliationSoftware"}}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.affiliationsoftware.com\/page\/wp-json\/wp\/v2\/posts\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.affiliationsoftware.com\/page\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.affiliationsoftware.com\/page\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.affiliationsoftware.com\/page\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.affiliationsoftware.com\/page\/wp-json\/wp\/v2\/comments?post=580"}],"version-history":[{"count":0,"href":"https:\/\/www.affiliationsoftware.com\/page\/wp-json\/wp\/v2\/posts\/580\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.affiliationsoftware.com\/page\/wp-json\/wp\/v2\/media?parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.affiliationsoftware.com\/page\/wp-json\/wp\/v2\/categories?post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.affiliationsoftware.com\/page\/wp-json\/wp\/v2\/tags?post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}