Expand my Community achievements bar.

SOLVED

Omniture c_w(...) question

Avatar

Level 1

My question is this:

I need to log an event via the cookie writer to ... gs.c_w(...).  I only see examples of adding eVars to the cookie, but not events.  I've asked around and no one seems to know how exactly to do this.  I'm rather new to Omniture so you'll have to forgive my ignorance a bit.  :)

Thanks in advance!

1 Accepted Solution

Avatar

Correct answer by
Level 6

I'd use s.apl call rather than the += you suggested..

var xx = cookie value c_w(_) s.events=s.apl(s.events,xx,',',2);

that way the , delimiter gets added if needed between existing events and the one from the cookie.

View solution in original post

2 Replies

Avatar

Employee

Hi,

You may try writing "event3" into cooke value c_w(_)

then call the cookie as  s.events+=cookie value c_w(_)

Let me know if you have more questions.

TM

Avatar

Correct answer by
Level 6

I'd use s.apl call rather than the += you suggested..

var xx = cookie value c_w(_) s.events=s.apl(s.events,xx,',',2);

that way the , delimiter gets added if needed between existing events and the one from the cookie.