Skip to content

Commit 1156179

Browse files
committed
Landing Page detection accuracy improvements
1 parent 56350cf commit 1156179

File tree

17 files changed

+45
-35
lines changed

17 files changed

+45
-35
lines changed

.github/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nebula-wp",
33
"title": "Nebula",
44
"description": "Advanced Starter WordPress Theme for Developers",
5-
"version": "13.1.11.438",
5+
"version": "13.1.12.650",
66
"homepage": "https://gearside.com/nebula/",
77
"repository": {
88
"type": "git",

Nebula-Child/assets/css/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Nebula-Child/resources/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//BEGIN automated edits. These will be automatically overwritten.
22
const THEME_NAME = 'nebula-child';
3-
const NEBULA_VERSION = 'v13.1.11.438'; //Wednesday, June 11, 2025 10:31:11 AM
3+
const NEBULA_VERSION = 'v13.1.12.650'; //Thursday, June 12, 2025 3:35:51 PM
44
const OFFLINE_URL = 'https://nebula.gearside.com/offline/';
55
const OFFLINE_IMG = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/offline.svg';
66
const META_ICON = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/meta/android-chrome-512x512.png';

Nebula-Child/style.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/critical.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/login.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/pre.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/modules/helpers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ nebula.updateSessionData = function(){
4646
sessionCookieData.previous_page = window.location.href;
4747
}
4848

49+
sessionCookieData.is_landing_page = false; //Update the cookie for future pages that they are no longer landing pages
50+
4951
nebula.createCookie('session', encodeURIComponent(JSON.stringify(sessionCookieData)), 0.16667); //Update the cookie now
5052
}, 'update session data');
5153
};

assets/js/modules/measure.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,13 +1107,13 @@ nebula.eventTracking = async function(){
11071107
clickEvents.splice(0, clickEvents.length - 5); //Remove everything except the latest 5
11081108
}
11091109

1110-
//Detect 3 clicks in 5 seconds
1110+
//Detect 5 clicks in 3 seconds
11111111
if ( clickEvents.length >= 5 ){
11121112
const numberOfClicks = 5; //Number of clicks to detect within the period
1113-
const period = 3; //The period to listen for the number of clicks
1113+
const period = 3; //The period to listen for the number of clicks (in seconds)
11141114

11151115
let last = clickEvents.length - 1; //The latest click event
1116-
let timeDiff = (clickEvents[last].time.getTime() - clickEvents[last - numberOfClicks + 1].time.getTime()) / 1000; //Time between the last click and previous click
1116+
let timeDiff = (clickEvents[last].time.getTime() - clickEvents[last - numberOfClicks + 1].time.getTime()) / 1000; //Time (in seconds) between the last click and previous click
11171117

11181118
//Ignore event periods longer than desired
11191119
if ( timeDiff > period ){

0 commit comments

Comments
 (0)