2 replies
Hello,

I put a product on CB a week or so ago and started getting affiliates and watched the hop count grow but noticed that google analytics was nowhere near that count.

Today I was updating the sales page and after uploading I noticed it didn't update by trying to look at it using my affiliate url path.

http://mysite.com/421/?pid1

So I noticed that the same sales page was also in the same location on my server.
http://mysite.com/421/salespage.htm

So I thought that the php script in my root folder was defaulting to the .htm page so I took it out so it would go to my http://mysite.com/421/salespage.php

What happened is now my affiliate sales page became a listing of the directory??

So I put it back until I figure this out, at least my affiliates traffic has a page that works, I need to figure this out so I can put another product on my CB account.

Here is the script in my root folder:

<?php


$default = "http://www.mystie.com/421/quit_smoking.php";


$page1 = "http://www.mysite.com/421/quit_smoking.php";
$page2 = "http://www.mysite.com/421/weightloss.php";



if ($_GET['pid']=='1')
header("Location: $page1");
else if ($_GET['pid']=='2')
header("Location: $page2");

else
header("Location: $default");
?>

Why is this defaulting to the .htm page??

Thanks,
Gary
#php
  • Profile picture of the author Johnny Slater
    Shouldn't your links end with pid=1 or pid=2 instead of pid1 and pid2?
    Signature

    {{ DiscussionBoard.errors[692037].message }}
    • Profile picture of the author buckapple
      Hello Johnny,

      That was fast, thanks for your reply. I will check that but I forgot to mention when I do the pid2 or pid=2 to go to the second landing page it defaults also to the .htm page. I'm 99% sure this was working correctly at one time.

      UPDATE: it's like open ear and insert brain... Thanks Johnny, your reply got me to look at the affiliate link again, that's not a cb path, that was something I was using internally. If I put a clickbank affiliate link in, it works great, so there was really nothing wrong except my imagined clickbank link was not right to start with...

      Now I have to figure out why google analytics is way off compared to CB reporting.

      THANKS,

      Gary
      {{ DiscussionBoard.errors[692071].message }}

Trending Topics