This is an automated email from the ASF dual-hosted git repository. gian pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-druid-website-src.git
commit 089d8bc08069bf051251d1b5c5d77d67da077074 Author: Vadim Ogievetsky <[email protected]> AuthorDate: Tue Jun 11 20:00:32 2019 -0700 fix GA tracking try 2 --- _includes/page_footer.html | 14 +++++--------- _includes/site_head.html | 15 ++++++++++----- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/_includes/page_footer.html b/_includes/page_footer.html index 71c1b4e..878604f 100644 --- a/_includes/page_footer.html +++ b/_includes/page_footer.html @@ -24,16 +24,12 @@ </div> </footer> +<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131010415-1"></script> <script> - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - - ga('create', 'UA-40280432-1', 'auto'); - ga('set', 'anonymizeIp', true); - ga('send', 'pageview'); - + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + gtag('config', 'UA-131010415-1'); </script> <script> function trackDownload(type, url) { diff --git a/_includes/site_head.html b/_includes/site_head.html index 7911f2a..077ce7c 100644 --- a/_includes/site_head.html +++ b/_includes/site_head.html @@ -20,10 +20,15 @@ <link rel="stylesheet" href="/css/syntax.css?v=1.0"> <link rel="stylesheet" href="/css/docs.css?v=1.0"> -<script async src="https://www.googletagmanager.com/gtag/js?id=UA-131010415-1"></script> <script> - window.dataLayer = window.dataLayer || []; - function gtag(){dataLayer.push(arguments);} - gtag('js', new Date()); - gtag('config', 'UA-131010415-1'); + (function() { + var cx = '000162378814775985090:molvbm0vggm'; + var gcse = document.createElement('script'); + gcse.type = 'text/javascript'; + gcse.async = true; + gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + + '//cse.google.com/cse.js?cx=' + cx; + var s = document.getElementsByTagName('script')[0]; + s.parentNode.insertBefore(gcse, s); + })(); </script> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
