A tour listing can answer a question that travel writing often leaves open: what can I actually book while I’m there? PI Viator Affiliate adds Viator experiences to WordPress pages so readers can move from planning an itinerary to exploring bookable options. This guide takes you from installation through the first test listing. By the end, you’ll know which credentials you need, what a successful connection looks like, and what to check before you send real visitors to Viator.
Follow the installation steps with the plugin and compare its licence editions on the PI Viator Affiliate WordPress plugin page.
Prepare the site and choose an edition
Start with a WordPress installation you can administer. The plugin specifies WordPress 6.4 or later and PHP 8.0 or later. If you already run a travel site, use a staging copy or a private test page for the first layout checks. A staging domain may need its own licence activation, so confirm how your licence applies before registering multiple URLs. Choose an edition based on the domains you need to activate and whether you want scheduled cache warming. Standard, Business and Developer use the same core listing tools. Business and Developer add warming for selected page assignments. A plugin licence and Viator Partner API access are separate requirements.
Install the plugin and activate the site licence
In WordPress, open Plugins, choose Add New Plugin and use Upload Plugin to install the supplied ZIP. Activate the plugin, then open PI Viator Affiliate from the admin menu. In License Key, enter your PI licence and save it. Use Activate License to register the current domain. Verify that the panel shows an active licence and the expected edition. A stored key alone only confirms that WordPress saved it. Domain activation is what enables licensed searches. When moving a site, review the licence state for the old and new domains. Use the product support channel if a domain still occupies a slot after a migration.
Save the Viator token and test the connection
Open API Settings and enter the token issued for your account. Select Production for a production token or Sandbox for a sandbox token. Choose your default currency and language. If you use a campaign identifier, enter it here so listings can inherit it. Save the form before you click Test API Key. The test uses the saved settings and reports its result on the same tab. When the key field looks empty after saving, check the saved-key message. The form hides the credential and preserves it when you leave that field blank. Enter a replacement explicitly when you rotate a key, or use Remove API Key to clear it.
Follow one real booking path
Go to Shortcodes & Widget and open Shortcode Builder. Start with a destination ID appropriate for a guide you already publish. Set a small result count, leave the optional filters open and run Search & Preview. Read the cards as a traveller would. A result named after the city may start outside it, and a tour that covers several suburbs may still be a useful option for a wider guide. Paste the generated shortcode into a WordPress Shortcode block on a test page. View the published result, inspect its heading and pricing labels, and follow one booking link to make sure it reaches the expected experience on Viator.
Troubleshoot the first connection in order
If the plugin reports that the licence is inactive, return to License Key and resolve that issue first. If Viator responds with HTTP 401, check the token and environment together, then save before retesting. HTTP 403 can point to access for the selected endpoint or environment. An empty result can occur even with a working connection, especially when several filters are combined. Try a broader query before changing credentials. When requests are paused after a provider limit, allow the cooldown to finish. Repeatedly flushing caches can add traffic without restoring endpoint access. Save the exact error text for support and omit credentials from any screenshots.
Plan your first three placements
Pick a city guide that attracts readers who are already planning a visit. Place a broad listing after the useful travel advice so the tours feel like a next step. Choose a second page focused on an activity, such as boat trips, and give it its own filtered query. Use a third page to test a compact listing on mobile, where long descriptions and several columns can overwhelm the screen. Start with those placements before enabling a shared grid across an entire content type. Inspect the results as a logged-out reader and confirm that the affiliate disclosure and booking links are visible.
Keep the setup repeatable
Record the destination IDs, default currency, campaign convention and placement method you chose. Keep the licence and API credentials in your usual secret storage instead of this editorial record. Give each page a purpose and list the search options that support it. That makes it easier to investigate a changed listing months later, when a guide has a new editor or a campaign has been renamed. Once the first pages are working, you can build dedicated tour pages, attach listings to existing guides, or use automatic placement for a carefully selected set of pages.







