parameters: (context)
return_statement: return data
docstring: Add google analytics async tracking code.
      Usage: {% google_analytics %}
  
      :Returns:
        Returns rendered java script code's block
docstring_summary: Add google analytics async tracking code.
      Usage: {% google_analytics %}
docstring_tokens: Add google analytics async tracking code . Usage : { % google_analytics % }
function: def google_analytics(context):
      """
      Add google analytics async tracking code.
      Usage: {% google_analytics %}
  
      :Returns:
        Returns rendered java script code's block
      """
      data = {'USE_GOOGLE_ANALYTICS': config.get_configuration('USE_GOOGLE_ANALYTICS'),
              'GOOGLE_ANALYTICS_ID': config.get_configuration('GOOGLE_ANALYTICS_ID')}
  
      if context['request'].user.is_superuser:
          data['USE_GOOGLE_ANALYTICS'] = False
  
      return data
function_tokens: def google_analytics ( context ) : data = { 'USE_GOOGLE_ANALYTICS' : config . get_configuration ( 'USE_GOOGLE_ANALYTICS' ) , 'GOOGLE_ANALYTICS_ID' : config . get_configuration ( 'GOOGLE_ANALYTICS_ID' ) } if context [ 'request' ] . user . is_superuser : data [ 'USE_GOOGLE_ANALYTICS' ] = False return data