Skip to content
Snippets Groups Projects
Commit 564bfd22 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Add configuration for tracking

parent 8eaff73a
No related merge requests found
......@@ -61,7 +61,7 @@ public class ConfigurationController extends AbstractController {
@Value("${links.imprint.url}")
private String imprintUrl;
@Value("${links.blog.url:}")
private String blogUrl;
......@@ -98,6 +98,15 @@ public class ConfigurationController extends AbstractController {
@Value("${question.parse-answer-option-formatting:false}")
private String parseAnswerOptionFormatting;
@Value("${tracking.provider}")
private String trackingProvider;
@Value("${tracking.tracker-url}")
private String trackingTrackerUrl;
@Value("${tracking.site-id}")
private String trackingSiteId;
@RequestMapping(method = RequestMethod.GET)
@ResponseBody
public final HashMap<String, Object> getConfiguration(HttpServletRequest request) {
......@@ -151,6 +160,15 @@ public class ConfigurationController extends AbstractController {
features.put("flashcard", "true".equals(flashcardEnabled));
features.put("gridSquare", "true".equals(gridSquareEnabled));
if (!"".equals(trackingTrackerUrl)) {
HashMap<String, String> tracking = new HashMap<String, String>();
config.put("tracking", tracking);
tracking.put("provider", trackingProvider);
tracking.put("trackerUrl", trackingTrackerUrl);
tracking.put("siteId", trackingSiteId);
}
return config;
}
}
......@@ -94,7 +94,7 @@ security.user-db.reset-password-mail.body=You requested to reset your \
password.\n\nPlease follow the link below to set a new password:\n{0}
# LDAP authentication
#
#
# Specific parameters:
# url: LDAP server URL
# user-dn-pattern: Pattern used to check user credentials against the LDAP
......@@ -200,3 +200,14 @@ links.overlay.url=https://arsnova.eu/overlay/
links.organization.url=
links.imprint.url=
links.privacy-policy.url=
################################################################################
# Tracking
################################################################################
# It is possible to use an external tracking software with ARSnova. Currently
# Piwik is the only supported tracking provider.
#
tracking.provider=piwik
tracking.tracker-url=
tracking.site-id=
......@@ -94,7 +94,7 @@ security.user-db.reset-password-mail.body=You requested to reset your \
password.\n\nPlease follow the link below to set a new password:\n{0}
# LDAP authentication
#
#
# Specific parameters:
# url: LDAP server URL
# user-dn-pattern: Pattern used to check user credentials against the LDAP
......@@ -199,3 +199,14 @@ links.overlay.url=https://arsnova.eu/overlay/
links.organization.url=
links.imprint.url=
links.privacy-policy.url=
################################################################################
# Tracking
################################################################################
# It is possible to use an external tracking software with ARSnova. Currently
# Piwik is the only supported tracking provider.
#
tracking.provider=piwik
tracking.tracker-url=
tracking.site-id=
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment