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
- Go to AffLoc in your admin panel.
- Find the Import / Export Mappings section in the sidebar.
- Click Export as JSON.
- A
.jsonfile 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
- In the Import / Export section, click Choose File.
- Select a previously exported
.jsonfile. - Click Import.
- 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.