Welcome to WebmasterWorld Guest from 54.198.147.221

Forum Moderators: phranque

Message Too Old, No Replies

All I want is a simple cookie

that WebTrends can read!!!

     

mnw

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

Full Member

10+ Year Member

joined:Sept 21, 2000
posts:207
votes: 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
7:57 pm on Oct 10, 2000 (gmt 0)

Senior Member

WebmasterWorld Senior Member rcjordan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 22, 2000
posts:9138
votes: 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.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 21, 1999
posts:2141
votes: 0


mnw - This site [search.internet.com] is likely to have something you can use.
1:54 pm on Oct 11, 2000 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38070
votes: 16


MNW, what language did you want it in?

mnw

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

Full Member

10+ Year Member

joined:Sept 21, 2000
posts:207
votes: 0


Don't care. It can be either JS or CGI.
9:01 am on Oct 12, 2000 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38070
votes: 16


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

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

Full Member

10+ Year Member

joined:Sept 21, 2000
posts:207
votes: 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
2:55 am on Oct 22, 2000 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38070
votes: 16


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members