Skip to content

Commit

Permalink
Re-enabled user role property, added WP ID too
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisblakley committed Feb 9, 2024
1 parent a8d23f2 commit a892764
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 16 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": "11.8.30.458",
"version": "11.9.8.978",
"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 = 'v11.8.30.458'; //Tuesday, January 30, 2024 10:59:26 AM
const NEBULA_VERSION = 'v11.9.8.978'; //Thursday, February 8, 2024 11:27:51 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.

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: 11.8.30.458
Version: 11.9.8.978
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
5 changes: 3 additions & 2 deletions inc/analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ function gtag(){dataLayer.push(arguments);}

//WordPress User ID
if ( nebula()->get_option('ga_wpuserid') && is_user_logged_in() ){
$pageview_properties['user_id'] = get_current_user_id(); //This property must be less than 256 characters (and cannot match the CID)
$pageview_properties['user_id'] = get_current_user_id(); //This property must be less than 256 characters (and cannot match the CID). GA4 does not make this easily available in reporting.
$pageview_properties['wp_id'] = get_current_user_id(); //This is to make it more easily available in GA4 reports/explorations
}

if ( is_singular() || is_page() ){
Expand Down Expand Up @@ -95,7 +96,7 @@ function gtag(){dataLayer.push(arguments);}
// $pageview_properties['relative_time'] = ucwords($time_description) . ' (' . $time_range . ')';

//WP Role
//$pageview_properties['user_role'] = nebula()->user_role();
$pageview_properties['user_role'] = nebula()->user_role();

//WPML Language
if ( defined('ICL_LANGUAGE_NAME') ){
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": "11.8.30.458",
"version": "11.9.8.978",
"details_url": "https://github.com/chrisblakley/Nebula/commits/main",
"download_url": "https://github.com/chrisblakley/Nebula/archive/main.zip"
}
6 changes: 3 additions & 3 deletions style.css

Large diffs are not rendered by default.

0 comments on commit a892764

Please sign in to comment.