Script Tutorials

Three legacy landing page scripts for Prosper202: iframe an offer, show the search keyword, and time page loads.

These are three small PHP and HTML snippets for landing pages you track with Prosper202 ClickServer. They're updated for PHP 8.3, the version ClickServer requires. Test them on your setup before you rely on them.

iFrame an offer

Rather than redirect the visitor to the offer, you load the offer in an iframe so the visitor stays on your domain. There are two versions:

  • First page. Point the iframe src at your landing page's outbound link, never the PHP redirect code, and place the landing page JavaScript at the bottom.
  • Second page. Keep a normal landing page first. Then edit the simple or advanced landing page PHP redirect code so it prints the outbound URL into the iframe src instead of calling header(). The URL comes from the tracking202outbound cookie, with your outbound link as the fallback.

Use the lpip value from your Step 7 code, and your own tracking domain in the URLs.

Show the visitor's keyword

Read the keyword from the t202kw parameter, then echo it wherever you want it, such as the page title or a line of copy:

<?php $keyword = htmlspecialchars($_GET['t202kw'] ?? '', ENT_QUOTES, 'UTF-8'); ?>

Escaping the value matters: printing the raw parameter would let anyone inject script into your page through the link.

The full example also shows how to capitalize each word.

Time your page loads

Start a timer with microtime(true) at the very top of the page, then print the elapsed seconds at the bottom. It measures how long your server takes to build the page. Quality scoring takes load speed into account, so this helps you spot slow pages.

Related: Step 7 covers the landing page codes these scripts build on.

📘

Full guide on prosper.tracking202.com

The complete code for all three scripts, including both iframe page templates: Prosper202 landing page script tutorials


Did this page help you?