You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 line
556 B

  1. # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  2. # MIT License. See license.txt
  3. from __future__ import unicode_literals
  4. import webnotes
  5. no_sitemap = 1
  6. base_template_path = "templates/pages/website_script.js"
  7. def get_context(context):
  8. script_context = { "javascript": webnotes.conn.get_value('Website Script', None, 'javascript') }
  9. if not webnotes.conf.developer_mode:
  10. script_context["google_analytics_id"] = webnotes.conn.get_value("Website Settings", "Website Settings",
  11. "google_analytics_id")
  12. return script_context