I have a landing page (landing.html)
A php file that processes the form data, registers user and makes a link for autologin (signup.php) and passes the autologin link to (thankyou.php). Inside thankyou.php that url is decoded and the user is redirected (autologinned)
I have installed a tracking script to (thankyou.php) so I can track when users have registered.
My problem is that the thankyou.php is not fully loaded (after form submission), and the tracker does not see the user visit the page. (the autologin works tho, the code is executed correctly)
How can i make a client visit that thankyou.php page so the tracking software can actually catch the visit?
Here's the thankyou.php
<script type="text/javascript">TRACKING SCRIPT
</script>
<?php
$url=$_GET['to'];
if(empty($url)){
echo "No URL found";
} else {
header("Location: ".$url);
}
?>
The tracker catches the visit only if i directly visit the (thankyou.php)