[phpOpenTracker-User] multiple calls to image.php from same page diff client?
| Newsgroups | gmane.comp.web.phpopentracker.general |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
[fantastiche Software Sebastian -vielen Dank für deine Bemühung.]
BACKGROUND:
I've been trying to use phpOpenTracker to develop a 'conversion funnel' for
an e-commerce site. So something like below (where each page represents a
step in the process to purchase)
Site - 9000 visitors.
Shopping Cart - 1000 visitors
Login - 300 visitors
Create Account - 200 visitors
Confirm Order - 180 visitors
Success (confirm purchase) - 140 visitors
I am using the web bug.
So i set up the webbug with series of code that looked something like below
(for each page)
*--------------------------------------------------*
ecomurl = new String;
var ecomurl = location.pathname;
var trigger = 'checkout/success';
if (ecomurl.indexOf(trigger) != -1) {
document.write('<img src="myurlto/image.php?' +
'clientID=6' + '&' +
'document=' + location.pathname + '&' +
'referer=' + base64_encode(document.referrer) +
'" alt="" width="1" height="1" />'
);
}
*--------------------------------------------------*
When i look at the 'pages' section i get a whole bunch of pages I wouldn't
expect. In the above example i would expect only pages with location
'checkout/success' contained in them to be associated with client 6. But i
get all sort of pages such as below in the pages section of the client 6
report (such as http://www.myurl.com/products/ ). Also it also seems to be
undercounting visitors. Even accounting for the fact that its a web bug not
called from server side
QUESTION:
Can i call the web bug image multiple times from the same HTML page with
different client ID's. It appears to work, but then doesnt? Essentially I'm
doing this so that i can have a page that is
b) counted as part of its broader site (client id = 1)
a) counted as a website in its own right (a website of one page) (client id
= 6)
I fear people will have no idea what i'm talking about! but any help you can
offer would be very much appreciated.
Simon
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0