Skip to content

Commit

Permalink
GA4 Checkout Journey improvements, ignore cache on 404 pages, 404 cou…
Browse files Browse the repository at this point in the history
…nt updates, free space monitor update, additional log file location checks
  • Loading branch information
chrisblakley committed Jan 28, 2025
1 parent 553f159 commit e47ceec
Show file tree
Hide file tree
Showing 18 changed files with 165 additions and 104 deletions.
2 changes: 1 addition & 1 deletion .github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nebula-wp",
"title": "Nebula",
"description": "Advanced Starter WordPress Theme for Developers",
"version": "12.8.24.006",
"version": "12.8.28.645",
"homepage": "https://gearside.com/nebula/",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion Nebula-Child/assets/css/admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Nebula-Child/resources/sw.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//BEGIN automated edits. These will be automatically overwritten.
const THEME_NAME = 'nebula-child';
const NEBULA_VERSION = 'v12.8.24.006'; //Friday, January 24, 2025 12:08:18 AM
const NEBULA_VERSION = 'v12.8.28.645'; //Tuesday, January 28, 2025 3:29:27 PM
const OFFLINE_URL = 'https://nebula.gearside.com/offline/';
const OFFLINE_IMG = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/offline.svg';
const META_ICON = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/meta/android-chrome-512x512.png';
Expand Down
4 changes: 2 additions & 2 deletions Nebula-Child/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/admin.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/critical.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/login.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/pre.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions assets/js/modules/measure.js
Original file line number Diff line number Diff line change
Expand Up @@ -1597,22 +1597,30 @@ nebula.ecommerceTracking = async function(){
});

//Note: Google Analytics for Woocommerce plugin does not send "add_shipping_info" nor "add_payment_info" events as of January 2025 so we need to handle those with Nebula here
if ( jQuery('#checkout').length ){ //If we are on the Checkout page
if ( jQuery('#checkout').length || jQuery('[class*="woocommerce"] input').length ){ //If we are on the Checkout page
//Monitor for shipping method selection (for the Checkout Journey report)
nebula.dom.document.on('change', '.woocommerce-shipping-fields input, input#ship-to-different-address-checkbox, input[name="shipping_address_1"], input[name="shipping_method"]', function(){
gtag('event', 'add_shipping_info');
});

//Monitor for payment method selection (for the Checkout Journey report). Note: Stripe input fields are within an iframe!
nebula.dom.document.on('change', '#payment input, input[name="payment_method"]', function(){
gtag('event', 'add_payment_info');
if ( jQuery(this).va() != '' ){ //Only if the input has value (prevents this from triggering on load)
gtag('event', 'add_payment_info');
}
});
nebula.dom.document.on('mouseover', '.payment_methods', function(){ //This helps when iframes exist within the payment methods section
nebula.dom.document.on('mouseover', '.payment_methods', function(){ //This helps when iframes exist within the payment methods section on desktop
nebula.once(function(){
gtag('event', 'add_payment_info');
nebula.dom.document.off('mouseover', '.payment_methods'); //Remove the listener once it occurs
}, 'add payment info');
});

//If a user clicks the place order button, assume they have completed both the shipping and payment method sections (or they themselves have presumed to- even if there is a validation error)
nebula.dom.document.on('click', 'button[name="woocommerce_checkout_place_order"]', function(){
gtag('event', 'add_shipping_info');
gtag('event', 'add_payment_info');
});
}

//Place order button
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Theme URI: https://nebula.gearside.com
Description: Nebula is a springboard WordPress theme framework for developers. Like other WordPress startup themes, it has custom functionality built-in (like shortcodes, styles, and JS/PHP functions), but unlike other themes Nebula is not meant for the end-user.
Author: Nebula
Version: 12.8.24.006
Version: 12.8.28.645
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nebula
Expand Down
2 changes: 1 addition & 1 deletion inc/data/nebula_theme.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "12.8.24.006",
"version": "12.8.28.645",
"details_url": "https://github.com/chrisblakley/Nebula/commits/main",
"download_url": "https://github.com/chrisblakley/Nebula/archive/main.zip"
}
3 changes: 3 additions & 0 deletions inc/data/spam_domain_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,7 @@ gttpsale.xyz
guardlink.org
guidetopetersburg.com
gxcb.net
hagirkblog.space
halat.xyz
halefa.com
hamyshop.xyz
Expand Down Expand Up @@ -985,6 +986,7 @@ hydrazerkalo2019.net
hydrazerkalo2020.com
hyip-zanoza.me
i-spare.ru
ialgramer.shop
ib-homecredit.ru
ib-rencredit.ru
iblogpress.xyz
Expand Down Expand Up @@ -1294,6 +1296,7 @@ mikrocement.com.ua
mikrozaim.site
mikrozaym2you.ru
minegam.com
minghaimuyuan.net
miningblack.net
mirfairytale.ru
mirobuvi.com.ua
Expand Down
Loading

0 comments on commit e47ceec

Please sign in to comment.