Version 4.0.3

February 9, 2023

Changed

  • Use dynamic docker container name & port for the buildchain
  • Refactored the docs buildchain to use a dynamic docker container setup

Fixed

  • Fix property types in the addCommerceProductDetaIlView() method (#77)

Version 4.0.2

January 8, 2023

Changed

  • Updated the docs to use Vitepress ^1.0.0-alpha.29
  • Updated the buildchain to use Vite ^4.0.0

Fixed

  • Fixed an issue where eager loaded categories on Commerce products wouldn't appear in analytics (#58)

Version 4.0.1

September 21, 2022

Fixed

  • Fixed an exception that could be thrown if IA's settings in the CP were not filled in (#73)

Version 4.0.0

September 16, 2022

Added

  • Initial Craft CMS 4 release

Changed

  • Updated how the Instant Analytics are registered, to allow for overriding via plugin config (#1989) (#11039)
  • Update the buildchain to use Vite ^3.1.0 for building frontend assets
  • Move to using ServicesTrait and add getter methods for services

Version 4.0.0-beta.2

March 4, 2022

Fixed

  • Updated types for Craft CMS 4.0.0-alpha.1 via Rector

Version 4.0.0-beta.1

February 26, 2022

Added

  • Initial Craft CMS 4 compatibility

Version 1.1.15

January 27, 2022

Fixed

  • Fixed an issue where craft-plugin-vite was not included as required (#65)

Version 1.1.14

January 12, 2022

Added

  • Add .gitattributes & CODEOWNERS
  • Add linting to build
  • Add compression of assets
  • Add bundle visualizer

Version 1.1.13

January 5, 2022

Changed

  • Switch to Node 16 via 16-alpine Docker tag by default
  • Update to Tailwind CSS ^3.0.0
  • Switched buildchain to Vite & craft-vite-plugin
  • Refactor to use TypeScript
  • Switched documentation system to VitePress
  • Use Textlint for the documentation
  • Build documentation automatically via GitHub action

Fixed

  • Use ${CURDIR} instead of pwd to be cross-platform compatible with Windows WSL2

Version 1.1.12

April 6, 2021

Added

  • Added make update to update NPM packages
  • Added make update-clean to completely remove node_modules/, then update NPM packages

Changed

  • More consistent makefile build commands
  • Use Tailwind CSS ^2.1.0 with JIT
  • Move settings from the composer.json “extra” to the plugin main class
  • Move the manifest service registration to the constructor

Version 1.1.11

March 3, 2021

Changed

  • Dockerized the buildchain, using craft-plugin-manifest for the webpack HMR bridge

Version 1.1.10

February 15, 2021

Changed

  • Verify if purchasable exists before getting its title
  • Updated to webpack 5 buildchain

Version 1.1.9

September 2, 2020

Added

  • Stash the various utm settings in local storage to allow proper attribution from Commerce events

Fixed

  • Set alternative title if item is not a Product (such as a donation)

Version 1.1.8

September 2, 2020

Fixed

  • Instant Analytics will no longer attempt to create its own clientId by default, instead deferring to obtaining clientId from the GA cookie. Analytics data will not be sent if there is no clientId, preventing it from creating duplicate usersessions

Version 1.1.7

April 16, 2020

Fixed

  • Fixed Asset Bundle namespace case

Version 1.1.6

April 6, 2020

Changed

  • Updated to latest npm dependencies via npm audit fix for both the primary app and the docs
  • Updated deprecated functions for Commerce 3

Fixed

  • Fixed an issue where an error would be thrown if a brand field didn't exist for a given Product Type

Version 1.1.5

February 5, 2020

Fixed

  • Fixed the logic used checking the Create GCLID Cookie setting by removing the not !

Version 1.1.4

January 15, 2020

Added

  • Added Create GCLID Cookie setting to control whether ID creates cookies or not

Version 1.1.3

November 25, 2019

Added

  • Add currency code to transaction event

Changed

  • Replace use of order number (UID) with the much more human friendly order reference
  • Documentation improvements

Version 1.1.2

November 1, 2019

Changed

  • Fixed an issue that would cause it to throw an error on the settings page if you didn't have ImageOptimized installed

Version 1.1.1

September 27, 2019

Changed

  • Fixed an issue on the Settings page where it would blindly pass in null values to getLayoutById()
  • If you're using Craft 3.1, Instant Analytics will use Craft environmental variables for secrets
  • Fixed an issue where get_class() was passed a non-object
  • Updated Twig namespacing to be compliant with deprecated class aliases in 2.7.x
  • Updated build system and package.json deps as per npm audit

Version 1.1.0

November 19, 2018

Added

  • Added Craft Commerce 2 support for automatic sending of Google Analytics Enhanced eCommerce events

Changed

  • Retooled the JavaScript build system to be more compatible with edge case server setups

Version 1.0.11

October 5, 2018

Changed

  • Updated build process

Version 1.0.10

August 25, 2018

Changed

  • Fixed an issue integrating with SEOmatic

Version 1.0.9

August 25, 2018

Changed

  • Fixed an issue where the return type-hinting was incorrect
  • Handle cases where a null IAnalytics object is returned

Version 1.0.8

August 24, 2018

Changed

  • Fixed an issue where manually using the {% hook isSendPageView %} would throw an error

Version 1.0.7

August 24, 2018

Added

  • Added welcome screen after install
  • Automatically set the documentTitle from the SEOmatic <title> tag, if SEOmatic is installed
  • Automatically set the affiliation from the SEOmatic site name, if SEOmatic is installed

Changed

  • Lots of code cleanup
  • Moved to a modern webpack build config for the Control Panel
  • Added install confetti

Version 1.0.6

March 22, 2018

Added

  • Send only the path, not the full URL to Google Analytics via eventTrackingUrl()
  • Gutted the Commerce service, pending Craft Commerce 2

Version 1.0.5

February 1, 2018

Added

  • Renamed the composer package name to craft-instantanalytics

Version 1.0.4

January 10, 2018

Changed

  • Set the documentPath for events, too

Version 1.0.3

January 8, 2018

Changed

  • Fixed an issue with parsing of the _ga_ cookie

Version 1.0.2

January 2, 2018

Changed

  • Fixed the eventTrackingUrl to work properly

Version 1.0.1

December 6, 2017

Changed

  • Updated to require craftcms/cms ^3.0.0-RC1
  • Switched to Craft::$app->view->registerTwigExtension to register the Twig extension

Version 1.0.0

October 27, 2017

Added

  • Initial release