How to Track CPA Offers for EzineArticles?

2 replies
Is there anyway I can use php (or some other language) to track my CPA offers for EzineArticles? Since you can only use top-level domains in your EZA resourcebox, it's causes a big mess when I'm trying to find out which particular article is converting the best. Right now, I have my domain redirecting straight to the CPA offer.

Is it possible to write code so that if the referrer was from a particular EZA URL, it would redirect using to a specific Sub-ID CPA link? Hope that makes sense.
#cpa #ezinearticles #offers #track
  • Profile picture of the author JaguarJaguar
    If you like to do clocking....

    Consider that you have to redirect user to hilotrendpredictor.com
    Your link which user will click is "Click Here For Article"
    Instead of directing to hilotrendpredictor.com directly, call a
    php page which will save details in database and after that will
    redirect user to hilotrendpredictor.com
    yourdomain.com/one.php?link=1&aHd=myArticleHeader

    WebDb.php:::::::::::::::::::::::::::

    <?php

    $hostname
    = "mysql304.ixwebhosting.com"; (or localhost)

    $database = "myDatabase";

    $username = "adminUser";

    $password = "myPassword";

    ?>





    One.php ::::::::::::::::::::::::::::
    <?php
    include("../folderName/webDB.php");

    $conn = mysql_pconnect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR);

    mysql_select_db($database_webDB ,$conn);

    $link= $_GET ['link'];

    $articleHeader = $_GET ['aHd'];
    $query = "INSERT INTO yourTableName (LNO,Link,ArtHdr,LinkTime) VALUES ('Null','".$link."','".$articleHeader."',NOW())";

    echo
    "<SCRIPT>window.location='http://www.hilotrendpredictor.com/'</SCRIPT>";
    }

    ?>

    In this way you can have a record of clicks with linkId and Header reference in your database which you can manipulate by any method.

    {{ DiscussionBoard.errors[1726061].message }}
  • Profile picture of the author enigmanic
    Holy moly Jaguar, this is great!! Thank you for taking the time explain how it's done. If you don't mind, I have two questions:

    1. I assume I am creating a new database called webDB? Anything special about it when I create it, or just your standard mysql database?

    2. Since EzineArticles only allows you to have a top level domain (no inner pages), would renaming one.php to index.php do the trick?
    {{ DiscussionBoard.errors[1726129].message }}

Trending Topics