getNewRepeat SiteCatalyst Plug-in

The getNewRepeat plug-in determines whether a user on your site is a new visitor or a repeat visitor.

Plug-in Prototype

Parameter Descriptions
d = number of days the cookie should last. It will default to 30 days if argument is omitted.
c = cookie name. A default value will be used if this argument is omitted.

Here is how you would populate a prop with the New or Repeat value, based on the last 60 days.



 * Plugin: getNewRepeat 1.2 - Returns whether user is new or repeat
s.getNewRepeat=new Function("d","cn",""
+"var s=this,e=new Date(),cval,sval,ct=e.getTime();d=d?d:30;cn=cn?cn:"