Summary
This error occurs if the Google Analytics(GA) tracking parameters are not added to your mode of integration. Cross-check the GA tracking parameter on the code of the checkout page.
Solution :
The below implementation setup step should be verified to solve the "track_info_error".
A. If you are using Drop-in Script
Enable the data-cb-ga-enabled attribute to “true” when you invoke Chargebee JS in the page headers of your site.
<script src="https://js.chargebee.com/v2/chargebee.js"
data-cb-site="you-chargebee-subdomain" data-cb-ga-enabled="true">
</script>
B. If you are using API
Pass the enableGATracking parameter as “true” while initializing the Chargebee instance.
var chargebeeInstance = Chargebee.init({
site: "your-chargebee-subdomain",
enableGATracking: true
});
Note: GA Tracking is applicable only when the above parameters are added. To know more about built-in support for Google Analytics (GA) refer to this document.
Google Universal Analytics is getting deprecated and will stop processing data on July 1, 2023. Google has introduced a new analytics engine Google Analytics 4 (GA4) that offers new and advanced features that can help you gain a deeper understanding of your website visitors' behavior, such as event tracking, machine learning, and cross-device tracking. With the new setup of GA4 and Chargebee-hosted pages it leverage the capabilities to analyze and optimize your website's performance, providing you with a competitive edge in the subscription business. If your site is configured with Google Universal Analytics version, then you can refer to this link to migrate to Google Analytics 4.
If you're using Google Tag Manager to connect to your Google Analytics 4, we recommend that you use this separate integration, and never both.