Mobile app version of vmapp.org
Login or Join
Voss4911412

: Slow PHP redirects lead to loss of marketing clicks Ok so we are running liquid web server For some reason we are losing around 70% of all of our clicks that we are tracking on our end

@Voss4911412

Posted in: #ClickTracking #Marketing #Performance #Redirects

Ok so we are running liquid web server

For some reason we are losing around 70% of all of our clicks that we are tracking on our end than we are seeing on Hasoffers tracking platform.

These are mobile clicks so we expect to loss a bit but not 70%

They say it can be a number of things that is causing this but I want to break it down here and show what we have so you can take a look at this a bit better and try to help us out.

So we are running traffic to variations of this link here

alengetcheck.us

For each phone number that we have we create a different domain.

So for instance alengetcheck.us/pndq8q is associated with 12547098787 and alengetcheck.us/pn7894 may be associated with 789278299

When sending out we do not use any sort of an HTTP, HTTPS or even We just run it as is the domain and the extension.

So the problem we are having is that when we are redirecting from alengetcheck.us/pndq8q to the other page it is taking about 1.7 seconds when we use a speed test and our score is very poor due to slow speed.

So the only thing that our system does is takes a link and redirects it. Very simple as we just have to redirect to the link set inside the link in the domain.

This is the script that we are currently using to redirect the link:

<?php
function get($url, $params=array()) {
$url = $url.'?'.http_build_query($params, '', '&');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
curl_close($ch);
return json_decode($response);
}

$link = get('http://aptrack.us/get_link.php', array('code'=> $_GET['code']));
echo "<script>window.location='".$link->url."';</script>";
?>


As you can see this is a very simple script and it shouldn't take 1.7 to redirect to the next page. It should take milliseconds.

So what should we do on our end now to make this go faster?

Is there anything wrong with our script or our calls that you see would cause a split second lag?

How can we reduce server response time to 200MS which is what Google is wanting from us right now?

Any help or suggestions would be great!

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Voss4911412

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme