August 2, 200124 yr 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
August 3, 200124 yr Author 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
August 4, 200124 yr This: if (document.referrer != "") { document.write("You arrived from page " + document.referrer + ".") } should do the trick.
August 4, 200124 yr 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
August 4, 200124 yr Author <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 ]
August 4, 200124 yr Author 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
Create an account or sign in to comment