Skip to content

Commit

Permalink
Fbq Form event improvements, GA4 property ID added to source code
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisblakley committed Oct 16, 2023
1 parent 50aced2 commit fbb1282
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 18 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.5.9.034",
"version": "11.5.16.730",
"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.5.9.034'; //Monday, October 9, 2023 12:49:12 AM
const NEBULA_VERSION = 'v11.5.16.730'; //Monday, October 16, 2023 5:30:48 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.

4 changes: 2 additions & 2 deletions assets/js/modules/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ nebula.cf7Functions = async function(){
nebula.dom.document.trigger('nebula_event', thisEvent);
gtag('event', thisEvent.event_name, nebula.gaEventObject(thisEvent)); //This event is required for the notable form metric!
window.dataLayer.push(Object.assign(thisEvent, {'event': 'nebula_form_submit_attempt'}));
nebula.fbq('track', 'Lead', {content_name: 'Form Submit (Attempt)'});
//nebula.fbq('track', 'Lead', {content_name: 'Form Submit (Attempt)'});
nebula.clarity('set', thisEvent.event_category, thisEvent.event_action);
} catch {
gtag('event', 'exception', {
Expand Down Expand Up @@ -200,7 +200,7 @@ nebula.cf7Functions = async function(){
nebula.dom.document.trigger('nebula_event', thisEvent);
gtag('event', thisEvent.event_name, nebula.gaEventObject(thisEvent)); //This event is required for the notable form metric!
window.dataLayer.push(Object.assign(thisEvent, {'event': 'nebula_form_submit_processing'}));
nebula.fbq('track', 'Lead', {content_name: 'Form Submit (Processing)'});
//nebula.fbq('track', 'Lead', {content_name: 'Form Submit (Processing)'});
nebula.clarity('track', 'Lead', {content_name: 'Form Submit (Processing)'});

jQuery('#' + e.detail.unitTag).find('button#submit').removeClass('active');
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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: Pinckney Hugo Group
Author URI: http://www.pinckneyhugo.com
Version: 11.5.9.034
Version: 11.5.16.730
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, threaded-comments, theme-options, sticky-post, post-formats, microformats, full-width-template, front-page-post-form, flexible-header, featured-images, featured-image-header, editor-style, custom-menu, custom-colors, accessibility-ready
Expand Down
4 changes: 2 additions & 2 deletions inc/analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function gtag(){dataLayer.push(arguments);}
<?php endif; ?>

<?php if ( nebula()->get_option('ga_measurement_id') ): //Google Analytics ?>
<!-- Nebula GA4 -->
<!-- Nebula GA4 <?php echo nebula()->get_option('ga_property_id'); ?> -->
<script src="https://www.googletagmanager.com/gtag/js?id=<?php echo esc_html(nebula()->get_option('ga_measurement_id')); ?>" async></script>
<script async>
window.performance.mark('(Nebula) Analytics [Start]');
Expand Down Expand Up @@ -247,7 +247,7 @@ function gtag(){}; //No GA in Nebula
<?php endif; ?>

<?php if ( nebula()->get_option('gtm_id') ): //Google Tag Manager (can be used for more than just tracking) ?>
<!-- Nebula GTM -->
<!-- Nebula GTM <?php echo nebula()->get_option('ga_property_id'); ?> -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
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.5.9.034",
"version": "11.5.16.730",
"details_url": "https://github.com/chrisblakley/Nebula/commits/main",
"download_url": "https://github.com/chrisblakley/Nebula/archive/main.zip"
}
Loading

0 comments on commit fbb1282

Please sign in to comment.