xwp / site-performance-tracker

Allows you to detect and track site performance metrics
GNU General Public License v2.0
96 stars 15 forks source link

GA4 ID admin setting persist #109

Closed mehigh closed 1 year ago

mehigh commented 1 year ago

When configuring GA4 ID, the setting does not persist in the administrative interface:

Screenshot 2023-07-14 at 11 06 46

The setting is saved in the database and used for outputting the code correctly

","ga4_id":"UA-1234588"},"chance":"1"};

Problem is reproducible with version 1.3.

Probably it's around this area of the code: https://github.com/xwp/site-performance-tracker/blob/master/php/src/class-analyticsidfield.php#L53C9-L55