how to create an automatic redirect page (with tracking code in it)?

4 replies
I am trying to create an page in between my sales page and the checkout page. But i need to include a tracking code on that in between page.

Due to problems with my host and merchant account/shopping cart I cannot put the script (conversion chicken) on the checkout pages, so I need to put a page in between my sales page and order page. And I need it the code to be able to process the 'conversion'. So I am trying to track conversions from my sales page to this in between page.

Is this possible?

Ideally I would like it to automatically redirect without any sign of doing so. I am using cpanel.

Thanks
Ashley
#automatic #code #create #page #redirect #tracking
  • Profile picture of the author jimbo999
    In "theory", what you are talking about is impossible. The redirect script can not track what the user does after they leave the redirect if the order page is on another server.

    If it so happens that you can customize the order confirmation page then you can track conversions on another server if you know what you are doing. Have the redirect script (in between page) set a cookie or session. On the order conf. page, place an image that is 1px by 1px, that is actually a PHP script on your server, and that can track the conversion before it outputs a jpeg.

    In this case however, you cannot use a header redirect because you must send session or cookie info in the header first. A meta-refresh redirect will be used, so the redirect will be almost instant, but not as fast as the header redirect. If u need some help, PM me but include your e-mail (post count too low).

    It would take someone who knows what they are doing less than an hour. Not a good beginner project though.
    {{ DiscussionBoard.errors[1454018].message }}
    • Profile picture of the author Ashley Gable
      Originally Posted by jimbo999 View Post

      In "theory", what you are talking about is impossible. The redirect script can not track what the user does after they leave the redirect if the order page is on another server.

      If it so happens that you can customize the order confirmation page then you can track conversions on another server if you know what you are doing. Have the redirect script (in between page) set a cookie or session. On the order conf. page, place an image that is 1px by 1px, that is actually a PHP script on your server, and that can track the conversion before it outputs a jpeg.

      In this case however, you cannot use a header redirect because you must send session or cookie info in the header first. A meta-refresh redirect will be used, so the redirect will be almost instant, but not as fast as the header redirect. If u need some help, PM me but include your e-mail (post count too low).

      It would take someone who knows what they are doing less than an hour. Not a good beginner project though.
      Thanks Jimbo,

      But I cant put an image on the checkout pages either, my site is not secure, so a non secure script on the checkout pages will induce a security warning to the user, which my payment processor said they wont do.

      But I think maybe I didnt make it clear. The script is ending on the redirect page. The script tracks the click from my sales page, I need it to count them as a conversion when they reach the redirect page. I do not need to track them after that.

      But I was thinking, what about a page, that isn't an instant redirect but a "Being Transferred to Secure Checkout". I have seen this on some other sites. They take a few second and have a little "loading bar" type thing.

      Thanks again for the help! I am quite useless when it comes to this sort of thing
      Ashley
      {{ DiscussionBoard.errors[1455675].message }}
  • Profile picture of the author HomeBizNizz
    If you want to track clicks only:
    PHP redirect with logging to a database or file.
    Can be setup to divide this into dates and time too.
    A bit more work.
    Ask a programmer.
    He will fix you up quick.
    {{ DiscussionBoard.errors[1454117].message }}
  • Profile picture of the author robofx
    Banned
    Would this work? In notepad, type the following & save it as "redir.php" & put it on your server & send them from your sales page to redir.php (after creating the "purchase" goal in Conversion Chicken & adding the appropriate "StartGoal" statement to the sales page of course):


    <?php EndGoal("purchase");
    header( 'Location: http://www.yoursite.com/checkout_page.html' );
    ?>
    {{ DiscussionBoard.errors[1492544].message }}

Trending Topics