alphagov / smart-answers

Serves smart answers on GOV.UK
https://docs.publishing.service.gov.uk/apps/smart-answers.html
MIT License
176 stars 120 forks source link

Ensure double quotes are used for GA4 JSON #6756

Closed AshGDS closed 6 months ago

AshGDS commented 6 months ago

Prevents JSON errors when a string within the JSON is using a single quote. E.g. if a text value was It's a nice day or this page: http://127.0.0.1:3010/check-building-safety-costs/y/yes/no/no/no/post_feb_2022/2020/140000.0/no/no/1500.0

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.