text: # -*- encoding: utf-8 -*-
  
  from django.conf import settings
  
  def google_analytics(request):
      """
      Use the variables returned in this function to
      render your Google Analytics tracking code template.
      """
      ga_prop_id = getattr(settings, 'GOOGLE_ANALYTICS_PROPERTY_ID', False)
      if (settings.DEBUG != True) and (ga_prop_id != ""):
          return {
              'GOOGLE_ANALYTICS_PROPERTY_ID': ga_prop_id,
          }
      return {}