Changeset 2900108
- Timestamp:
- 04/17/2023 10:29:07 AM (3 years ago)
- Location:
- workshop-butler
- Files:
-
- 6 edited
- 1 copied
-
tags/3.2 (copied) (copied from workshop-butler/trunk)
-
tags/3.2/public/js/registration-page.js (modified) (1 diff)
-
tags/3.2/readme.txt (modified) (2 diffs)
-
tags/3.2/workshop-butler.php (modified) (2 diffs)
-
trunk/public/js/registration-page.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/workshop-butler.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
workshop-butler/tags/3.2/public/js/registration-page.js
r2770632 r2900108 5 5 */ 6 6 function submitGaEvent() { 7 let wsb_ga_key = wsb_ga.google_analytics_key;8 9 if ( wsb_ga_key !== '') {10 if (typeof ga === 'function') { 11 12 ga('create', wsb_ga_key, 'auto'); 13 ga('send', 'event', 'Registration Completed', 'submit'); 14 15 } else { 16 17 (function (i, s, o, g, r, a, m) { 18 i['GoogleAnalyticsObject'] = r; 19 i[r] = i[r] || function () { 20 (i[r].q = i[r].q || []).push(arguments) 21 }, i[r].l = 1 * new Date();22 a = s.createElement(o), 23 m = s.getElementsByTagName(o)[0]; 24 a.async = 1; 25 a.src = g; 26 m.parentNode.insertBefore(a, m) 27 })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); 28 29 ga('create', wsb_ga_key, 'auto'); 30 ga('send', 'event', 'Registration Completed', 'submit'); 31 } 32 } 7 const wsb_ga_key = wsb_ga.google_analytics_key; 8 9 if (!wsb_ga_key) { 10 return; 11 } 12 13 if (typeof ga === 'function') { 14 ga('create', wsb_ga_key, 'auto', 'wsbIntegration'); 15 ga('wsbIntegration.send', 'event', 'Registration Completed', 'submit'); 16 return; 17 } 18 19 // check if google tag manager is initialized 20 if (typeof window.dataLayer !== 'object') { 21 return; 22 } 23 24 if (typeof gtag !== 'function') { 25 function gtag(){dataLayer.push(arguments);} 26 } 27 28 gtag('event', 'submit', { 29 'send_to': wsb_ga_key, 30 'event_category': 'Registration Completed' 31 }); 32 33 33 } 34 34 -
workshop-butler/tags/3.2/readme.txt
r2831204 r2900108 3 3 Tags: event management, training management, event schedule, workshop crm, online registrations 4 4 Requires at least: 5.5 5 Tested up to: 6. 16 Stable tag: 3. 1.95 Tested up to: 6.2 6 Stable tag: 3.2 7 7 Requires PHP: 7.2.5 8 8 License: GPLv2 or later … … 70 70 71 71 == Changelog == 72 = 3.2 = 73 * Update compatibility up to WP 6.2 74 * Add Google Analytics 4 support 75 * Do not load the GA analytics script any further; it should be loaded externally. 76 72 77 = 3.1.9 = 73 78 * Fix compatibility issue with ReduxFramework -
workshop-butler/tags/3.2/workshop-butler.php
r2831204 r2900108 12 12 * Description: This plugin integrates Workshop Butler Events, Trainers and Testimonials to your WordPress 13 13 * website. 14 * Version: 3. 1.914 * Version: 3.2 15 15 * Author: Workshop Butler 16 16 * Author URI: https://workshopbutler.com/ … … 37 37 * Currently plugin version. 38 38 */ 39 define( 'WSB_INTEGRATION_VERSION', '3. 1.9' );39 define( 'WSB_INTEGRATION_VERSION', '3.2' ); 40 40 41 41 /** -
workshop-butler/trunk/public/js/registration-page.js
r2770632 r2900108 5 5 */ 6 6 function submitGaEvent() { 7 let wsb_ga_key = wsb_ga.google_analytics_key;8 9 if ( wsb_ga_key !== '') {10 if (typeof ga === 'function') { 11 12 ga('create', wsb_ga_key, 'auto'); 13 ga('send', 'event', 'Registration Completed', 'submit'); 14 15 } else { 16 17 (function (i, s, o, g, r, a, m) { 18 i['GoogleAnalyticsObject'] = r; 19 i[r] = i[r] || function () { 20 (i[r].q = i[r].q || []).push(arguments) 21 }, i[r].l = 1 * new Date();22 a = s.createElement(o), 23 m = s.getElementsByTagName(o)[0]; 24 a.async = 1; 25 a.src = g; 26 m.parentNode.insertBefore(a, m) 27 })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); 28 29 ga('create', wsb_ga_key, 'auto'); 30 ga('send', 'event', 'Registration Completed', 'submit'); 31 } 32 } 7 const wsb_ga_key = wsb_ga.google_analytics_key; 8 9 if (!wsb_ga_key) { 10 return; 11 } 12 13 if (typeof ga === 'function') { 14 ga('create', wsb_ga_key, 'auto', 'wsbIntegration'); 15 ga('wsbIntegration.send', 'event', 'Registration Completed', 'submit'); 16 return; 17 } 18 19 // check if google tag manager is initialized 20 if (typeof window.dataLayer !== 'object') { 21 return; 22 } 23 24 if (typeof gtag !== 'function') { 25 function gtag(){dataLayer.push(arguments);} 26 } 27 28 gtag('event', 'submit', { 29 'send_to': wsb_ga_key, 30 'event_category': 'Registration Completed' 31 }); 32 33 33 } 34 34 -
workshop-butler/trunk/readme.txt
r2831204 r2900108 3 3 Tags: event management, training management, event schedule, workshop crm, online registrations 4 4 Requires at least: 5.5 5 Tested up to: 6. 16 Stable tag: 3. 1.95 Tested up to: 6.2 6 Stable tag: 3.2 7 7 Requires PHP: 7.2.5 8 8 License: GPLv2 or later … … 70 70 71 71 == Changelog == 72 = 3.2 = 73 * Update compatibility up to WP 6.2 74 * Add Google Analytics 4 support 75 * Do not load the GA analytics script any further; it should be loaded externally. 76 72 77 = 3.1.9 = 73 78 * Fix compatibility issue with ReduxFramework -
workshop-butler/trunk/workshop-butler.php
r2831204 r2900108 12 12 * Description: This plugin integrates Workshop Butler Events, Trainers and Testimonials to your WordPress 13 13 * website. 14 * Version: 3. 1.914 * Version: 3.2 15 15 * Author: Workshop Butler 16 16 * Author URI: https://workshopbutler.com/ … … 37 37 * Currently plugin version. 38 38 */ 39 define( 'WSB_INTEGRATION_VERSION', '3. 1.9' );39 define( 'WSB_INTEGRATION_VERSION', '3.2' ); 40 40 41 41 /**
Note: See TracChangeset
for help on using the changeset viewer.