Google Analytics 4 (GA4) is replacing Universal Analytics. On July 1, 2023, all standard Universal Analytics properties will stop processing new hits.
The X-Cart's Google Analytics add-on supports integration with Universal Analytics and GA4, starting with v126.96.36.199 (for X-Cart 5.4.1.x) and v188.8.131.52 (for X-Cart 5.5.0.x). The new add-on version allows an easy switch from one instance to another. If you are using the add-on in connection with a Universal Analytics account, you can switch to GA4 after the add-on update. The current UA configuration settings will remain as is during the update.
So your steps to start using the new GA4 account are as follows:
Update the Google Analytics add-on to v184.108.40.206 (for X-Cart 5.4.1.x) and v220.127.116.11 (for X-Cart 5.5.0.x) in your store Admin area. Read more about how to apply updates here.
Switch your Google account from Universal Analytics to GA4. Check Google recommendations on how to do it properly.
Copy the GA4 Measurement ID and API secret to use these values for the Google Analytics add-on re-configuration in your online store. Check how to obtain the required Measurement ID and API secret here.
Connect the Google Analytics add-on in your online store to your new GA4 account. For this purpose:
That's it! Now your online store is connected to your new GA4 account and will start collecting data according to the new Google Analytics 4 protocols.