diff --git a/app/views/layout.server.view.pug b/app/views/layout.server.view.pug index 8f870023..f6c458f9 100644 --- a/app/views/layout.server.view.pug +++ b/app/views/layout.server.view.pug @@ -2,8 +2,8 @@ doctype html html(lang='en', xmlns='http://www.w3.org/1999/xhtml') head title=title - - // General META + + // General META meta(charset='utf-8') meta(http-equiv='Content-type', content='text/html;charset=UTF-8') meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1') @@ -11,11 +11,11 @@ html(lang='en', xmlns='http://www.w3.org/1999/xhtml') meta(name='apple-mobile-web-app-capable', content='yes') meta(name='apple-mobile-web-app-status-bar-style', content='black') - // Semantic META + // Semantic META meta(name='keywords', content=keywords) meta(name='description', content=description) - // Facebook META + // Facebook META meta(property='og:site_name', content=title) meta(property='og:title', content=title) meta(property='og:description', content=description) @@ -23,19 +23,19 @@ html(lang='en', xmlns='http://www.w3.org/1999/xhtml') meta(property='og:image', content='/img/brand/logo.png') meta(property='og:type', content='website') - // Twitter META + // Twitter META meta(name='twitter:title', content=title) meta(name='twitter:description', content=description) meta(name='twitter:url', content=url) meta(name='twitter:image', content='/img/brand/logo.png') - // Fav Icon + // Fav Icon link(href='/static/modules/core/img/brand/favicon.ico', rel='shortcut icon', type='image/x-icon') link(rel='stylesheet', href='/static/lib/font-awesome/css/font-awesome.min.css') link(rel='stylesheet', href='/static/lib/bootstrap/dist/css/bootstrap.min.css') link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900') - //Bower CSS dependencies + //Bower CSS dependencies each bowerCssFile in bowerCssFiles link(rel='stylesheet', href=bowerCssFile) link(rel='stylesheet', href='/static/lib/angular-input-stars/angular-input-stars.css') @@ -52,9 +52,24 @@ html(lang='en', xmlns='http://www.w3.org/1999/xhtml') block content script window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;ga('create','#{google_analytics_id}','auto');ga('send','pageview') - + script(src='https://www.google-analytics.com/analytics.js', async='', defer='') + script(type="text/javascript"). + var _paq = window._paq || []; + _paq.push(["setDocumentTitle", document.domain + "/" + document.title]); + _paq.push(["setCookieDomain", "*.ohmyform.com"]); + _paq.push(["setDomains", ["*.ohmyform.com"]]); + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="//metrics.ohmyform.com/"; + _paq.push(['setTrackerUrl', u+'matomo.php']); + _paq.push(['setSiteId', '1']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); + })(); + script(type="text/javascript"). window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=t.forceSSL||"https:"===document.location.protocol,a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=(r?"https:":"http:")+"//cdn.heapanalytics.com/js/heap-"+e+".js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n);for(var o=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","removeEventProperty","setEventProperties","track","unsetEventProperty"],c=0;c