Plugin Directory

Changeset 2900108


Ignore:
Timestamp:
04/17/2023 10:29:07 AM (3 years ago)
Author:
workshopbutlers
Message:

Update to version 3.2 from GitHub

Location:
workshop-butler
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • workshop-butler/tags/3.2/public/js/registration-page.js

    r2770632 r2900108  
    55 */
    66function 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
    3333}
    3434
  • workshop-butler/tags/3.2/readme.txt

    r2831204 r2900108  
    33Tags: event management, training management, event schedule, workshop crm, online registrations
    44Requires at least: 5.5
    5 Tested up to: 6.1
    6 Stable tag: 3.1.9
     5Tested up to: 6.2
     6Stable tag: 3.2
    77Requires PHP: 7.2.5
    88License: GPLv2 or later
     
    7070
    7171== 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
    7277= 3.1.9 =
    7378* Fix compatibility issue with ReduxFramework
  • workshop-butler/tags/3.2/workshop-butler.php

    r2831204 r2900108  
    1212 * Description:       This plugin integrates Workshop Butler Events, Trainers and Testimonials to your WordPress
    1313 *     website.
    14  * Version:           3.1.9
     14 * Version:           3.2
    1515 * Author:            Workshop Butler
    1616 * Author URI:        https://workshopbutler.com/
     
    3737 * Currently plugin version.
    3838 */
    39 define( 'WSB_INTEGRATION_VERSION', '3.1.9' );
     39define( 'WSB_INTEGRATION_VERSION', '3.2' );
    4040
    4141/**
  • workshop-butler/trunk/public/js/registration-page.js

    r2770632 r2900108  
    55 */
    66function 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
    3333}
    3434
  • workshop-butler/trunk/readme.txt

    r2831204 r2900108  
    33Tags: event management, training management, event schedule, workshop crm, online registrations
    44Requires at least: 5.5
    5 Tested up to: 6.1
    6 Stable tag: 3.1.9
     5Tested up to: 6.2
     6Stable tag: 3.2
    77Requires PHP: 7.2.5
    88License: GPLv2 or later
     
    7070
    7171== 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
    7277= 3.1.9 =
    7378* Fix compatibility issue with ReduxFramework
  • workshop-butler/trunk/workshop-butler.php

    r2831204 r2900108  
    1212 * Description:       This plugin integrates Workshop Butler Events, Trainers and Testimonials to your WordPress
    1313 *     website.
    14  * Version:           3.1.9
     14 * Version:           3.2
    1515 * Author:            Workshop Butler
    1616 * Author URI:        https://workshopbutler.com/
     
    3737 * Currently plugin version.
    3838 */
    39 define( 'WSB_INTEGRATION_VERSION', '3.1.9' );
     39define( 'WSB_INTEGRATION_VERSION', '3.2' );
    4040
    4141/**
Note: See TracChangeset for help on using the changeset viewer.