# WordPress Plugin

pro business

WordPress has a rich diversity of features. It is a decent tool for marketers because of its form constructors, landing page builders, and because its low cost.

# 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.

# Configuring plugin's settings

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 Integration 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.

# Creating Landing Pages

We'll take "Landing Page Cat Free" plugin to make a landing page.

Tips

Some plugins allow editing pages on the site itself. If you use this kind of plugin, turn off the Keitaro plugin when editing the page.

Create a landing page in a plugin section and copy its URL.

Now go to a tracker's admin panel, go to "Landing Pages" and create a new landing page. Choose "Redirect" in settings, insert copied landing page address to a URL field and add ?r parameter, save the changes:

Now go to your campaign, create a stream and choose the Landings and Offers scheme and add your landing page:

Now when you open any page of your WP website, you must get to your landing page. If you get an error about an endless redirect, check if you added the r parameter to the landing page URL.

# Splitting clicks between landing pages

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

Note

You'll 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 stream 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.

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 stream.

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.

# Setting up an order form

An example of creating a landing page with an order form in Contact Form 7.

Go to the settings of a confirmation page. We need to add a [send_postback] code there:

Thank you for your order!
[send_postback status="lead"]
1
2

Add this piece of a code into the form's code and replace /thank-you with your Thank You page address:

<script>
document.addEventListener( 'wpcf7mailsent', function( event ) { 
    window.location = '/thank-you';
}, false );
</script>
1
2
3
4
5

# 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.

# Send all parameters

All parameters including utm-parameters are sent to the tracker.

# 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 stream.
  • 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 stream:

  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".