Import & Export

AffLoc supports full JSON export and import of your link mappings. This is useful for:

  • Backing up your configuration
  • Migrating mappings between sites
  • Sharing configurations with team members

Exporting Mappings

  1. Go to AffLoc in your admin panel.
  2. Find the Import / Export Mappings section in the sidebar.
  3. Click Export as JSON.
  4. A .json file will download containing all your mappings.

Export File Format

{
  "version": "1.0",
  "exported_at": "2026-03-15 10:30:00",
  "mappings": [
    {
      "slug": "amazon-laptop",
      "country_code": "US",
      "url": "https://amazon.com/dp/...",
      "aff_text": ""
    },
    {
      "slug": "amazon-laptop",
      "country_code": "GB",
      "url": "https://amazon.co.uk/dp/...",
      "aff_text": ""
    }
  ]
}

Importing Mappings

  1. In the Import / Export section, click Choose File.
  2. Select a previously exported .json file.
  3. Click Import.
  4. Existing mappings with the same slug + country combination will be updated; new ones will be created.

Tip: Always export your mappings before making bulk changes, so you can restore if needed.