# WordPress Plugin

advanced expert team enterprise

WordPress Plugin connects Keitaro to remote WP created websites our plugin. When you click on a site domain, it performs actions, and settings of the campaign which you connect to the site. Optionally, it performs a dynamic content spoofing without the visible redirect.

WARNING

Important

  1. The WordPress plugin only connects to sites that are hosted on third-party webhosting services.

  2. Do not upload a website created via WordPress as a local landing page in Keitaro.

  3. When working with WP plugin, the campaign tracking link is WP created website domain. The traffic path on working with WP Plugin: a site with the plugin code -> Keitaro -> execution actions, and settings of the campaign, from which the tracking code is taken.

  4. The domain parked to Keitaro and the domain of the WP created website, where you put the tracking code, must be two different domains with an active SSL-certificate (working on HTTPS).

  5. Do not add a link to the website, where the WP plugin code is installed, in the campaign tracker's flow. For example, if you are placing the WP plugin code on mysite.com, you must not add the mysite.com link to the campaign tracker's flow.

# Connection and setup

  1. Firstly, you must create a campaign in Keitaro.

The example of campaign setup: create two flows. The first flow with the Do nothing action and the BOT-Yes filter. This flow accepts bots and Do nothing action leaves them on the site (bot page), where WP Plugin is connected.

The second flow is created with the necessary filters for target traffic. Target offers are added to the flow to collect conversions

It is acceptable to add any type of flows, landing pages, offers, filters, etc. It all depends on your traffic funnel.

# Adding plugin to WordPress

  1. Download keitaro-wp-plugin.zip.
  2. Open PluginsAdd new.
  3. Press UPLOAD PLUGIN.
  4. Choose file keitaro-wp-plugin.zip and press Install.
  5. Installing the plugin

Go to the Plugins page, click on the "Add new" button, search for Keitaro and install a plugin.

Click the Activate button.

# Connecting campaign to the website

Go to the settings page in WordPress, choose "Yes" in an Enabled field, and click on an "Import settings" button:

Now go to Keitaro tracker, open your campaign and choose the Tracking tab. Choose Integration with WordPress and copy the Settings field:

Insert the settings into WordPress and click Import and Save changes:

That's all, your WordPress site can receive organic traffic.

Now we will describe the process of creating landing pages on a WP site.

# Splitting clicks between landing pages

You can set up split-testing of landing pages easily, just add them to a flow:

Note

You will always get the same landing page. This happens because the Track non-unique visits feature is turned on in the Keitaro plugin. So you can either turn this feature of or add the &_reset=1 parameter to your website's URL before opening. This will reset a saved session.

# Adding an offer

We created a landing page and connected it to a tracker. Now we will set up a button that will get as to an affiliate network offer.

Go to the Offers page and create an offer. Add an affiliate network and set up a postback to receive conversions to the tracker.

Next, edit the flow and add the offer:

Save your campaign in Keitaro.

Now open your landing page and type {offer} as a button URL.

Below is an example with Landing Page Cats:

Save changes and check if the button works.

If you get 404, check if the campaign is saved and working, and Keitaro plugin is turned on.

# Click on the button on the website to switch to the campaign offer

To go to the offer on the button on the site, you just need to specify the placeholder {offer} - in the link of your button.

Showing more than one offer

If there's a choice among some offers on a landing page, an {offer:ID} placeholder must be added to every button, where ID is an offer identification in Keitaro. All offers on a landing page must be added to a campaign's flow.

Showing more than one offer in Elementor plugin

If there's a choice among some offers on a landing page, an {offer}&offer_id=X placeholder must be added to every button, where X is an offer identification in Keitaro.

Improving speed between landing page and offer

After a visitor clicks the offer link, they get to a tracker first and then on an offer page. Sometimes this transition is visible which may result in a lower conversion. The "Turbolinks" plugin will help to solve the issue. "Turbolinks" can be found in a WP official plugins catalog. Choose "HTTP-redirect" in offers settings.

# Settings

# Enabled

The plugin is turned off if value is set to no.

# Tracker's URL

The address of an installed tracker.

# Postback URL

Your tracker's postback address.

# Campaign's token

Token can be taken from campaign's settings. One WP site can work only with a single campaign.

# Use title as a Keyword

When it's impossible to define a keyword form a referrer, the post or an article title is considered as a keyword.

# Track non-unique visits

If value is Yes , every page visit will be sent to Keitaro.

# Redirect to offers

Select Yes in case there's a redirect when an offer is chosen. Select No to create links to offers.

# Debug mode

If you check yes debug log of plugin's work will be shown on all pages. Turn on this feature only to check how thw plugin performs.

# Send se_referrer

This allows you to build reports on sites from which the visitors went to your site.

# Import settings

You can easily import settings by opening an Integration tab in a necessary campaign and choosing WordPress.

# Sending postback

We suppose, you already have a contact form, and we just need to add these leads to Keitaro. To do so, add a piece of code inside the submit button or on the page where a visitor gets after filling in the form:

[send_postback]
1

If there's a need to transfer a sum:

[send_postback revenue="100"]
1

If there are some parameters from a contact form on a page you can send them in a postback as well:

[send_postback first_name="$first_name" second_name="$second_name" phone="$phone"]
1

Parameters can be sent only one by one. This solution won't work: name="$first_name $second_name". Parameters can be taken from $_GET, $_POST or $_SESSION.

# Statistics

Go to your Landing Pages and check the clicks, CR, and conversions:

Offers page:

Campaign's report with Landings → Offers grouping:

# WordPress Plugin FAQ

Why the only one action is executed

To reset a session only once, open any site page with an added parameter _reset=1. For example, http://site.com/?_reset. This will reset a session and send a new request to Keitaro campaign. If you don't want to save sessions especially when you use page title filter, turn off an option Track non-unique visits.

Error: "Infinite (endless) redirect"
  • Add offers to a flow.
  • Add r parameter to a landing page's URL For example, http://example.com/lp1?r or http://example.com/?post=12&r.
How to run campaign on selected pages
  1. Update the plugin to the latest version.
  2. Go to plugin's settings, to Page settings tab.
  3. Select manual choice of the pages.
  4. Select which campaigns to run on which pages.
How to run campaign only on necessary pages (with Keitaro filters)?

The plugin automatically sends page parameter from a current page URL It can be attached to a campaign and used as a filter in a flow:

  1. Open Parameters tab in a campaign;
  2. Add for one of the Sub ID 1 to Sub ID 15 page parameter, with a Page title and empty value.

You may type a "Sub ID X" filter with Yes and /page-name as value. Masks like *page-name* are also valid. Select No to exclude this page.

Is it necessary to install WordPress on the same server Keitaro is installed on?

It is not necessary. You can deploy one more VPS with WordPress being installed on Vultr or buy a hosting within the same Geo where the server with Keitaro is located.

[send_postback] sends wrong parameters

Sometimes an editor can break a code. Open "Text" editing mode and check the code, there shouldn't be any other symbols.

Why doesn't tracker track visits? Why are visits not being tracked in the traffic log?

You must turn off all caching plugins. We were informed about incompatibility with "W3 Total Cache".