Limitations of Google Tag Manager - GTM

Modified on: Wed, 22 Mar, 2023 at 6:36 PM


PayNow page is not opening in iframe with GTM tracking

Below are the limitations of GTM

  • Built-in GTM support is only available for checkout and portal pages and not for any other forms of modal-type action pages in Chargebee such as Pay Now or Extend Subscription.
  • If checkout or portal is launched by customers via Chargebee emails sent to them such as an accept quote email or a cart abandonment notification, built-in tracking will not work because Chargebee.js is not loaded in such cases.
  • If in-app checkout or portal is opened in a new tab/window, the GTM integration will not work because Chargebee.js is not loaded.

If you want to collect payment in iFrame, PayNow link cannot be opened in an iframe and we cannot use Pay Now link for GTM tracking purposes

Instead of embedding Pay Now in an iframe, you could either use some of JS default functions like the and within that function, you can call Collect Now API or you could retrieve the URL from the API and then ensure that the Collect Now link is added to the button. 

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 integrationand never both.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.