11 replies
I'm using p202 on my own server and would like to set up a redirect page to an offer. Basically I want to send all my traffic right to the redirect page, so it is cloaked through t202. I also want to track all hits to the redirect page. But here's the problem I am running into.... when I put the tracking code onto the redirect page I get an error.. the redirect code works when the tracking code is not on the same page... and the tracking code "works" when the hit comes into the redirect page, but the viewer is not redirected then.

The purpose would be to track the hits you receive to the redirect page.... basically skipping the process of the viewer having to do some sort of action... like hit an "enter" button. So instead of putting the tracking code on your LP, it goes on my redirect.php page. For some reason this does not work in p202, t202. I tried and got this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/myserver/public_html/directory1/index.php:1) in /home/myserver/public_html/directory1/index.php on line 20

All the code on the redirect.php page:

Code:
<script src="track.myserver.com/tracking202/static/landing.php?lpip=849" type="text/javascript"></script>

<?php
 
  // -------------------------------------------------------------------
  //
  // Tracking202 PHP Redirection, created on Thu Dec, 2010
  //
  // This PHP code is to be used for the following landing page.
  // myserver.com/directory1/index.php
  //                      
  // -------------------------------------------------------------------
 
  if (isset($_COOKIE['tracking202outbound'])) {
    $tracking202outbound = $_COOKIE['tracking202outbound'];    
  } else {
    $tracking202outbound = 'track.myserver.com/tracking202/redirect/lp.php?lpip=849&pci='.$_COOKIE['tracking202pci'];
  }
 
  header('location: '.$tracking202outbound);
 
?>

Any suggestions?
#prosper202
  • Profile picture of the author Jesus Perez
    You're probably going to get faster answers at Prosper202's forum...

    Prosper202 Forum
    Signature

    {{ DiscussionBoard.errors[2995191].message }}
  • Profile picture of the author Jimmy Reilly
    You cannot have a php header redirect after outputting something to the page. This line is messing it up:

    Code:
    <script  src="track.myserver.com/tracking202/static/landing.php?lpip=849"  type="text/javascript"></script>
    - Reilly
    {{ DiscussionBoard.errors[2995244].message }}
  • Profile picture of the author mrpopular777
    Hi Midw3st and I realize that you had posted your question back in 2010, but any chance you got an answer or figured it out and if you did, would you mind sharing? I am experiencing the same issue here and it is driving me crazy. Thanks in advance.
    {{ DiscussionBoard.errors[7557632].message }}
    • Profile picture of the author PerformanceMan
      Originally Posted by mrpopular777 View Post

      Hi Midw3st and I realize that you had posted your question back in 2010, but any chance you got an answer or figured it out and if you did, would you mind sharing? I am experiencing the same issue here and it is driving me crazy. Thanks in advance.
      The line before the PHP statement is causing the error.

      PHP has to output the header first. Move that bit down and see it it works.
      Signature
      Free Special Report on Mindset - Level Up with Positive Thinking
      {{ DiscussionBoard.errors[7557688].message }}
      • Profile picture of the author mrpopular777
        Thank you for the quick reply. The file I am using to redirect is a php file and I am not sure if I can mix javascript and php code on a php page (I'm not too technical, sorry). So this is the set up I have:

        1) I enter a link to mysite.com/index.php in my destination URL in my CPV network (Leadimpact)
        2) I use the Option #1 php code I get from Prosper202 step #6 as my index.php
        3) When I go to mysite.com/index.php the destination affiliate page displays correctly, but I see nothing showing up on the overview or spy view in prosper202.

        What I am suspecting is that obviously something is wrong with my tracking portion setup and not he redirect itself, but can not figure it out after multiple searches for this problem.

        Thanks in advance once again,
        Frances.
        {{ DiscussionBoard.errors[7557846].message }}
        • Profile picture of the author PerformanceMan
          Originally Posted by mrpopular777 View Post

          Thank you for the quick reply. The file I am using to redirect is a php file and I am not sure if I can mix javascript and php code on a php page (I'm not too technical, sorry). So this is the set up I have:

          1) I enter a link to mysite.com/index.php in my destination URL in my CPV network (Leadimpact)
          2) I use the Option #1 php code I get from Prosper202 step #6 as my index.php
          3) When I go to mysite.com/index.php the destination affiliate page displays correctly, but I see nothing showing up on the overview or spy view in prosper202.

          What I am suspecting is that obviously something is wrong with my tracking portion setup and not he redirect itself, but can not figure it out after multiple searches for this problem.

          Thanks in advance once again,
          Frances.
          Frances,

          Have you moved the very stop script that starts script= and pushed it below the PHP code? That code ends with the ?>

          If you haven't already, move it below there and try again. The blank page is giving off a PHP error if I had to guess and you have error display disabled.
          Signature
          Free Special Report on Mindset - Level Up with Positive Thinking
          {{ DiscussionBoard.errors[7557883].message }}
      • Profile picture of the author mrpopular777
        Thanks again. I really appreciate your help on this.

        So here is my index.php code

        **************************************
        <?php

        // -------------------------------------------------------------------
        //
        // Tracking202 PHP Redirection, created on Fri Jan, 2013
        //
        // This PHP code is to be used for the following landing page.
        // http://www.MyDomain.com/MyProduct/index.php
        //
        // -------------------------------------------------------------------

        if (isset($_COOKIE['tracking202outbound'])) {
        $tracking202outbound = $_COOKIE['tracking202outbound'];
        } else {
        $tracking202outbound = 'http://MyProsper202Domain.com/tracking202/redirect/lp.php?lpip=954&pci='.$_COOKIE['tracking202pci'];
        }

        header('location: '.$tracking202outbound);

        ?>
        ************************************************** ************

        As I said I am sending traffic directly from the CPV network to this page which is redirecting to my affiliate offer as soon as it is hit. My issue is that I do not see anything registering in prosper202 as far as traffic even though I see in Lead Impact that I am getting traffic. What am I missing that I need to set up ? I was thinking that it was the javascript code that get generated in Prosper202 step #6 as I mentioned before. Does that sound right and if so would I simply insert this code as you described above below the ?>

        I am asking because the Javascript code generated in step #6 looks very different than the one I see on the original post above. Here is javascript code:

        <script language="JavaScript" type="text/javascript"> cbr202=Math.random()*10000000000000000;document.wr ite('<scr'+'ipt language="JavaScript" src="http://MyProsper202Domain.com/tracking202/static/landing.php?lpip=954&202cb='+cbr202+'" type="text/javascript"></scr' + 'ipt>'); </script>

        Thanks again,
        {{ DiscussionBoard.errors[7557940].message }}
        • Profile picture of the author seregap
          Originally Posted by mrpopular777 View Post

          Thanks again. I really appreciate your help on this.

          ....
          As I said I am sending traffic directly from the CPV network to this page which is redirecting to my affiliate offer as soon as it is hit. My issue is that I do not see anything registering in prosper202 as far as traffic even though I see in Lead Impact that I am getting traffic. What am I missing that I need to set up ? I was thinking that it was the javascript code that get generated in Prosper202 step #6 as I mentioned before. Does that sound right and if so would I simply insert this code as you described above below the ?>

          I am asking because the Javascript code generated in step #6 looks very different than the one I see on the original post above. Here is javascript code:

          <script language="JavaScript" type="text/javascript"> cbr202=Math.random()*10000000000000000;document.wr ite('<scr'+'ipt language="JavaScript" src="http://MyProsper202Domain.com/tracking202/static/landing.php?lpip=954&202cb='+cbr202+'" type="text/javascript"></scr' + 'ipt>'); </script>

          Thanks again,
          what are you trying to achieve? if i understand correctly you are sending traffic directly to the redirect page avoiding the actual landing page? why not use the simple direct linking setup instead then?

          you are not seeing anything in prosper because you are sending traffic to a simple php redirect code which does not track anything on it's own, incoming hits are tracked on the landing page (which you dont have). use the direct linking setup and everything will register properly in prosper.

          if you still want to have a page in between your cpv ad and the offer to place some other 3rd party tracking i suggest you use the option 2 javascript type of thing, then you can place some tracking script at the top followed by js that redirects to a direct linking type of setup again, if this makes sense )

          sorry if i misunderstood what u were trying to achieve
          {{ DiscussionBoard.errors[7559335].message }}
          • Profile picture of the author mrpopular777
            Seregap, thank you for your posting which seems to answer my question. I am starting to get a handle on Prosper202 (I think :-)) thanks to everyone here in the warriorforum.
            {{ DiscussionBoard.errors[7560171].message }}
  • Profile picture of the author igl0w
    why not invest a bit an get cpvlab http://bhpwn.me/VEnWoF ? 100 times better and 0 headaches.
    Signature
    #1 SEO REVIEWS and FREE METHODS BLOG - delivering quality posts since 2009
    {{ DiscussionBoard.errors[7560211].message }}
    • Profile picture of the author mrpopular777
      igl0w I am just starting to get my feet wet with PPV and tracking and not ready to make the investment, but I agree that's probably an easier tool and worth the investment down the road. Thanks.
      {{ DiscussionBoard.errors[7561812].message }}

Trending Topics