When two travel sites share a Viator account, they may need different destination strategies, currencies and campaign identifiers. PI Viator Affiliate gives each WordPress site its own API configuration. A sensible setup uses that flexibility to answer practical questions: which website should show which experiences, where does a reader go when they click, and how will the team distinguish traffic from a region guide and an activity page? This walkthrough focuses on API Settings and a repeatable way to verify the links before promoting a listing.
See the PI Viator Affiliate WordPress plugin for the complete API settings workflow and campaign controls.
Establish a baseline query
Use a destination you know well and an unfiltered search that is likely to show results. Save the token and its environment in API Settings, then run Test API Key. A successful test gives you a baseline against which to compare future errors. Follow it with Search & Preview for the destination you actually plan to advertise. Connection testing and query testing answer different questions. The former checks the saved credentials against a request. The latter shows whether specific filters and the account’s available experience inventory produce the results you want for the page. Keep one simple baseline query in an internal note.
Match the currency and language to the audience
Set Default Currency and Default Language for the site’s main readership. For a California visitor guide, USD is a reasonable starting choice. For a site focused on Australian readers planning a local weekend, AUD may be more appropriate. The currency label helps a traveller interpret a starting price when they compare options. Check that the preview and actual card show the intended currency before publishing. A listing can override the defaults where a page serves a different audience. Use overrides deliberately so edits to a general site setting do not unexpectedly change a specialist guide you intend to keep in another currency.
Set a default campaign for each property
Enter a campaign in the Default Campaign field, using a short identifier that your team will recognise in reporting. For example, a publisher could use california-guide for one site and sydney-weekends for another. Keep a naming convention that differentiates a site-level default from a focused campaign such as harbour-cruises-guide. The plugin sends a configured campaign value with eligible requests and preserves the booking URL returned by Viator. Use the returned URL when checking the listing. Rebuilding links or stripping their query parameters can discard information your affiliate setup relies on. Campaign codes organise traffic, while Viator handles attribution and booking.
Verify what visitors actually click
Preview a live listing, then open the published page in a fresh browser session. Pick a card, follow the booking button and check that the destination on Viator matches the product title. The booking link should open in a new tab so the visitor can return to the guide. Inspect the anchor’s link before clicking if you need to compare tracking values. Keep any URL you record free of personal or sensitive information. After you change a campaign, retest the same page and compare the actual links there. A cached page from outside the plugin can keep showing old HTML until it expires or is purged.
Keep credentials out of editorial tools
The API token belongs in API Settings or in the developer configuration intended for credentials. Shortcodes, widget fields, posts and the visual page builder should carry the search and display options. Editors can work with those settings without pasting a token into an article. The plugin encrypts a saved token using WordPress authentication salts and includes it in requests from the server. A saved token takes priority over the optional configuration constant. After a site move that changes those salts, plan to enter the token again and check the connection. Never paste credentials into a support ticket or a screenshot.
Read errors in context
A successful connection followed by an empty search is a cue to examine search criteria. Remove the newest filter and see if results return. Credential errors are a different path: confirm which token is saved and whether it belongs to the selected environment. If Viator returns a rate-limit response, wait for the applicable cooldown. A separate question is whether the card has an address. That field depends on location data and account access to enrichment endpoints, so a working search can still render a card without a meeting point. Keep these checks separate so a missing field does not lead to needless token rotation.
Make campaign reporting actionable
Keep a short map of key pages and campaign identifiers. For homepages, a site-wide campaign may be enough. For an editorial feature with several related articles, a consistent campaign can make it easier to analyse that series. Use placement and page context to interpret the data alongside your Viator reporting. A guide with plenty of traffic and few clicks may have a placement problem, a mismatch between the article and the tours, or a weak introduction to the listing. Use real observations to adjust one of those elements at a time. It takes fewer changes to learn something useful when your defaults are already clear.







