Hello Bubblers,
I created a basic Google Analytics tracking code, placed this in the head area in my app settings, and it’s tracking users but it’s not tracking by page, just one “page”. Any one else run into this?
Hello Bubblers,
I created a basic Google Analytics tracking code, placed this in the head area in my app settings, and it’s tracking users but it’s not tracking by page, just one “page”. Any one else run into this?
You’ve probably hit the issue of Google Analytics and Single Page Apps. There is some information on here that could be useful even if you don’t buy the plugin . In brief, GA won’t register internal link clicks navigating within a Single Page Bubble App without something to make that happen.
https://ga4-page-view-demo.bubbleapps.io/version-test
Often in Bubble you create a Single Page Application (SPA). A Single Page Application is a web application or website that loads all of the resources required to navigate throughout the site on the first page load. As the user clicks links and interacts with the page, subsequent content is loaded dynamically. The application will often update the URL in the address bar to emulate traditional page navigation, but another full page request is never made.
The default Google Analytics tag works well with traditional websites because the snippet code is run every single time the users load a new page. However, for a single page application where the site loads new page content dynamically rather than as full page loads, the analytics.js snippet code only runs once. This means subsequent (virtual) pageviews must be captured manually as new content is viewed by your users.
This topic was automatically closed after 70 days. New replies are no longer allowed.