Changeset 1290


Ignore:
Timestamp:
04/12/18 10:23:22 (10 months ago)
Author:
mjuckes
Message:

corrected google analytics tags

Location:
CMIP6dreqbuild/trunk/src/framework/dreqPy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/dreq.py

    r1273 r1290  
    3434""" 
    3535 
     36dreqMonitoring = '''<!-- Global site tag (gtag.js) - Google Analytics --> 
     37<script async src="https://www.googletagmanager.com/gtag/js?id=UA-126903002-1"></script> 
     38<script> 
     39  window.dataLayer = window.dataLayer || []; 
     40  function gtag(){dataLayer.push(arguments);} 
     41  gtag('js', new Date()); 
     42 
     43  gtag('config', 'UA-126903002-1'); 
     44</script> 
     45''' 
     46 
     47 
    3648jsh='''<link type="text/css" href="/css/jquery-ui-1.8.16.custom.css" rel="Stylesheet" /> 
    3749 <script src="/js/2013/jquery.min.js" type="text/javascript"></script> 
    3850 <script src="/js/2013/jquery-ui.min.js" type="text/javascript"></script> 
    3951 <script src="/js/2013/jquery.cookie.js" type="text/javascript"></script> 
    40 <script src="/js/dreqMonitoring.js"></script> 
     52%s 
    4153 
    4254<link type="text/css" href="/css/dreq.css" rel="Stylesheet" /> 
    43 ''' 
     55''' % dreqMonitoring 
    4456 
    4557def dref(i,x): 
     
    979991##    dreqItemBase._htmlStyle['__general__'] = {'addRemarks':True} 
    980992 
    981       self.pageTmpl = """<html><head><title>%s</title> 
     993      self.pageTmpl = """<html><head><title>%%s</title> 
     994%%s 
     995<link rel="stylesheet" type="text/css" href="%%scss/dreq.css"> 
    982996%s 
    983 <link rel="stylesheet" type="text/css" href="%scss/dreq.css"> 
    984 <script src="/js/dreqMonitoring.js"></script> 
    985997</head><body> 
    986998 
     
    9891001   CMIP6 Data Request 
    9901002</div> 
    991 <div id="nav"><div><a href="%s" title="Home">Home</a></div></div> 
     1003<div id="nav"><div><a href="%%s" title="Home">Home</a></div></div> 
    9921004 
    9931005<div id="section"> 
    994 %s 
     1006%%s 
    9951007</div> 
    996 </body></html>""" 
     1008</body></html>"""  % dreqMonitoring 
    9971009 
    9981010  def getHtmlItemStyle(self, sect): 
  • CMIP6dreqbuild/trunk/src/framework/dreqPy/overviewTabs.py

    r1284 r1290  
    1313jsh=''' 
    1414<link type="text/css" href="/css/dreq.css" rel="Stylesheet" /> 
    15 <script src="/js/dreqMonitoring.js"></script> 
    16 ''' 
     15%s 
     16''' % dreq.dreqMonitoring 
    1717 
    1818def vfmt( x ): 
Note: See TracChangeset for help on using the changeset viewer.