From 853d514ccc136642f0776804e65be7c836a43819 Mon Sep 17 00:00:00 2001 From: Sander Date: Fri, 1 Apr 2022 16:58:15 +0200 Subject: [PATCH] Prepare version 1.11.0 * Add support for Google Analytics v4 (GA4) * Minified version of the script is now included --- README.md | 2 +- changelog.md | 3 ++- package.json | 2 +- src/booking.js | 2 +- src/eventHelper.js | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6907ce0..da058f5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![Build Status](https://travis-ci.org/Recras/online-booking-js.svg?branch=master)](https://travis-ci.org/Recras/online-booking-js) # Recras JS Integration Library -Version: 1.10.3 +Version: 1.11.0 JS library for easy online booking, contact form, and voucher integration diff --git a/changelog.md b/changelog.md index 0020eab..9f274fc 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # Changelog -## Unreleased +## 1.11.0 (2022-04-04) +* Add support for Google Analytics v4 (GA4) * Minified version of the script is now included ## 1.10.3 (2021-12-16) diff --git a/package.json b/package.json index f8efe85..c271dc6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@recras/online-booking-js", - "version": "1.10.3", + "version": "1.11.0", "description": "JS library for easy integration of Recras online booking and voucher sales", "main": "dist/onlinebooking.js", "scripts": { diff --git a/src/booking.js b/src/booking.js index 25e62f2..b942a69 100644 --- a/src/booking.js +++ b/src/booking.js @@ -1,6 +1,6 @@ /******************************* * Recras integration library * -* v 1.10.3 * +* v 1.11.0 * *******************************/ class RecrasBooking { diff --git a/src/eventHelper.js b/src/eventHelper.js index d5385dd..97ff35d 100644 --- a/src/eventHelper.js +++ b/src/eventHelper.js @@ -83,7 +83,7 @@ class RecrasEventHelper { // v4 this.sendGA4Event(this.ga4EventMap(action), ga4Value); } else if (typeof window.gtag === 'function') { - // Global Site Tag (v4) + // Global Site Tag (v3) let eventData = { event_category: RecrasEventHelper.PREFIX_GLOBAL + ':' + cat, };