Hendrik83
01-13-2011, 01:06 PM
Hi,
Here (http://codehill.com/2010/03/using-woopra-with-vbulletin/) is some code posted for a older version of vb but it does not work for vb 4.1.x.
Can someone help me to update it to work with vb 4.1.x?
<if condition="$bbuserinfo[userid]!=1">
<script type="text/javascript" src="//static.woopra.com/js/woopra.v2.js"></script>
<script type="text/javascript">
woopraTracker.addVisitorProperty("name", "
<phrase>$bbuserinfo[username]</phrase>");
woopraTracker.addVisitorProperty("email", "
<phrase>$bbuserinfo[email]</phrase>");
woopraTracker.track();
</script>
</if>
I did try to change it and then it only tracks visitors and not adding the name to it.
This is the original code from woopra to track visitors.
<!-- Start of Woopra Code -->
<script type="text/javascript">
var woo_settings = {idle_timeout:'300000', domain:'domain.com'};
(function(){
var wsc = document.createElement('script');
wsc.src = document.location.protocol+'//static.woopra.com/js/woopra.js';
wsc.type = 'text/javascript';
wsc.async = true;
var ssc = document.getElementsByTagName('script')[0];
ssc.parentNode.insertBefore(wsc, ssc);
})();
</script>
<!-- End of Woopra Code -->
Hendrik
Here (http://codehill.com/2010/03/using-woopra-with-vbulletin/) is some code posted for a older version of vb but it does not work for vb 4.1.x.
Can someone help me to update it to work with vb 4.1.x?
<if condition="$bbuserinfo[userid]!=1">
<script type="text/javascript" src="//static.woopra.com/js/woopra.v2.js"></script>
<script type="text/javascript">
woopraTracker.addVisitorProperty("name", "
<phrase>$bbuserinfo[username]</phrase>");
woopraTracker.addVisitorProperty("email", "
<phrase>$bbuserinfo[email]</phrase>");
woopraTracker.track();
</script>
</if>
I did try to change it and then it only tracks visitors and not adding the name to it.
This is the original code from woopra to track visitors.
<!-- Start of Woopra Code -->
<script type="text/javascript">
var woo_settings = {idle_timeout:'300000', domain:'domain.com'};
(function(){
var wsc = document.createElement('script');
wsc.src = document.location.protocol+'//static.woopra.com/js/woopra.js';
wsc.type = 'text/javascript';
wsc.async = true;
var ssc = document.getElementsByTagName('script')[0];
ssc.parentNode.insertBefore(wsc, ssc);
})();
</script>
<!-- End of Woopra Code -->
Hendrik