1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Subid Help!

Discussion in 'PHP' started by DylanM, Sep 20, 2009.

  1. #1
    I'm trying to set up subid keyword tracking. Here is what I have done so far, but it does not seem to be working..

    I pasted this in my php file in between my head tags:

    <?php
    //grabs the subid and sets $OVKEY equal to it.
    if(isset($_GET[’OVKEY’]))
    {
    $cid = $_GET[’OVKEY’];
    }
    ?>

    <?php
    //grabs the subid and sets $cid equal to it.
    if(isset($_GET[’cid’]))
    {
    $cid = $_GET[’cid’];
    }
    ?>

    And then I altered my links on my CPA network as such:

    http://cpanetwork.com/xxxxx?sub=<?php echo $OVKEY; ?>"

    And lastly I went into Adwords Editor and changed my destination URL for each keyword as follows:


    http://mylandingpage.com/index.php?cid={001}
    http://mylandingpage.com/index.php?cid={002}
    http://mylandingpage.com/index.php?cid={003}
    etc.
    etc.


    001, 002, 003, etc are obviously relevant to my own keywords.

    Now when I log into my cpa network all that it shows in the Subid Report is:
    < No Subid >

    Any help would be appreciated.
    Thanks
     
    DylanM, Sep 20, 2009 IP
  2. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #2
    In the first part I think you made a mistake :
    $cid = $_GET[’OVKEY’];

    You meant
    $OVKEY = $_GET[’OVKEY’];

    No?

    In fact I believe what you need is simply:

    <?php
    //grabs the cid and sets $OVKEY equal to it.
    if(isset($_GET[’cid’]))
    {
    $OVKEY = $_GET[’cid’];
    }
    ?>
    in order to grab the cid from the adword link and then in your page, you alter your CPA links like this:
    http://cpanetwork.com/xxxxx?sub=<?php echo $OVKEY; ?>

    That's the id
     
    JamesColin, Sep 20, 2009 IP