clevertap-web-sdk
Version:
<p align="center"> <img src="https://github.com/CleverTap/clevertap-ios-sdk/blob/master/docs/images/clevertap-logo.png" width = "50%"/> </p>
320 lines (238 loc) • 12.1 kB
Markdown
# Change Log
All notable changes to this project will be documented in this file.
## [1.14.2] 14th Apr, 2025
- Added support for scripts tags in Web Native Display Custom Html Template.
- Better guarding mechanism for postMessage
## [1.14.1] 9th Apr, 2025
- Added support for scripts tags in Web Native Display Visual Editor Template.
## [1.14.0] 24th Mar, 2025
- Added JSON and File Vars Support
## [1.13.7] 19th Mar, 2025
- Added option to close image only popup on click action
## [1.13.6] 13th Mar, 2025
- Fixed Overlay issue for soft prompt
## [1.13.5] 7th Mar, 2025
- Added Null Checks for Web Native Campaigns Utils
- Fixed WebInbox Runtime Issues
- Skipped WebInbox Retries when config not present
- Native Display KV_Pair Custom Event Paylaod Backward Compatibility
- Enhanced session storage check for WZRK_D with fallback and error handling.
## [1.13.4] 7th Mar, 2025
- Added support to preview html for custom native html
- Fixed white background around web-popup
## [1.13.3] 5th Mar, 2025
- Web Native Display - Campaign Priority Support
## [1.13.2] 5th Mar, 2025
- Deprecated notification.enable api, using notification.push api for rendering new prompt
- Bug fixes/enhancements like clevertap not initialised, race conditions etc
- Vapid migration and APNS support for new soft prompt
## [1.13.1] 21st Feb, 2025
- Added search parameter ctActionMode to handle all url query parameter
## [1.13.0] 19th Feb, 2025
- Added encryption support for PII data
- Fixed: Jio XSS issue in web popup
## [1.12.1] 28th Jan, 2025
- Added WebNative Custom Html and Json templates Support
- Fixed duplicate session issue for extremely slow networks
- Support for Change Log in Visual Builder
- Support for insert elements in Visual Builder
- Added Check for Soft prompt to not show if already exists
- Added Check before events & notifications push for AccountId
- Changed setOffline to process events if state changes
- Fixed SPA unviewed badge issue
## [1.12.0] 27th Jan, 2025
- Added Support for Vapid Web Push for Safari Mac
- Added Support for Web Push on Safari IOS
- Fixed Browser Identification methods
- Fixed mobile issue marking all messages as read; added sticky header to web inbox.
- Improved PWA route detection for browser back/forward buttons.
- Optimized badge updates in SPA with delayed DOM checks on route changes.
## [1.11.16] 20nd Jan, 2025
- Fixed Web Inbox Notification for SPA route changes
## [1.11.15] 14th Jan, 2025
- Fixed Custom Web Inbox Init issue
## [1.11.14] 17th Dec, 2024
- Fixed Custom Web Inbox APIs
## [1.11.13] 12th Dec, 2024
- Fixed web push soft prompt bug
## [1.11.12] 11th Dec, 2024
- Initialize Web Inbox on document readyState complete
## [1.11.11] 3rd Dec, 2024
- Support for Personalisation in HTML & JSON for Visual Editor
## [1.11.10] 22nd Nov, 2024
- Fixed Web Popup Stale Nodes Cleanup
## [1.11.9] 14th Nov, 2024
- Fixed delete & read web-inbox messages for custom inbox
## [1.11.8] 13th Nov, 2024
- Fixed anti-flicker for visual editor
- Fixed White Background issue in Web Popup
## [1.11.7] 11th Nov, 2024
- Fixed saving/fetching inbox messages for custom inbox
- Added undefined check for 'Notification' in web push
## [1.11.6] 04th Nov, 2024
- Fix for Checking Web Inbox when inbox Node becomes stale
## [1.11.5] 30th Oct, 2024
- Added support for personalisation in visual editor
## [1.11.4] 24th Oct, 2024
- Fix for gender values. Have removed frontend validation
## [1.11.3] - 17 Oct, 2024
- Support for new payload structure of Visual Editor
- Moved version check of SDK to Dashboard
## [1.11.2] - 17 Oct, 2024
- Fixes a bug where Web Popup Campaign was not working if other iframes present on DOM.
## [1.11.1] - 16 Oct, 2024
- Fixes a bug where delay was not working for Web Popup Campaigns
## [1.11.0] - 14 Oct, 2024
- Adds Additional triggers and clicks handling for Web Popup template
- Adds a fix for account id undefined for visual editor
- Adds a fix for css in soft prompt
## [1.10.1] - 8 Oct, 2024
- Adding a fix for the version check in visual editor
## [1.10.0] - 8 Oct, 2024
- Adds new api to handle rendering of customized web push prompt
## [1.9.6] - 23 Sept, 2024
- Shopify support for visual builder
## [1.9.5] - 23 Sept, 2024
- Elimninates the use for migration service worker.
## [1.9.4] - 18 Sept, 2024
- Added anti flicker solution for visual editor
## [1.9.3] - 16 Sept, 2024
- Fixes a bug where multivalue feature was giving error.
## [1.9.2] - 4 Sept, 2024
- Sending SDK and account ID via post message
## [1.9.1] - 29 Aug, 2024
- Added origin check in Visual Editor template.
## [1.9.0] - 31 July, 2024
- Renamed the template 'In Page Customisation' to 'Visual Editor'.
- Introduces Basic(Form) editor in 'Visual Editor'.
## [1.8.3] - 10 July, 2024
- Fixes an issue where contentDocument was not getting accessed for Web Popups as iframe wasn't ready.
## [1.8.2] - 18 June, 2024
- Fixes an issue in getLocation function where the location data was not sent in requests.
- Exposes a method getSDKVersion
## [1.8.1] - 14 June, 2024
- Fixes an issue with Preview of webpopups related XSS changes.
## [1.8.0] - 12 June, 2024
- Introduces the new templates 'In Page Customisation' in 'Web Native Display'.
## [1.7.6] - 11 June, 2024
- Adds Iframe sandboxing for enhanced security against cross-site scripting (XSS) vulnerabilities.
## [1.7.5] - 28 May, 2024
- Fixes a issue Banner and carousel templates regarding background color.
## [1.7.4] - 17 May, 2024
- Fixes a issue in path for installation of Service worker for shopify.
## [1.7.3] - 3 Apr, 2024
- Fixes a issue in release pipeline of Service worker.
## [1.7.2] - 2 Apr, 2024
- Fixes a bug in service worker file having deeplink issue
## [1.7.1] - 1 Apr, 2024
- Fixes a bug where clevertap script was not working due to dependency added for PE
- Fixes a bug where setMultiValue was not working
## [1.7.0] - 27 Mar, 2024
- Product experiences in Web SDK
- Carousel preview bug fix
## [1.6.10] - 17 Jan, 2024
- Fixes a bug related to Web Inbox rendering on mobile browser
## [1.6.9] - 6 Dec, 2023
- Adds public method markReadInboxMessagesForIds.
- Adds public method setLibrary to set the Flutter version.
- Fixes a bug related to Web Inbox scroll.
- Triggers an event to manage inline script errors related to Content Security Policy.
## [1.6.8] - 9 Nov, 2023
- Adds handling for email unsubscribe.
## [1.6.7] - 20 Oct, 2023
- Fixes a bug related to Web Inbox preview.
- Fixed a bug related to Web Popup ImageOnly resizing.
- Adds the debug flag in requests when log level is 3 for Integration Debugger.
- Adds handling for Web Popup Drag and Drop template.
## [1.6.6] - 13 Sept, 2023
- Fixes a bug related to Interstitial and ImageOnly campaign coexistance
- Fixed a bug where dismiss spam control was not working for campaigns created with delay.
## [1.6.5] - 24 Aug, 2023
- Fixes a bug related to sequence of message in Web Inbox
- Adds the parameter for location.protocol in page request
## [1.6.4] - 27 Jul, 2023
- Fixes a bug related to updating the WZRK_G on onUserLogin.
- Updated WZRK_G cookie expiry to 1 year.
## [1.6.3] - 8 Jul, 2023
- Adds support to store Web Inbox messages per user.
## [1.6.2] - 21 Jun, 2023
- Fixes a bug that causes the Web Inbox campaign to fail rendering upon page load, and ensures that the campaign limit for the inbox is correctly enforced.
- Fixes a bug in the Web Popup Image-only campaign, preventing the popup from scrolling along with the page.
- Fixes a bug where cpg (current page) was inaccurately sent during page transitions.
## [1.6.1] - 13 Jun, 2023
- Fixes a bug related to updating the WZRK_CAMP cookie for Web Popup Image Only campaigns.
- Fixes a bug that causes an 'Uncaught TypeError' when attempting to access the WZRK_CAMP cookie.
## [1.6.0] - 23 May, 2023
- Introduces frequency caps for 'Web Inbox' channel.
- Contains a bug which caused an 'Uncaught TypeError' when attempting to access the WZRK_CAMP cookie. Please update to v1.6.1
## [1.5.2] - 8 May, 2023
- Fixes Web Popup Image Only frequency capping
- Updates divId for Web Native Display Banner and Carousel
## [1.5.1] - 6 Apr, 2023
- Fixes issue for Web Inbox where DOM was not loaded during searching inbox-selector.
## [1.5.0] - 24 Mar, 2023
- Introduces the new templates 'Image Only' in 'Web pop up'.
## [1.4.2] - 15 Mar, 2023
- Fixes repeated firing of requests from processBackupEvents functionality
- Updates Charged Item count limit to 50
- Fixes Notification rendering in accordance to Delivery preferences
## [1.4.1] - 28 Feb, 2023
- Fixes banner and carousel loading
- Fixes Web Inbox UI
## [1.4.0] - 31 Jan, 2023
- Introduces the new "Web Inbox" channel
- Fixes issue for addMultiValue where property can be added for anonymous profile
- Adds user's location handling by setting latitude and longitude.
## [1.3.5] - 23 Dec, 2022
- Fixes cases where a requests were processed twice from cache
- Multiple On User Login requests can be fired consequtively.
- Dynamic image dimensions for web carousel
- Adds offline mode, where events can be queued and sent at a desired time later
## [1.3.4] - 1 Dec, 2022
- Fixes cases where multiple request can be fired without a gcookie.
## [1.3.3] - 16 Nov, 2022
- Adds mouse cursor as pointer in the banner html
- Adds dynamic height for banner campaigns.
- Adds a minimum width of 480px for the source element in mobile devices.
- Fixes a bug where multiple profiles were created on a slow network due to multiple requests being fired without a gcookie.
## [1.3.2] - 10 Oct, 2022
- Adds 'tries' to url params for logging purpose.
- Fixed a bug where dismiss spam control was not working for web pop up interstitial campaign.
- Renamed methods for DC from 'Direct Call' to 'Signed Call'.
## [1.3.1] - 27 Sept, 2022
- Fixed a bug where request were sent though optOut was true.
- Fixed a bug where multiple GUID were generated in slow network.
## [1.3.0] - 26 Aug, 2022
- Introduces custom HTML click tracking in Web pop up and Web exit intent.
- Adds public methods to increment/decrement values set via User profile properties.
- Adds public methods to handle multi values set via User profile properties.
- Adds flag to dismiss spam control for Web pop up and Web exit intent.
- Introduces the new templates for banner and carousel in "Web Native Display”.
- Fixed a bug where Push Unregistered event was getting triggered even when token was not available.
## [1.2.1] - 11 Aug, 2022
- Fixed a bug where useIP value was not getting updated.
- Event name updated to "CT_web_native_display" for key-value templates.
## [1.2.0] - 28 Jun, 2022
- Introduces the new "Web Personalization" channel with support for key-value templates.
- Adds new method renderNotificationViewed to capture Notification Viewed events.
- Adds new method renderNotificationClicked to capture Notification Clicked events.
- Adds analytics support for upcoming CleverTap Direct Call Web SDK.
## [1.1.3] - 14 Jun, 2022
- Fixed a bug where multiple CleverTap IDs were generated due to a variable name mismatch.
## [1.1.2] - 27 Dec, 2021
- Fixed a bug where trim method was used for non string values.
## [1.1.1] - 13 Dec, 2021
- Fixed a bug where default region was prefixed for custom domain.
## [1.1.0] - 1 Dec, 2021
- Adds new Public API to record Notification Clicked Event for Custom Web Popups
- Handle Shopify websites for serviceworker registration ready state
- Use `clevertap-prod.com` instead of `wzrkt.com` as endpoint
- Fixed a bug where the push token wasn't being transfered/registered right after a new user logs in.
- Fixed a bug where the useIP flag value being not considered.
- Fixed a bug where the service worker was never ready when it wasn't at root location.
## [1.0.0] - 22 Apr, 2021
We are super excited to announce the launch of `CleverTap Web SDK`.
This release is fully compatible with the existing `a.js` provided by CleverTap for web analytics and engagement.
### Added
- Support page tracking for Single Page Applications (SPA).
- Bypass adblockers by specifying endpoint of your proxy server.