We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7027263 commitc9712e0Copy full SHA for c9712e0
doc/build.sh
@@ -56,9 +56,9 @@ PYTHONWARNINGS='ignore::UserWarning' \
56
if ["$IS_RELEASE" ];then
57
echo -e'\nAdding GAnalytics code\n'
58
59
- ANALYTICS="<script>window.dataLayer=[['js',new Date()],['config','UA-43663477-4']]</script><script async src='https://www.googletagmanager.com/gtag/js?id=UA-43663477-4'></script>"
+ ANALYTICS="<script>window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;ga('create','UA-43663477-4','auto');ga('send','pageview');</script><script async src='https://www.google-analytics.com/analytics.js'></script>"
60
find"$BUILDROOT" -name'*.html' -print0|
61
- xargs -0 -- sed -i"s#<head>#<head>$ANALYTICS#i"
+ xargs -0 -- sed -i"s#</body>#$ANALYTICS</body>#i"
62
fi
63
64