PotzUK Posted August 2, 2001 Posted August 2, 2001 Is there any way to log where a person came from to your site? E.g. I have a counter database which logs the IP, Date, Time and the browser they used, is there any way to get filemaker to also log how they got to the site? (Ie which site they came from). I'm using an Extreme tracker, but the FM database is logging _loads_ more hits than the tracker is, and frankly I'm more inclined to go with my Filemaker counter. I only really use the Extreme tracker to see where ppl are comin from I'm assuming it would take some sort of Javascript to do so... Any ideas? TIA
PotzUK Posted August 3, 2001 Author Posted August 3, 2001 I don't have Lasso, spent my last pennies on the unlim FM license hehe I'm sure I can mod that Javascript into a URL... cheers
Anatoli Posted August 4, 2001 Posted August 4, 2001 This: if (document.referrer != "") { document.write("You arrived from page " + document.referrer + ".") } should do the trick.
John May - Point In Space Posted August 4, 2001 Posted August 4, 2001 Lasso has a [log] tag, which will log any data to a file. That, with Lasso's [referrer_url] tag would do what you're looking for. Not sure if CDML has similar. - John
PotzUK Posted August 4, 2001 Author Posted August 4, 2001 <script language="javascript1.2"> { document.write("<frameset framespacing="0" border="0" rows="1,*" frameborder="no" bordercolor="#333333"><frame name="header" scrolling="no" target="main" src="http://www.pyroport.com:591/FMPro?-db=counter.fp5&-format=main.htm&-lay=counter&-format=top.htm&R=" + document.referrer + "&-new" marginwidth="0" marginheight="0"> <frame name="main" src="http://www.pyroport.com:591/FMPro?-db=news.fp5&-lay=main&-format=main.htm&use=yes&-sortfield=Date&-sortorder=Descending&-sortfield=Time&-sortorder=Descending&-max=25&-find"& gt; <noframes><body><p>This page uses frames, but your browser doesn"t support them.</p></body></noframes></frameset>") } </script> I'm having trouble with the top frame, whenever document.referrer is actually a value Filemaker coughs up a Error Type 5, which is an invalid command. I've tried various setups but I can't get it to work [ August 04, 2001: Message edited by: PotzUK ]
PotzUK Posted August 4, 2001 Author Posted August 4, 2001 OK, I've managed to get a system to work, now my problem is URL's that have ?'s or &'s in... For example, a referal from this page would be http://www.fmforums.com/ubb/cgi-bin/ultimatebb.cgi?ubb=reply&f=21&t=000310 Filemaker thinks the 'ubb' (ultimatebb.cgi?ubb) is a field name, and gives a 102 error Argit
Recommended Posts
This topic is 8780 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now