homepage Welcome to WebmasterWorld Guest from 54.237.184.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
All I want is a simple cookie
that WebTrends can read!!!
mnw




msg:670178
 7:47 pm on Oct 10, 2000 (gmt 0)

I need to set a cookie to track new vs returning visitors. I don't want to get the visitors name, print anything on the screen (This is your nn visit) or anything very complicated. Every JS that I have found tries to get "cute". This also needs to be tracked by WebTrends which maybe another problem, but one I can probably deal with WebTrends tech support (but if someone here can solve both of my problems without talking to a tech support, I'd be forever thankfull). Can anyone point me in the right direction? Thanks

 

rcjordan




msg:670179
 7:57 pm on Oct 10, 2000 (gmt 0)

Play with this, it might be gutted or modified to do what you want. This one rotates a banner shown in an iframe, that's about all I remember.

<HTML>

<HEAD>
<TITLE>
cookie
</TITLE>

<script language="JavaScript">
<!--

// ### This function stops stray error messages ###

function stoperror(){
return true
}

window.onerror=stoperror

// ### *IF* the browser is IFRAMES capable, we can refresh ###
// ### JUST the IFRAME if the visitor leaves the page and ###
// ### later returns to it in the same session. ###

function checkIFRAMEcapable() {
if (navigator.appName == "Microsoft Internet Explorer") {
doCookieReload();
}
}

function doCookieReload() {
if (document.cookiesamp.cookienumbr.value > 0) {
window.location.reload(true);
}
if (-document.cookie.length < -4) {
var prevcookie = document.cookie.substring(4,document.cookie.length);
}
else {
var prevcookie = 0;
}
document.cookiesamp.cookienumbr.value = prevcookie;
var stepcookie = parseInt(prevcookie);
var ck = stepcookie + 1;
document.cookie = "num=" + ck;
}

// -->
</script>

</HEAD>
<BODY
onLoad="checkIFRAMEcapable();"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#800080">
<BASE TARGET="_top">

<CENTER>

<TABLE WIDTH=600 BORDER=0 CELLPADDING=2 CELLSPACING=0>
<TR>
<TD ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFFFFF">

banner SSI call here.

</TD>
</TR></TABLE>

</CENTER>
<BR><BR><BR>

<!-- FORM TAG IS REQUIRED FOR COOKIE RELOAD -->
<FORM NAME="cookiesamp">
<INPUT NAME="cookienumbr" SIZE=1>
</FORM>

</BODY>
</HTML>

added:
After re-reading the Webtrends part of your request, I doubt this will work. But I'll leave it up anyway.

DaveAtIFG




msg:670180
 7:29 am on Oct 11, 2000 (gmt 0)

mnw - This site [search.internet.com] is likely to have something you can use.

Brett_Tabke




msg:670181
 1:54 pm on Oct 11, 2000 (gmt 0)

MNW, what language did you want it in?

mnw




msg:670182
 1:57 pm on Oct 11, 2000 (gmt 0)

Don't care. It can be either JS or CGI.

Brett_Tabke




msg:670183
 9:01 am on Oct 12, 2000 (gmt 0)

The actual cookie code is easy from a cgi. The trick will be getting it into something Webtrends can handle.

Do I understand that you just want to build a separate standard web server log file and then run Webtrends over it? (You'd do the log file managment)

Or is there some other format specific to Webtrends for cookies that you want?

mnw




msg:670184
 10:12 am on Oct 21, 2000 (gmt 0)

Sorry Brett, I missed this post entirely. I would like to have it included in the standard Apache log file I download from the host. We are using WebTrends v6.0a. WebTrends can read the cookie (as I understand their documentation) if you give them the cookie ID string

Brett_Tabke




msg:670185
 2:55 am on Oct 22, 2000 (gmt 0)

Ok, I wasn't thinking along those lines. I was thinking I had a app, but not for that.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved