Install @maxpoints/analytics from https://www.maxchef.app/packages/maxpoints-analytics-0.6.0.tgz, replacing the current dependency (0.5.0). Delete any older copy of the package committed under vendor/ and commit the package manifest and lockfile. Never leave a file: dependency pointing outside the project workspace.
0.6.0: No code changes are required: createChefAnalytics, page, track, and consent calls stay as they are. Keep the existing Chef URL, project ID, and ingestion key. Existing captureAttribution() calls are harmless and can stay.
0.6.0: If the site lets visitors decline analytics (a cookie or consent notice), call setConsent(false) when they decline: product events then stop, and page views carry no referral, time zone, or screen size. Do not add a consent notice only for this release.
0.6.0: If the site's privacy policy lists what analytics collects, add the device's time zone (used to estimate the visitor's country and area; no IP address is looked up), screen size, browser language, and the referring site and campaign of each visit.
Run the project's build and tests, deploy, and confirm from the public site that analytics requests are still accepted. Chef marks the upgrade complete by itself once the live site reports 0.6.0.