# Working with doorways

# How to connect Keitaro to doorway?

There are several ways:

  1. With a link.
  2. With KClient PHP.
  3. With KClient JS.
  4. With a redirect through a Script or Iframe.
  5. Other solutions.

After creating a campaign press “Get URL” or “Integrate > URL”. Use the received URL for the link on the doorway.

<a href="URL">link</a>

# Integration doorway with KClient PHP

This is a hidden for users way of exchanging information with Keitaro. Doorway receives the necessary instructions and immediately executes them. The PHP support on the doorway side is necessary.

  1. After creating a campaign press the button “Integrate” (menu “Additional”).
  2. Choose KClient PHP.
  3. Install the code following the instruction.

Now you can control the doorway behavior directly in Keitaro. More about using theKClient PHP read on the page KClient PHP.

# Redirect through Script or Iframe

This method means installing a special script to the HTML code of your doorway. This method supports static websites (without PHP support).

  1. CLick the button “Integrate” (menu “Additional”);
  2. Choose “Script” or “Iframe”;
  3. Install the code according to the instruction.

Now you can use redirects in streams. See the page redirects compatibility table.

# Other solutions

You can use any other solution if you need. Here is the list of the solutions provided in Keitaro, which you can take from the page “Integrate”:

  • PHP-redirect
  • Frameset

If you need to run a JS-script from the stream. For example, popup, popover, modal, message and others. Use the following solution:

  1. Connect the “Script” from the page “Integrate”;
  2. Use the action “Show text” in the streams. You can paste there any html or js-code.

# How to redirect only certain users from the website? (Solution on JS)

Use the connection method Redirect through script or iframe. Create streams to catch only the necessary users, using the filters.

If you want, you can use the action “Do nothing” at the stream that should leave users on the doorway.

# How to redirect only certain users from the doorway? (Server solution)

Use the connection method Integrating doorway through KClient PHP. Create streams to catch only the necessary users, using the filters.

If you want, you can use the action “Do nothing” at the stream that should leave visitors on the doorway.

Last Updated: 4/11/2020, 6:11:04 AM