Skip to content

Commit 21b42f5

Browse files
committed
#30625 adding more changes
1 parent 3aba885 commit 21b42f5

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

dotCMS/src/main/java/com/dotcms/analytics/track/collectors/EventType.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
package com.dotcms.analytics.track.collectors;
22

3+
/**
4+
* Represents the dotCMS event types for analytics
5+
* @author jsanca
6+
*/
37
public enum EventType {
48
VANITY_REQUEST("VANITY_REQUEST"),
59
FILE_REQUEST("FILE_REQUEST"),

dotCMS/src/main/java/com/dotcms/analytics/web/AnalyticsWebAPIImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private String getJSCode(final Host currentHost, final HttpServletRequest reques
116116
Map.of("${jitsu_key}", ConfigExperimentUtil.INSTANCE.getAnalyticsKey(currentHost),
117117
"${site}", request.getLocalName() + ":" + request.getLocalPort())
118118
.forEach((key, value) -> {
119-
119+
120120
int start;
121121
while ((start = builder.indexOf(key)) != -1) {
122122
builder.replace(start, start + key.length(), value);

dotCMS/src/main/resources/ca/ca-lib.js

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
<script src="/s/ca-lib.js" data-key="${jitsu_key}"
2-
data-init-only="false"
3-
defer>
4-
</script>
5-
6-
<script>window.jitsu = window.jitsu || (function(){(window.jitsuQ = window.jitsuQ || []).push(arguments);})</script>
1+
<script src="/s/ca-lib.js" data-analytics-server="${site}" data-analytics-debug="true"></script>

0 commit comments

Comments
 (0)