Once my user is logged into my site, I know their user name. Drupal implementation is for a private Intranet, why should it not be able to track custom profile information (username)
$ global $user;
$user->name;

In example owa:
owa_cmds.push(['setGlobalEventProperty', 'user_name', 'bob']);

Doc:
http://forums.openwebanalytics.com/?topic=visitor-email-adress

function in module?

Thanks

Comments

javierpastor’s picture

ok,

in owa.module

add after global $user;
$user_name = $user->name;

add after $script .= "owa_cmds.push(['setSiteId', '". $settings['id'] . "']);\n";
$script .= "owa_cmds.push(['setGlobalEventProperty', 'user_name', '". $user_name . "']);\n";

beardedgeek’s picture

It appears the javascript is seperated into it's own owa.js file so this can't be done?

beardedgeek’s picture

Issue summary: View changes

add information private site