@recras/online-booking-js 1.10.1 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  [![Build Status](https://travis-ci.org/Recras/online-booking-js.svg?branch=master)](https://travis-ci.org/Recras/online-booking-js)
2
2
 
3
3
  # Recras JS Integration Library
4
- Version: 1.10.1
4
+ Version: 1.11.0
5
5
 
6
6
  JS library for easy online booking, contact form, and voucher integration
7
7
 
@@ -128,15 +128,20 @@ The library sends out a few custom events when certain things change:
128
128
  You can use these events for custom actions, such as analytics. For use in code, please refer to
129
129
  the constants in [src/eventHelper.js](src/eventHelper.js).
130
130
 
131
- When Google Analytics integration is enabled, certain events sent to GA include a label and/or value:
131
+ When Google Analytics integration is enabled, certain events are sent to GA. Which events are sent depends on the version of GA you are using. For Universal Analytics (v3) and older, these custom events are sent and they include a label and/or value:
132
132
 
133
133
  | Event | Label | Value |
134
- | ---------------------------------- | --------------------------------- | ----------------------------------- |
134
+ | ---------------------------------- | --------------------------------- |-------------------------------------|
135
135
  | `Recras:Booking:PackageChanged` | Package name | Package ID |
136
136
  | `Recras:Booking:DateSelected` | Selected date, in ISO 8601 format | N/A |
137
- | `Recras:Booking:BuyInProgress` | Package name | Package ID |
137
+ | `Recras:Booking:BuyInProgress` | Package name | Rounded total amount of the booking |
138
138
  | `Recras:Booking:RedirectToPayment` | N/A | Rounded total amount of the booking |
139
139
  | `Recras:ContactForm:Submit` | N/A | Form ID |
140
140
  | `Recras:Voucher:TemplateChanged` | N/A | Template ID |
141
- | `Recras:Voucher:BuyInProgress` | Template name | Template ID |
141
+ | `Recras:Voucher:BuyInProgress` | Template name | Rounded total amount of the order |
142
142
  | `Recras:Voucher:RedirectToPayment` | N/A | Rounded total amount of the order |
143
+
144
+ For GA4, these events are sent:
145
+ * when a package is selected: `select_content`. The ID of the package is included.
146
+ * when a voucher is selected: `select_content`. The ID of the template is included.
147
+ * when the user is redirected to the payment provider: `begin_checkout`. The total amount as well as all selected items (name, price, quantity) are included.
package/changelog.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.11.0 (2022-04-04)
4
+ * Add support for Google Analytics v4 (GA4)
5
+ * Minified version of the script is now included
6
+
7
+ ## 1.10.3 (2021-12-16)
8
+ * Change value of "BuyInProgress" events from package/template ID (bookings/vouchers, respectively) to total price
9
+
10
+ ## 1.10.2 (2021-10-07)
11
+ * Clicking required checkboxes would become slow after clicking a few times - fixed
12
+
3
13
  ## 1.10.1 (2021-09-09)
4
14
  * Make redirect without Mollie more robust
5
15