Information Technology Reference
In-Depth Information
i strongly recommend that you be absolutely up front and honest about what
data you collect.
to track registered members, you need to apply the variable MEMBERID . this vari-
able cannot be a static variable such as:
version 4
var MEMBERID='dennis.mortensen@evcrp.com';
version 5
YWATracker.setMemberId(“dennis.mortensen@evcrp.com“);
rather, the variable has to be populated with the member's identity informa-
tion at runtime. this means that you and your team are forced to do changes directly
in the scripting language behind your website solution, such as PHP or asP, to make
this work. Let me provide an example of how you would populate the MEMBERID variable
with the email from a commenter in the popular blogging software WordPress.
version 4
<!— IndexTools Customization Code —>
<!— Remove leading // to activate custom variables —>
<script type=”text/javascript”>
//var DOCUMENTGROUP='';
//var DOCUMENTNAME='';
//var ACTION='';
var MEMBERID='<?php echo $comment_author_email; ?>';
</script>
<!— End of Customization Code —>
<!— IndexTools Code v4.00 - All rights reserved —>
<script type=”text/javascript” src=”http://visualrevenue.com/indextools.
js”></script><noscript>
<div><img src=”http://stats.indextools.com/p.pl?a=10001277xxxxx&amp;js=no”
width=”1” height=”1” alt=”“ /></div></noscript><!—//—>
<!— End of IndexTools Code —>
32
deploying a code like the previous snippet will immediately give you access to
information on a member level, such as the last visitor details. Figure 2.4 is a sample
report showing real-time activity data on a web property.
note that, just because the previous example and figure focus on a MEMBERID ,
which equals the user's email, it does not have to be an email. the MEMBERID is essen-
tially just a unique key to identify the member. i have experienced a lot of examples
where this is a customer id number from clients' customer relationship management
(CrM) systems. the reasoning for that approach is that you can pair this up with
offline data in raw data exports Yahoo! Web analytics offers.
Search WWH ::




Custom Search