USGS-VIZLAB / vizlab

Package with utilities for building vizlab pages
Creative Commons Zero v1.0 Universal
25 stars 14 forks source link

Fixes #360 #361

Closed ldecicco-USGS closed 6 years ago

ldecicco-USGS commented 6 years ago

So, if a analytic id is used, the source will have:


<script type="application/javascript" src="https://www2.usgs.gov/scripts/analytics/usgs-analytics.js"></script>
 
  <script async src="https://www.googletagmanager.com/gtag/js?id=XXX2"></script>
  <script>
  window.dataLayer = window.dataLayer \|\| [];
  function gtag(){dataLayer.push(arguments)};
  gtag('js', new Date());
  
   gtag('config', 'XXX');
   </script>

And if not, none of that is there (tested with water use viz)

aappling-usgs commented 6 years ago

What was the secret? Is it just that you can't open and close {{#info}} twice?

ldecicco-USGS commented 6 years ago

That's my observation. I really need to learn the finer details of mustache templating stuff