Skip to content

added isDirectBildMobileSwitcher to cover mobileSwitcher at session start #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all 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 wwwReferrer = s._utils.getReferrer(referrer);
const sessionStart = s._utils.isSessionStart();

return ((wwwReferrer.includes('www.bild.de') || wwwReferrer.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
Loading