{"id":20,"date":"2026-03-19T23:11:45","date_gmt":"2026-03-19T23:11:45","guid":{"rendered":"https:\/\/affloc.com\/docs\/adding-link-mappings\/"},"modified":"2026-03-19T23:11:45","modified_gmt":"2026-03-19T23:11:45","slug":"adding-link-mappings","status":"publish","type":"docs","link":"https:\/\/affloc.com\/docs\/adding-link-mappings\/","title":{"rendered":"Adding Link Mappings"},"content":{"rendered":"<h2>Adding Link Mappings<\/h2>\n<p>Link mappings are the core data structure of AffLoc. Each mapping connects a <strong>slug<\/strong> + <strong>country<\/strong> combination to a specific <strong>URL<\/strong>.<\/p>\n<h3>Create a New Mapping<\/h3>\n<ol>\n<li>Navigate to <strong>AffLoc<\/strong> in your WordPress admin sidebar.<\/li>\n<li>Fill in the <strong>Add New Mapping<\/strong> form:\n<ul>\n<li><strong>Offer Slug:<\/strong> A short identifier (e.g., <code>amazon-laptop<\/code>). Use lowercase letters, numbers, and hyphens.<\/li>\n<li><strong>Country:<\/strong> Start typing a country name or code. Select from the autocomplete dropdown. Use <code>default<\/code> for the fallback link.<\/li>\n<li><strong>Affiliate Text:<\/strong> (Optional) Custom link text for this specific country mapping.<\/li>\n<li><strong>Affiliate URL:<\/strong> The full URL for this country (e.g., <code>https:\/\/amazon.co.uk\/dp\/...<\/code>).<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Save Mapping<\/strong>.<\/li>\n<\/ol>\n<h3>Best Practices<\/h3>\n<ul>\n<li><strong>Always add a default mapping<\/strong> \u2014 This is the fallback URL for countries you haven&#8217;t specifically mapped.<\/li>\n<li><strong>Use consistent slug names<\/strong> \u2014 Once you use a slug in your content, changing it means updating all shortcodes.<\/li>\n<li><strong>Group related products<\/strong> \u2014 Use descriptive slugs like <code>vpn-nordvpn<\/code>, <code>vpn-expressvpn<\/code> to keep things organized.<\/li>\n<\/ul>\n<div class=\"docs-warning-box\">\n<p><strong>Free version limit:<\/strong> The free version allows up to 20 link mappings. Upgrade to Pro for unlimited mappings.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to create affiliate link mappings in the AffLoc admin panel.<\/p>\n","protected":false},"featured_media":0,"menu_order":1,"template":"","doc_category":[5],"class_list":["post-20","docs","type-docs","status-publish","hentry","doc_category-admin-panel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Adding Link Mappings - affloc.com<\/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:\/\/affloc.com\/docs\/adding-link-mappings\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding Link Mappings - affloc.com\" \/>\n<meta property=\"og:description\" content=\"How to create affiliate link mappings in the AffLoc admin panel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/affloc.com\/docs\/adding-link-mappings\/\" \/>\n<meta property=\"og:site_name\" content=\"affloc.com\" \/>\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:\/\/affloc.com\/docs\/adding-link-mappings\/\",\"url\":\"https:\/\/affloc.com\/docs\/adding-link-mappings\/\",\"name\":\"Adding Link Mappings - affloc.com\",\"isPartOf\":{\"@id\":\"https:\/\/affloc.com\/#website\"},\"datePublished\":\"2026-03-19T23:11:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/affloc.com\/docs\/adding-link-mappings\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/affloc.com\/docs\/adding-link-mappings\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/affloc.com\/docs\/adding-link-mappings\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/affloc.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation\",\"item\":\"https:\/\/affloc.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Adding Link Mappings\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/affloc.com\/#website\",\"url\":\"https:\/\/affloc.com\/\",\"name\":\"affloc.com\",\"description\":\"Stop losing affiliate commissions to international traffic. Geotarget your links automatically with AffLoc.\",\"publisher\":{\"@id\":\"https:\/\/affloc.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/affloc.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/affloc.com\/#organization\",\"name\":\"AffLoc\",\"url\":\"https:\/\/affloc.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/affloc.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/affloc.com\/wp-content\/uploads\/2026\/03\/affloc-icon-300x300-1.png\",\"contentUrl\":\"https:\/\/affloc.com\/wp-content\/uploads\/2026\/03\/affloc-icon-300x300-1.png\",\"width\":300,\"height\":300,\"caption\":\"AffLoc\"},\"image\":{\"@id\":\"https:\/\/affloc.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adding Link Mappings - affloc.com","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:\/\/affloc.com\/docs\/adding-link-mappings\/","og_locale":"en_US","og_type":"article","og_title":"Adding Link Mappings - affloc.com","og_description":"How to create affiliate link mappings in the AffLoc admin panel.","og_url":"https:\/\/affloc.com\/docs\/adding-link-mappings\/","og_site_name":"affloc.com","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/affloc.com\/docs\/adding-link-mappings\/","url":"https:\/\/affloc.com\/docs\/adding-link-mappings\/","name":"Adding Link Mappings - affloc.com","isPartOf":{"@id":"https:\/\/affloc.com\/#website"},"datePublished":"2026-03-19T23:11:45+00:00","breadcrumb":{"@id":"https:\/\/affloc.com\/docs\/adding-link-mappings\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/affloc.com\/docs\/adding-link-mappings\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/affloc.com\/docs\/adding-link-mappings\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/affloc.com\/"},{"@type":"ListItem","position":2,"name":"Documentation","item":"https:\/\/affloc.com\/docs\/"},{"@type":"ListItem","position":3,"name":"Adding Link Mappings"}]},{"@type":"WebSite","@id":"https:\/\/affloc.com\/#website","url":"https:\/\/affloc.com\/","name":"affloc.com","description":"Stop losing affiliate commissions to international traffic. Geotarget your links automatically with AffLoc.","publisher":{"@id":"https:\/\/affloc.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/affloc.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/affloc.com\/#organization","name":"AffLoc","url":"https:\/\/affloc.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/affloc.com\/#\/schema\/logo\/image\/","url":"https:\/\/affloc.com\/wp-content\/uploads\/2026\/03\/affloc-icon-300x300-1.png","contentUrl":"https:\/\/affloc.com\/wp-content\/uploads\/2026\/03\/affloc-icon-300x300-1.png","width":300,"height":300,"caption":"AffLoc"},"image":{"@id":"https:\/\/affloc.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/affloc.com\/wp-json\/wp\/v2\/docs\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/affloc.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/affloc.com\/wp-json\/wp\/v2\/types\/docs"}],"version-history":[{"count":0,"href":"https:\/\/affloc.com\/wp-json\/wp\/v2\/docs\/20\/revisions"}],"wp:attachment":[{"href":"https:\/\/affloc.com\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/affloc.com\/wp-json\/wp\/v2\/doc_category?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}