def on_html_document(self, request, doc):
        self.google_context(doc)
        self.add_analytics(doc)
        key = self.config.get('simple_key')
        if key:
            sensor = 'true' if self.config.get('map_sensor') else 'false'
            doc.jscontext['googlemaps'] = google_map_url % (key, sensor)
dataset/ETHPy150Open quantmind/lux/lux/extensions/oauth/google/__init__.py/Google.on_html_document/original