Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion extensions/doPlugins/doPlugins_global.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,14 @@ s._articleViewTypeObj = {

},

isDirectBildMobileSwitcher: function (referrer) {
const wwwhReferrer = s._utils.getReferrer(referrer);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious about what is wwwhReferrer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oha, no idea but I think it was not an eye test :-D

const sessionStart = s._utils.isSessionStart();

return ((wwwhReferrer.includes('www.bild.de') || wwwhReferrer.includes('www.sportbild.bild.de')) && sessionStart);

},

isValidURL: function (urlString) {
try {
new URL(urlString);
Expand Down Expand Up @@ -420,7 +428,7 @@ s._articleViewTypeObj = {
} else if (this.isWithoutReferrer() && this.isNavigated() && isArticle) {
pageViewEvent = 'event26,event202'; // Dark Social Marketing Channel only with session start
channel = '';
}else if (this.isDirect(referrer)) {
}else if (this.isDirect(referrer) || this.isDirectBildMobileSwitcher(referrer)) {
pageViewEvent = 'event207'; // no Referrer at Session Start
channel = 'Direct';
} else {
Expand Down