supercharge-info / supercharge.info

supercharge.info front end
https://supercharge.info
34 stars 7 forks source link

Update our Google Analytics code to support GA4 #114

Open corywright opened 6 months ago

corywright commented 6 months ago

Google has deprecated Google Analytics 3 and will shortly be turning it off completely. Our Analytics.js needs to be updated to the new format used by GA 4.

Hello Google Analytics user,

On July 1, 2024, Google Analytics 4 properties will have fully replaced Universal Analytics properties, as previously announced. From that date, Google will begin turning off all Universal Analytics services and Universal Analytics APIs, which means Universal Analytics properties will be inaccessible through the Google Analytics front-end and APIs. If you haven’t completely migrated to Google Analytics 4 properties, follow the migration guide to start making the switch today.

Exporting your data To maintain access to data from your Universal Analytics property, you should download or export your data now. If this isn’t done through one of the methods provided in the Google Analytics Help Center, your data will be permanently deleted by Google and won’t be recoverable. If you intend to use the BigQuery integration to export historical data from your Universal Analytics 360 property, we strongly recommend initiating this immediately.

Product integrations Universal Analytics data and settings accessed or used through advertiser, publisher or other product integrations will be unavailable when services have stopped. For example:

Universal Analytics goals and ecommerce transactions will stop measuring new conversions, including within linked advertising accounts. This may affect ad campaign performance if those conversions are used in combination with Smart Bidding. Universal Analytics audience lists will be closed, which may affect ad campaign media activation and performance. API requests related to Universal Analytics properties will fail, including requests for deletion of Universal Analytics data through the User Deletion API. This also means that tools relying on an API, such as Looker Studio, will not show any Universal Analytics data. BigQuery export and backfill of historical data from Universal Analytics 360 properties can only be requested up to and including June 30, 2024. Already exported data remains available in BigQuery. Attribution Projects that were part of Attribution (beta) in Google Analytics will be deleted. Sincerely,

The Google Analytics Team

paulkva commented 4 months ago

It appears that the setup steps I clicked through on Google Analytics allow us to continue collecting data via GA-4 without changing any of our site code. Technically I think we're supposed to change our old UA-xxxxxxxx tag to a new G-xxxxxxxx identifier, but Google seems to have mapped the old one to the new one. @corywright have you looked through the Google Analytics reports previously? They look OK to me, but are you able to confirm we're still collecting data properly?