Changeset 1153

Show
Ignore:
Timestamp:
02/18/10 22:53:04 (3 years ago)
Author:
d0nut
Message:

fixes

Location:
googleanalytics
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • googleanalytics/files/lib/system/event/listener/AbstractPageGoogleAnalyticsListener.class.php

    r1152 r1153  
    2222                        $val = ''; 
    2323                        $date = WCF::getUser()->registrationDate; 
    24                         if(empty($data)) { 
     24                        if(!empty($date)) { 
    2525                                $groups = array('1 year', '6 month', '3 month', '1 month', '3 week', '2 week', '1 week', '3 day', '1 day'); 
    2626                                $val = $groups[count($groups)-1]; 
  • googleanalytics/templates/googleAnalytics.tpl

    r1152 r1153  
    55<script type="text/javascript"> 
    66var pageTracker = _gat._getTracker("{GOOGLEANALYTICS_KEY}"); 
    7 {if $googleAnalyticsRegistration}pageTracker._setCustomVar(1, "registrationDate", "{$googleAnalyticsRegistration}", 1);{/if} 
     7{if $googleAnalyticsRegistration != ""}pageTracker._setCustomVar(1, "registrationDate", "{$googleAnalyticsRegistration}", 1);{/if} 
    88pageTracker._trackPageview(); 
    99</script>