nystudio107 / craft-instantanalytics-ga4

Instant Analytics brings full Google GA4 server-side analytics support to your Twig templates and automatic Craft Commerce integration
Other
3 stars 4 forks source link

parseEnv() error with Craft 3 version #11

Closed bymayo closed 1 year ago

bymayo commented 1 year ago

Describe the bug

We're getting an error with parseEnv() on lines 315 and 316 in ../vendor/nystudio107/craft-instantanalytics-ga4/src/ga4/Analytics.php using Craft 3.6.18.

Looks like it needs to be Craft::parseEnv not App::parseEnv

To reproduce

Steps to reproduce the behaviour:

  1. Add something to the basket
  2. Error appears

Versions

khalwat commented 1 year ago

Addressed in 3.0.0-beta.2: https://github.com/nystudio107/craft-instantanalytics-ga4/releases/tag/3.0.0-beta.2