Posting Data to Landing Pages

  • The parameters passed to the landing pages can be displayed on the page with any programming language.
  • If you have a landing page saved as “.php”, then the simplest operation to display a parameter passed in the URL using the following PHP statement:

<?php echo(isset($_GET["param-name"]) ? $_GET["param-name"] : ""); ?>

  • For example

    • you enter a Landing Page URL in the CPV Lab Pro campaign setup page as:{!ispcarrier!}

    • When a visitor hits the page, the wildcard gets replaced by the actual ISP/Carrier (example: Verizon), so they will land on the following URL:

    • In order to display the ISP/Carrier in the LP, you will use the following code:

    <?php echo(isset($_GET["visitor_isp"]) ? $_GET["visitor_isp"] : ""); ?>

    • Notice the parameter name (visitor_isp) is the exact same as it appears in the URL.
    • The parameter name in this case is "visitor_isp" and the parameter value is 'Verizon".
  • The parameter name can be anything, it doesn't have to be "visitor_isp", it could be "qqqqq" or "qazwsx" or "isp" (anything!!), but it must match the PHP code used to retrieve it.

    • The above code will display "Verizon" on the Landing Page and the Landing Page must be saved as *.php for the PHP code to run.

You can display various data from the campaign to visitors using the same method above

Display Landing Page URL in CPV Lab Pro PHP Snippet for Landing Page:
Device Brand{!sm_device_brand!} <?php echo(isset($_GET["brand"]) ? $_GET["brand"] : ""); ?>
Device Model{!sm_device_model!} <?php echo(isset($_GET["model"]) ? $_GET["model"] : ""); ?>
Device Market Name{!sm_device_marketing!} <?php echo(isset($_GET["mname"]) ? $_GET["mname"] : ""); ?>
Keyword / Target{!target!} <?php echo(isset($_GET["keyword"]) ? $_GET["keyword"] : ""); ?>
Additional Tokens{!token1!} <?php echo(isset($_GET["token1"]) ? $_GET["token1"] : ""); ?>

Posting GEO Data on your Landing Pages

Setup Landing Page URL to Capture GEO Data

  • In the campaign setup page, add the parameters and tokens you want to pass as below:

    • continent - {!mm_continent!}
    • country - {!mm_country!}
    • state - {!mm_state!}
    • city - {!mm_city!}
  • For example:

    • if your landing page URL is:
    • And you want to post Country and State to the Landing page, enter your Landing Page URL as:{!mm_country!}&state={!mm_state!}
    • Then place the PHP Snippets below where you want Country and State to Appear on the Page:

    <?php echo(isset($_GET["country"]) ? $_GET["country"] : ""); ?>

    <?php echo(isset($_GET["state"]) ? $_GET["state"] : ""); ?>

Post on Landing in Place for GEO Data to Appear:

<?php echo(isset($_GET["continent"]) ? $_GET["continent"] : ""); ?>

<?php echo(isset($_GET["country"]) ? $_GET["country"] : ""); ?>

<?php echo(isset($_GET["state"]) ? $_GET["state"] : ""); ?>

<?php echo(isset($_GET["city"]) ? $_GET["city"] : ""); ?>

Last Updated: 6/6/2019, 4:24:09 PM