Active
Project:
Open Web Analytics
Version:
7.x-1.0-alpha2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2012 at 11:38 UTC
Updated:
17 Jun 2013 at 14:13 UTC
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
Comment #1
javierpastor commentedok,
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";
Comment #2
beardedgeek commentedIt appears the javascript is seperated into it's own owa.js file so this can't be done?
Comment #2.0
beardedgeek commentedadd information private site