Hey guys.
I'm trying to set up a multiple option campaign in cpv lab, but when I test it, I always get a no click message.
I'm setting the links via javascript and using a redirect:
$('#agree').click(function(){
if($age==0)
{window.location.href = "http://tracker.com/base2.php?id=1";}
else if ($age == 1)
{window.location.href = "http://tracker.com/base2.php?id=2";}
});
So, if the user's age is X, go to option group 1, else go to 2.
I don't think the problem is in here, because while debugging I used real links and I still got the same "No click" message.
In my cpv lab, I have 1 LP and 2 option groups. They all have id's. I have no idea why I can't set up this properly.
Any ideas?
Have you tried testing the code with known-good URLs to check that the redirects work OK? (I usually use Bing and Google as my test URLs of choice, but you can use anything.) My first port of call with something like this would be to check if the $age parameter is being set correctly - where's that being set?
Also, where are you getting the "No Click" message? I'm afraid I'm being a bit dense here - do you mean that's appearing on the page or in your CPVLab reports?
Hi caurmen, thanks for the reply.
I've tried the redirects with other url's before setting up the tracker. The $age is being set at the top of the script, like $age=0; I only change the value when I get a click on X, if they click on Y the $age keeps the same value.
I also just cloned the campaign and used good URL's on the offer URL to test. And the result was the same.
I gave id's to everything, (LP, offer's). I tried to change the id's to not repeat them from group to group. But I still get that message.
I'm getting the no click message on the page. I must be doing something wrong, I just can't figure out what.
Did the redirects work with the other URLs?
Also, what happens if you replace
They work when I'm not using cpv lab and redirect manually instead of using the "http://tracker.com/base2.php?id=X". If I setup good links in cpvlab and test them I get that no click message.
The $age is set up on a JS file. Edit: also tried with else instead of else if ($age == 1). I get the same result.
The only PHP snippet I have is one that you posted about GEO redirects using maxmind. I also tried to remove it, but I still got that no click message.
<?PHP
require $_SERVER['DOCUMENT_ROOT'].'/vendor/autoload.php';
$ipaddress = $_SERVER["REMOTE_ADDR"];
use \GeoIp2\Database\Reader;
$reader = new Reader($_SERVER['DOCUMENT_ROOT'].'/geolocation/GeoLite2-City.mmdb');
$record = $reader->omni($ipaddress);
$subid = $_GET['subid'];
switch($record->country->isoCode) {
case 'SOMECOUNTRY':
break;
default:
$redirect = 'http://www.SOMEPAGE.com'.$subid;
header("Location:$redirect");
exit;
}
?>
I think I tried everything I can remember to try finding my problem. I'm starting to think that it must be a tracker problem.
I created a simple LP, all blank and with only 2 links. one for http://tracker.com/base2.php?id=1 and the other for the id=2. Ended my page with the snippet cpv lab gives.
I STILL get that stupid error.
I think I've tried everything. The links, the whole LP the traffic source (I could be doing something wrong).
I really don't have a clue on the problem.
I just saw BeyondHosting is performing network maintenance. Hopefully that's why I can't setup any campaigns, not even a simple DL & LP.
I'll wait a couple of hours and I'll try again
Man, that sounds frustrating!
If a standard campaign setup is giving you that error, that does indeed sound like something to do with the tracker.
The only other thing I can think of - is there any reason that CPVLab could be prevented from setting a cookie on the browser you're using to test with? I'm assuming you're testing it by going to the initial campaign link from CPVLab rather than straight to the lander URL?
I had the same problem last week when I setup my first MO campaign. The problem I had was that I assigned ID's and not really understand how it all works.
Now I'm not using any ID's (only default 0) and it all works well. You have to use both options and the ID's are like this: Option 1 has id=1, Option 2 has id = 2 and so on. You have to think about the Options as some containers or groups that are holding each of your offers. If you not fill out each of the activated Option and CPV Lab will rotate that one then you get the No click error.
I'm not sure if this help or if this is your particular problem, but this is how I got it to work for myself.
I was just about to say that Caurmen. In order for CPVLab to track it, it needs to come from the campaign link, no?
BTW if you use Test link it always give No click message - it is just a test and to prevent counting your clicks. You have to use the Campaign URL to see it same as real visitors (you can then reset your clicks as you are just testing the campaign)
Everything seems to be back to normal. Just did as you say @erikgyepes and now it's working.
Thanks guys!
That's strange.. it should know it's a test link and not count the clicks - think imobitrax works like that?
Lol ya I had the exact same problem couple weeks ago.
I was using offer ids instead of the group id ( which is incremental starting from 1 ).
I would suggest CPVLab to put a tooltip there since many people keep getting confused.
i had the no click thing too when testing the campaign url i changed the "EDIT" at the end to something else and that way it worked fine