How to install Travelpayouts Emerald

Emerald is an AI-powered tool that simplifies, accelerates, and streamlines the process of monetizing travel content.

Emerald analyzes your audience and content with its smart algorithms. It then automatically adds the best-fit affiliate tools where they are most likely to generate profit, making sure you never miss out on monetization opportunities. 

This guide will show you step-by-step how to install and configure Emerald on your website. If you want to find out more about Emerald and its capabilities, please check out this article.

Prerequisites for using Emerald

To install and start using Emerald:

  1. Create a Travelpayouts account and confirm your email.
    If you have not yet registered on Travelpayouts, please visit the registration page and complete all the necessary steps. For more detailed information, you can refer to the How to Join Travelpayouts article.
  2. Create a Project in your Travelpayouts account that will contain the URL of the website where you’re planning to use Emerald. For clear guidelines follow these instructions.
  3. Sign up for Beta by filling out this form. Please note that to join the Beta test, you should have:
    • Blog in the English Language
    • At Least 3,000 Monthly Active Users (MAU)
    • At Least 50 Pages per Blog
  1. After filling out the form your request will be reviewed by our team to make sure you meet the requirements. 

Once your application is reviewed you will receive an email from Travelpayouts confirming that you are now part of the Beta test. The Emerald tab will be unlocked in your Travelpayouts account and you can proceed to installation. 

How to install Emerald on the website

To install and start using Emerald, follow these steps:

1. Open the Emerald section in your Travelpayouts account.

2. On the Install Emerald tab select one of the options in the How to Install section and follow the installation instructions:

Installing via WordPress

  1. Open your website’s WordPress admin dashboard.
  2. In the left pane, click Plugins, and then click Add New.
  1. Type "Head & Footer Code" in the search field.
  1. Find the right plugin (same as in the picture below) and click the Install Now button. This plugin will help you apply Emerald to every page of your blog.
  1. Once the installation is completed, click Activate.
  1. Next, click Plugins in the left pane and then click Installed Plugins.
  2. Find "Head & Footer Code" in the list and click Settings.
  1. Return to the Emerald installation page in your Travelpayouts account and click the Copy Code button to copy the Emerald code.
  1. Return to the Header and Footer Code Settings page and paste the Emerald code in the section called HEAD code:
  1. Scroll to the bottom of the page and click Save changes
  2. Include Emerald's Terms of Use in your Privacy Policy by adding a link or describing the terms in your own words.

Note! 💡 At this point, Emerald will not start adding any affiliate tools to your website. Please continue following the instructions below.

Installing via Google Tag Manager

  1. Open Google Tag Manager and add a new tag. For more instructions check Google documentation.
  2. Select Custom HTML as the tag type.
  3. Copy the Emerald code from your Travelpayouts account by clicking on the Copy code button.
  1. Paste the Emerald code in the HTML field.
  1. Select All Pages in the triggers section:
  1. Save changes.
  2. Include Emerald's Terms of Use in your Privacy Policy by adding a link or describing the terms in your own words.

Note! 💡 At this point, Emerald will not start adding any affiliate tools to your website. Please continue following the instructions below.

Manual Code Setup

  1. Copy the Emerald code from your Travelpayouts account by clicking on the Copy code button.
  2. Add the code in the tag ‘<head>’ on all your pages. If you have a separate HTML file containing a head tag, just paste the code there.
  3. Include Emerald's Terms of Use in your Privacy Policy by adding a link or describing the terms in your own words.

Note! 💡 At this point, Emerald will not start adding any affiliate tools to your website. Please continue following the instructions below.

WP Rocket plugin: How to add Emerald to all JS optimizations

If you are using the WP Rocket plugin, you need to add Emerald to the list of exceptions. We have added detailed instructions below. If you are using any other plugins that cache js-scripts, please contact our support team.

  1. Open the WP Rocket plugin settings.
  2. Navigate to the File Optimization tab.
  3. If in the Javascript Files section, you don’t have any checkboxes active,  you don’t need to do anything, continue to the Next steps after the installation part.
    If you have active checkboxes, please continue with the next point number 4.
  4. Copy the Emerald code from your Travelpayouts account again.
  5. You only need to take the Emerald domain from the code. You can find it here:
  6. Insert the Emerald domain from the code to all Excluded JavaScript Files fields in the Javascript Files section of the WP Rocket plugin:

  7. Click Save changes at the bottom of the page.

Next steps after installation on the website

1. Once you have inserted the code on your website using one of the options above, you need to wait for Emerald to analyze and gather all your blog's data. At this stage, Emerald won't be launched on your website yet.

Note! The process usually takes up to three business days.

2. Once the installation is complete, you will receive an email with the confirmation.

3. The Emerald Performance tab will appear in your Travelpayouts account containing information about the current status of monetization, including websites, and statistics. Statistics will be updated as soon as the affiliate tools placed by Emerald start receiving views, impressions, clicks, and more.

How to manage Emerald Projects and connections to programs

After installation is complete you will see that the Project containing the website where you have installed Emerald is marked with a special tooltip in the Projects list of your Profile.

You can edit everything in the Project except the website URL.

To check which programs are connected to the Emerald Project, go to Programs -> Connected and select the name of the Emerald Project in the filters section at the top of the page.

If you click on the Manage connections button on the program’s page, you will see the Run by Emerald tip next to all Projects that have been automatically connected by Emerald. You won’t be able to disconnect such Projects from this screen. To disconnect Project you need to switch off Emerald.

FAQ about Installation

Can I exclude specific articles and pages from Emerald?

Yes, you can create a blacklist of pages you want to monetize.

To exclude articles:

  1. Go to the Emerald section in your Travelpayouts account.
  2. Open the Settings tab.
  3. In the Exclude specific articles from Emerald enter one by one the URLs of pages that you want to exclude and click the + button to add them to the list.
  4. Once all the pages are added, click the Apply button.

If Emerald has already placed any tools on the excluded pages, they will be removed.

Can I check what was added to the page by Emerald?

Yes! To check what tools and where Emerald has added you should:

  1. Install and launch Emerald
  2. Open the article that you want to check in the browser
  3. Add /?emerald-preview=true at the end of the URL

As a result, you will see the article where the tools placed by Emerald will be highlighted in yellow.

If you don’t see any highlighted tools, that means that on this particular page, Emerald didn’t place any tools.

Can I choose what tools Emerald will add to the page?

No, you can’t. Emerald selects best-fit tools automatically.

I have an affiliate disclaimer on my site, will Emerald add links above it?

No, it will not.

Why do I need to add Emerald to the exceptions in WP Rocket or other plugins that cache js-scripts

If you have a WP Rocket plugin or any other js-scripts cache plugins, they block Emerald from applying new settings and we are not able to make or update the config to monetize the pages on your website. Please follow the steps described in the installation guide for the WP Rocket plugin or contact our support team if you are using any other similar plugin.

How do I check if I installed Emerald correctly?

To check whether or not Emerald works, you can contact our support team.

Can I place the same installation code on several websites?

Yes, that's exactly what you need to do. The Emerald code that you copy from your Travelpayouts account is the same for all websites and projects you have.

To add another website to Emerald, launch the Performance tab of Emerald in your Travelpayouts account, click the Add more button, and simply follow the same installation steps as you did for the first website.

How can I switch off Emerald?

You can disable Emerald in your Travelpayouts account.

  1. Go to the Emerald section and open the Settings tab.
  2. To turn off Emerald, click on the switcher.
  3. The Apply button will become active, click it to save changes.
  4. Confirm your action in the pop-up window.
  5. Emerald will be switched off on all your websites and all previously placed tools will be instantly removed.

You can turn Emerald back on at any time, just go to Emerald — Settings and activate the switcher.