Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Feb 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    php ppc tracking - cant get it to work

    Hi Guys,

    I have been trying to get this to work, and can not see what I am doing incorrect. (ok, I am also not very good at php at all - still learning)

    I am trying to pass the keyword through so that it gets auto appended to my outgoing links.
    What I have is the following:
    My url will say :http://www.mydomain.com/mylandingpage.php?keyword=marc

    Then at the end of my outgoing links I have put this: <?php echo $_GET['keyword'] ;?>

    As far as I know, this is meant to "pull" the keyword from the url and append it to the outgoing link.

    Can you see anything wrong with this at all?

    Many thanks for your help.
    Marc

  • #2
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    It helps for us to know what is wrong. Because the technique you use appears to be correct. But since we don't know what is wrong it's hard to say what might be the cause of it 'not working'.

    Also, ensure you have error reporting turned on.

  • #3
    New to the CF scene
    Join Date
    Feb 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Aedrin,

    woops, sorry.
    Basically nothing happens.
    When I go to the landing page with the keyword in the url, the outgoing urls do not get appended with anything. When I hover over them they just say: <?php echo $_GET['keyword'] ;?>
    and do not have the keyword anywhere?

    What do you mean by error reporting?

  • #4
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    In your PHP's ini file there is a setting called error_reporting which is usually set to not show errors.

    If you can see PHP code in 'View Source' (or when hovering over the link) then it sounds though like your PHP file is not getting parsed by PHP. Do you have Apache set up properly with PHP? Can you do the basic phpinfo(); test?

  • #5
    New to the CF scene
    Join Date
    Feb 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I Just did the phpinfo test..and it did not display anything.
    I think this is the problem then. The site developer said that the site is php but none of the pages end with .php
    They actually do not end in anything, so for example it is just: www.mydomain.com/page

    Could this be the reason do you think?
    Thanks so much for the swift replies.

  • #6
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Not ending in .php does not mean much. They could have mod_rewrite set up. Though any PHP host should interpret *.php files with the PHP interpreter.

    Sounds like you need to talk to the host/owner of the site to figure out what the issue is.

  • #7
    New to the CF scene
    Join Date
    Feb 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Aedrin,

    Thanks.
    It turns out the editor I was using was "changing" the php code somehow.

    thanks,
    Marc

  • #8
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    I'd hazard a guess and say it is DreamWeaver, but I shouldn't assume.

    That's another reason I prefer HTML editors over WYSIWYG editors.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •