summaryrefslogtreecommitdiff
path: root/public/views/shared/ga.ejs (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-06-08Respect DNT headerSheogorath1-1/+1
Do Not Track (DNT) is an old web standard in order to notify pages that the user doesn't want to be tracked. Even while a lot of pages either ignore this header or even worse, use it for tracking purposes, the orignal intention of this header is good and should be adopted. This patch implements a respect of the DNT header by no longer including the optional Google Analytics and disqus integrations when sending a DNT header. This should reduce outside resource usage and help to stay more private. This should later-on extended towards other document content (i.e. iframe based content). The reason to not change the CDN handling is that CDNs will be deprecated with next release and removed in long term. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-30Fix CSP for disqus and Google AnalyticsSheogorath1-3/+3
This commit should fix existing problems with Disqus and Google Analytics enabled in the meta-yaml section of a note. Before this commit they were blocked by the strict CSP. It's still possible to disable the added directives using `addDisqus` and `addGoogleAnalytics` in the `csp` config section. They are enabled by default to prevent breaking changes. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2017-01-21Refactor templates and rearrange its pathWu Cheng-Han1-0/+0
2016-11-26Fix possible XSS in yaml-metadata and turn using ejs escape syntax than ↵Wu Cheng-Han1-1/+1
external lib [Security Issue]
2016-06-21Update to support new metadata: title, description, tags and ↵Cheng-Han, Wu1-0/+18
google-analytics (GA) and refactor render publish slide response function