First off I my knowledge of PHP is minimal. Just enough to kludge stuff together for my purposes.
Anyway, on my lander I have an order button. When the visitor clicks that he's taken to the merchant's page via a php redirect. In between those actions I capture the referrer detail & write to a db. So the path is:
lander -> db capture page -> redirect to merchant.
To capture the referral detail & pass to the db capture page I use the following code on the lander:
On the capture page I have:
and I write the session to the db before passing the visitor to the merchant.
What's happening though is quite a few visitors are not being recorded. I can compare directly with merchants stats to see this. I'm thinking that what's happening is that when multiple visitors land at same time, only one session is being captured. If this is the case, how do I keep track of concurrent visitors sessions?
Anyway, on my lander I have an order button. When the visitor clicks that he's taken to the merchant's page via a php redirect. In between those actions I capture the referrer detail & write to a db. So the path is:
lander -> db capture page -> redirect to merchant.
To capture the referral detail & pass to the db capture page I use the following code on the lander:
Code:
session_start();
$_SESSION['myref'] = $_SERVER['HTTP_REFERER'];
Code:
session_start();
$_SESSION['myref'];
What's happening though is quite a few visitors are not being recorded. I can compare directly with merchants stats to see this. I'm thinking that what's happening is that when multiple visitors land at same time, only one session is being captured. If this is the case, how do I keep track of concurrent visitors sessions?