Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server Dataware Housing > Custom CS Event...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 166 of 184
Post > Topic >>

Custom CS Events for "Clickstream" analytics

by "J.F. Larente" <jflarente@[EMAIL PROTECTED] > Sep 6, 2006 at 10:10 PM

We are trying to add some custom commerce events (BaseCommerceEvent) and
log 
it to IIS for use in the DW and Re****ting Services.

We have followed some instructions (below) and we get an error:

Could not get type for "...". Please provide a valid and fully qualified 
name for a CommerceEvent type in config settings.

STEP 1 - Create your Event Class



  a.. Write a class that inherits from BaseCommerceEvent
  b.. Add as many properties you want. As long as they can be serialized
you 
will be fine. These will be the properties that get logged to the IIS
event 
log and eventually re****ted on.


[Microsoft.CommerceServer.Runtime.CommerceEventAttribute("SomeIDForYourEvent")]

public class YourCustomEvent : BaseCommerceEvent

{

    string m_strAString;

    public YourCustomEvent()

    {

    }





    override public bool Validate()

    {

        return true;

    }





   
[Microsoft.CommerceServer.Runtime.CommerceEventMemberAttribute("SomeIDForPropertyYouWant")]

    public string SomeStringValue

    {

        get

        {

            return m_strAString;

        }

        set

        {

            m_strAString = value;

        }

    }

}





STEP 2 - Register the event in web.config



  a.. Add the event to the web.config




    <commerceEvent>

        <add className="YourAssemblypath.YourCustomEvent" 
id="SomeIDForYourEvent" loggingEnabled="true" />

    </commerceEvent>



STEP 3 - Log the event



  a.. Write the event to the log from codebehind.


YourCustomEvent myEvent = new YourCustomEvent();

myEvent.SomeStringValue = "Hi JF";

CommerceContext.LogCommerceEvent(myEvent);
 




 6 Posts in Topic:
Custom CS Events for "Clickstream" analytics
"J.F. Larente"   2006-09-06 22:10:53 
Re: Custom CS Events for "Clickstream" analytics
"Venkat" <ph  2006-09-07 09:19:16 
Re: Custom CS Events for "Clickstream" analytics
alanf@[EMAIL PROTECTED]   2006-09-07 20:30:17 
Re: Custom CS Events for "Clickstream" analytics
alanf@[EMAIL PROTECTED]   2006-09-08 00:07:18 
Re: Custom CS Events for "Clickstream" analytics
"J.F. Larente"   2006-09-07 19:11:50 
Re: Custom CS Events for "Clickstream" analytics
brianbl@[EMAIL PROTECTED]  2006-09-08 16:50:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 16:53:30 CST 2008.