Vlad,

If possible please share your experience about integrating OWA on Hackit project and the reasons for using PHP based integration so that we can plan ahead of time.

Hi Pramendra,
It's nice to meet you.
Both js and php imlementations of OWA are pretty straighforward, but we ended up using the php implementation because it proved to be more reliable and correct in the tracking statistics. so, whenever you want to track something with OWA, you just insert code similar to this:
                //tracking code for owa
               require_once(HACKIT_OWA_PATH);

               $owa = new owa_php();
               $event = $owa->makeEvent();
               // Set the site id you want to track
               $event->setSiteId(HACKIT_OWA_SITE_ID);
               $event->setPageTitle(OWA EVENT NAME);
               $event->set('session', session_id());
               $owa->trackPageView($event);

OWA_PATH is the path to your owa install
OWA_SITE_ID is the internal site id that owa asigns for each site it tracks and you can see it n the owa config for that site OWA EVENT can be everything you want to track (open a page, submit a form, click a button etc) $event->set is a way to add additional parameters to the tracked data. In my case i needed the session_id

that's about it.
let me know if it works

vlad

_______________________________________________
Farsides mailing list - [email protected]

Wiki:  http://farsides.com/
List:  http://farsides.com/ml/
Forum: http://farsides.com/forum/
Ideas: http://farsides.com/ideas/
Chat:  http://farsides.com/chat/

Reply via email to