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

Front end error #29

Closed georgiaevans closed 8 months ago

georgiaevans commented 8 months ago

After the latest update of the plugin to 3.0.1, I'm getting an error on the front end of the site. CMS is working fine with no issues, but the following front end:

An Error occurred while handling another error: ParseError: syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/html/vendor/nystudio107/craft-instantanalytics-ga4/src/ga4/Analytics.php:81

Screenshot 2024-02-06 at 12 51 58

khalwat commented 8 months ago

Addressed.

Craft CMS 3:

You can try it now by setting your semver in your composer.json to look like this:

    "nystudio107/craft-craft-instantanalytics-ga4": "dev-develop-v3 as 3.0.2”,

Then do a composer clear-cache && composer update