1
0
Fork 0
mirror of https://github.com/Findus23/se-simulator.git synced 2024-09-19 15:53:45 +02:00

Merge branch 'master' of github.com:Findus23/se-simulator

This commit is contained in:
Lukas Winkler 2018-11-03 20:38:52 +01:00
commit e1bcc276dd
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 5 additions and 2 deletions

View file

@ -28,6 +28,8 @@ app.jinja_env.globals.update(prettydate=utils.prettydate)
app.jinja_env.globals.update(is_light_color=utils.is_light_color)
SESSION_TYPE = config.session_type
if config.session_type == "redis":
SESSION_REDIS = config.redis_instance
SESSION_COOKIE_SECURE = config.production
SESSION_USE_SIGNER = True
SESSION_KEY_PREFIX = "StackDataSessions:"

View file

@ -24,17 +24,18 @@
var _paq = _paq || [];
{# tracker methods like "setCustomDimension" should be called before "trackPageView" #}
_paq.push(['enableHeartBeatTimer']);
_paq.push(['setRequestMethod', 'POST']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "https://matomo.lw1.at/";
_paq.push(['setTrackerUrl', u + 'piwik.php']);
_paq.push(['setTrackerUrl', u + 'statistics.php']);
_paq.push(['setSiteId', '16']);
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 + 'piwik.js';
g.src = u + 'statistics.js';
s.parentNode.insertBefore(g, s);
})();
</script>