Document.referer Or Visitor Info

Apr 25, 2006

I build a website who can monitor other website's visitors and build
some reports.

I use PHP/MySQL and Javascript.

I am stucked at the point when I have to get the page where the visitor
came from and also the keywords, if the visit was referred by a search
engine.

The second task I kinda have it done IF i will get the referrer string.

I get always 'undefined' or current website's address.

I use a .js file to get the screen resolutions, color, cpu etc.

I have tested it both online and offline.

View 2 Replies


ADVERTISEMENT

Document.referer

Sep 7, 2007

I need to say something like:

http://www.blahblahblah.com?r=document.referer

but obviously it isn't that easy, could anyone help me w/ the syntax on this one?

View 1 Replies View Related

Do MouseOver Document Swap Using Info From Script?

Mar 5, 2011

I have a script that detects the image size of a url and then shows a resized version of the image if it's necessary to resize. (this script was provided to me by the user bullant.) (Script will be shown later further down) In order to display the resized image, I must specify the id tag of myImg(and a number) in the img tag and must have an equal number of urls in the script as I do img tags. So, if I have three images I need to do the following to get them to appear.

<div><img id="myImg0" src='' alt="" /></div>
<div><img id="myImg1" src='' alt="" /></div>
<div><img id="myImg2" src='' alt="" /></div>

And this is the script (it can go right below the above code and all in the body tag):

[Code]....

View 6 Replies View Related

Ie & Referer Header

Jul 23, 2005

when I load a new page with location.href, ie doesn't set the http
referer header while firefox&mozilla does...

I tried the click() method on a hidden link, this times it works on ie,
but firefox says that click is not a function

[...
<a id="ref" href.......>...</a>
....
document.getElementById("ref").click();
....]
Is there any method which I can set this header manualy or make ie set
it properly? Or any other idea?

View 1 Replies View Related

Http Referer

Jul 23, 2005

I'm trying to list to a html page where the referer is, There are a lot of
ways ive tried and work, but the problem if my mainpage uses frames, and no
matter where I do the referer check it just reports the website url, does
anyone know a cure or workaround other than trashing the frames?

View 3 Replies View Related

HTTP-REFERER In JavaScript?

Jul 23, 2005

I need to be able to get the HTTP-REFERER of an HTML page. Is it possible to do it with a JavaScript applet included in the page itself?

View 1 Replies View Related

Explorer Not Passing Referer

Aug 29, 2009

I have a redirection... Code:

var url='http://mydomain.com';
window.location=url;

but unlike other browsers Explorer is not showing any referrer after such redirection. Is there any work-around?

View 1 Replies View Related

Remove Referer When Clicking Link?

Mar 18, 2005

I have a pages with list of sites and when I click on links to other domains, the other domains will see the referer where I clicked from. How can I avoid the referer when clickin on links on my page? (I don't want to click new IE browser and paste the url).

View 3 Replies View Related

See Where A Visitor Is Going?

Jun 8, 2010

I just wanted to know if javascript could possibly see where a visitor is heading to on the way out of a web site? Trying to find a more convenient way for people to enter URLs for bookmarks on my start page.

View 2 Replies View Related

How To Get Visitor's Country

May 30, 2011

First off, I'm working with tumblr.com which allows Javascript, but not PHP embedded in the HTML pages. It strips them out. I want to be able to get the country code (us, ca, uk, etc.) when a visitor visits my webpage so I can provide links for their locale. I'm having a very hard time finding correct information with examples to get this working. There was some .js libraries out there, but they don't work properly and say I'm in CA when I'm in US, like the jsapi from Google. Is there a way to execute a .php script which would output the country code of the visitor and be able to read/capture this result within the Javascript?

View 7 Replies View Related

Controlling Where A Visitor Comes From?

Nov 24, 2009

I want to control where my visitors are coming fromSo not visiting from google or their homepage etc etc. i want them to enter the site from one specific site.

View 1 Replies View Related

Track Visitor

Dec 5, 2005

I want to be able to know how many time a user will spend on a page so basically, I need to get an onload time and an on leave time

View 3 Replies View Related

Find Out If Visitor Has Turned Off Or Not?

Oct 30, 2011

My page has a form which has some sections that do not show unless needed, but if JS is turned off then these section will never show, so looking for a way to test if it is on or not and if not allow the page to display everything that would normally be hidden unless needed.

View 4 Replies View Related

Log Visitor Visit Length

Sep 20, 2007

this is a simple script, that uses ajax that sends to the server the total amount of time (in seconds) that the visitor was reading or whatever.

var startime=(new Date()).getTime();window.onunload=function(){
var x=(window.ActiveXObject)?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();
x.open("GET","count.php?t="+(((new Date()).getTime()-startime)/1000),true);x.send(null)}

that's the javascript...

<?php $f=fopen("visitLength.txt", 'a');fwrite($f, $_REQUEST["t"].";
");fclose($f);?>

View 3 Replies View Related

Visitor's Geographical Location And ISP?

May 19, 2005

I have seen many visitor tracking sites that log a visitor's geographical location and the ISP they are connecting through, among other useful information. I am posting this in the PHP forums and Javascript forums as thats what most trackers use (StatCounter in particular).

View 1 Replies View Related

Detect If A Visitor Is Using A Proxy?

Dec 9, 2011

I've been trying to figure out how to detect if a visitor is using a proxy. If seen php code similar to this again and again (just ignore the code since it doesn't work for anonymous proxy)

Code:
$proxy_headers = array(
'HTTP_VIA',
'HTTP_X_FORWARDED_FOR',[code]...

But as I mentioned this never works for anonymous proxies.However,every anonymous proxy I've tried puts THEIR domain somewhere in the url.Why can't we just detect anonymous proxy with Javascript by just getting

document.location.href

and making sure that the url is what it's supposed to be.This seems way too easy to be reliable.

View 7 Replies View Related

Get Visitor Counter In My Website?

Dec 6, 2007

I want in my website visitor counter list showing.

View 4 Replies View Related

Find ISP Of Visitor Using Script?

Aug 29, 2011

I have recently started a website which tells visitor's IP address, location and others details. I want to add some more functions to it. I found no way to detect visitors Internet Service Provider (ISP) using PHP. I would like to know if there is any way to do so in Javascript.[url]...

View 1 Replies View Related

Retrieving Keyword In Alert Box To Welcome Visitor

Aug 13, 2010

I am looking to insert a keyword in to a javascript alert box when someone visits my website, so say they came from codingforums, it would say "Welcome, CodingForums.com Visitor". My keyword will be passed from the ad platform I am working with and shows up correctly in the tracking, so I'd imagine it's just a case of having the snippet of code for it to show in the alert, correct? If there is no keyword, I would just like it to say "Welcome Visitor" or something.

View 11 Replies View Related

Floating Banner That Shows Once Per Visitor

Nov 13, 2011

I have this floating banner code and I want to show it once per visitor. How could I have it to show once per visitor?

View 9 Replies View Related

Determine The Geographical Location Of The Visitor?

May 28, 2009

Is there a JavaScript script that determines the geographical location of the visitor? I need one to determine that and depending on there location run 1 of about 5 different JavaScript scripts. How do i do this? Does someone know were i can can a script to do this or could someone write one.

View 5 Replies View Related

Displaying Visitor City And State?

Jun 14, 2005


How do I display a section of my site that would say something like:

"Welcome from [city, state]!"

Using their IP address, I gather, but how?

View 1 Replies View Related

Constant Website Visitor That Is Online 24/7 ?

Apr 29, 2011

I desperately need to have a constant website visitor that is online 24/7 on my website. Due to a js error. We need to keep an absolute minimum of one online site visitor. This is a temporary measure while we locate the error which so far has taken 3 js coders 3 days with no success in finding. We really need to keep the script thinking that a user is online.

Is there a bot setup that will simulate a website user that NEVER leaves a certain webpage?

If not. How can I set up the script so that I can fool it into thinking there is someone online? I really need this info... i have spent hours and another thread, with NO help on the repair. I really need to be able to keep the js rolling. I am on the verge of giving up on this project as impossible.

View 3 Replies View Related

Pop-up Image For Visitor That Visiting For First Time?

Dec 23, 2011

Anyone know how to pop-up image for visitor that visiting for first time?

the pop-up image should be appears 30seconds then it will open new window tab with adress page that i have attached to image then after 30seconds the pop-up automatically close.

View 6 Replies View Related

Popup For First Time Visitor Only - Circumvent Blockers

Apr 22, 2010

I have merged two scripts to make a popup that comes up even if blocked, and is for first time visitor only (cookie). The problem is that the way I'm doing it, it might show one or more times to the visitor. I don't want that because it will be irritating and this is a high-priority client. I'm posting the whole script because I think the problem is calling the popup before checking the cookie, but not sure how to rearrange things.

Also, I did search and found some good dhtml stuff but don't want to rewrite. This was supposed to be done last night so if I can fine tune this for now, I'll have time to rewrite something better (or at least play around with another script). Also, the popup refuses to come up in IE - I have IE6, but I detest IE and their site doesn't even load in it so whatever. I tested in FFox3, Opera 10 and Safari and it seems to work but like I say because of the onclick - it will load at any click until the user goes to a different page. I added a refresh in there but it just made things worse - too much going on for the user at that point.

[Code]....

View 9 Replies View Related

Random Iframe Rotater That Shows Once Per Visitor

Oct 20, 2011

Does any know a code or a site I can get that from?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved