I'm trying to set-up the Plug-in: crossVisitParticipation v1.6. I have two issues. First one is the code sample that I got doesn't not even explain what the "dv" variable is. The second issue is the code does not allow to expire the cookie at the end of the session. Does anyone know either answer?
Thanks!
Michael
/********************************************************************
*
* Main Plug-in code (should be in Plug-ins section)
*
*******************************************************************/
/*
* Plug-in: crossVisitParticipation v1.6 - stacks values from
* specified variable in cookie and returns value
*/
s.crossVisitParticipation=new Function("v","cn","ex","ct","dl","ev","dv",""
+"var s=this,ce;if(typeof(dv)==='undefined')dv=0;if(s.events&&ev;){var"
+" ay=s.split(ev,',');var ea=s.split(s.events,',');for(var u=0;u0&&arry;[arry.length-1][0]==v)arry[ar"
+"ry.length-1]=[v,new Date().getTime()];else arry[arry.length]=[v,new"
+" Date().getTime()];var start=arry.length-ct<0?0:arry.length-ct;var "
+"td=new Date();for(var x=start;x','event2',1);
*/
/********************************************************************
*
* Config variables (should be above doPlugins section)
*
*******************************************************************/
None
/********************************************************************
*
* Utility functions that may be shared between plug-ins (name only)
*
*******************************************************************/
split
join
The 'dv' parameter is a boolean to indicate whether you want duplicate values to be in the list of values returned. For instance, if the first campaign code is 1234 and then that person returns to the site with the same campaign code a few days later you can remove duplicates by setting dv to 1. The return values will be 1234>1234, whereas if you make it 0 you will only get 1234 as the return value.
As for expiring at the end of the session, that is not really the point. The point of the plugin is to tie together multiple codes from multiple visits be they campaign codes or keywords or any other values that you want to understand the participation of across multiple visits. Each values has an expiration inside the code measured in days but the cookie expiration is not something configurable.
Lastly the code you have listed there doesn't appear to be the entire plugin. If you want the full code send me an email at lamont(at)adobe.com.
Lamont
Reply