Skip to content

Commit fd97851

Browse files
authored
Merge pull request jenkinsci#2 from atai/master
Send user ID field bug fix.
2 parents 94b3787 + a1f6150 commit fd97851

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/main/java/io/jenkins/plugins/matomoanalytics/MatomoPageDecorator.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class MatomoPageDecorator extends PageDecorator {
1414
private String matomoServer;
1515
private String matomoPath;
1616
private boolean matomoUseHttps = true;
17-
private boolean sendUserID = false;
17+
private boolean matomoSendUserID = false;
1818

1919
public MatomoPageDecorator() {
2020
super();
@@ -26,13 +26,13 @@ public MatomoPageDecorator(String matomoSiteID,
2626
String matomoServer,
2727
String matomoPath,
2828
boolean matomoUseHttps,
29-
boolean sendUserID) {
29+
boolean matomoSendUserID) {
3030
this();
3131
setMatomoSiteID(matomoSiteID);
3232
setMatomoServer(matomoServer);
3333
setMatomoPath(matomoPath);
3434
setMatomoUseHttps(matomoUseHttps);
35-
setSendUserID(sendUserID);
35+
setMatomoSendUserID(matomoSendUserID);
3636
}
3737

3838
@Override
@@ -75,12 +75,12 @@ public void setMatomoUseHttps(boolean matomoUseHttps) {
7575
this.matomoUseHttps = matomoUseHttps;
7676
}
7777

78-
public boolean isSendUserID() {
79-
return sendUserID;
78+
public boolean isMatomoSendUserID() {
79+
return matomoSendUserID;
8080
}
8181

82-
public void setSendUserID(boolean sendUserID) {
83-
this.sendUserID = sendUserID;
82+
public void setMatomoSendUserID(boolean matomoSendUserID) {
83+
this.matomoSendUserID = matomoSendUserID;
8484
}
8585

8686
public String getProtocolString() {

src/main/resources/io/jenkins/plugins/matomoanalytics/MatomoPageDecorator/footer.jelly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
_paq.push(['trackPageView']);
1010
_paq.push(['enableLinkTracking']);
1111
var d = document;
12-
if (${it.sendUserID}) {
12+
if ("${it.matomoSendUserID}") {
1313
var userID, userIDNode, Nodes = d.getElementsByClassName('hidden-xs hidden-sm');
1414
if (Nodes !== undefined) {
1515
_paq.push(['setUserId', Nodes[0].textContent]);

src/main/resources/io/jenkins/plugins/matomoanalytics/MatomoPageDecorator/global.jelly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<f:entry title="${%Matomo Path}" help="/plugin/matomo-analytics/matomopath.html">
1111
<f:textbox field="matomoPath"/>
1212
</f:entry>
13-
<f:entry title="${%Send user ID}" field="matomoSendUserID" help="/plugin/matomo-analytics/matomousenduserid.html">
13+
<f:entry title="${%Send user ID}" field="matomoSendUserID" help="/plugin/matomo-analytics/matomosenduserid.html">
1414
<f:checkbox/>
1515
</f:entry>
1616
<f:entry title="${%Use https}" field="matomoUseHttps" help="/plugin/matomo-analytics/matomousehttps.html">
File renamed without changes.

0 commit comments

Comments
 (0)