๐ŸŒ
Google Support
support.google.com โ€บ analytics โ€บ answer โ€บ 12159447
How Google Analytics works - Analytics Help
Google Analytics is a platform that collects data from your websites and apps to create reports that provide insights into your business. Measuring a website To measure a website, you first hav
๐ŸŒ
TechTarget
techtarget.com โ€บ searchbusinessanalytics โ€บ definition โ€บ Google-Analytics
What is Google Analytics and how does it work? | Definition from TechTarget
Google Analytics provides many types of reports, including the following: Real-time reports to monitor site or app activity as it happens.
๐ŸŒ
Subscribed
subscribed.fyi โ€บ home โ€บ what is google analytics in my activity? exploring insights
What is Google Analytics in My Activity? Exploring Insights - Subscribed.FYI
January 29, 2024 - Google Analytics in My Activity is a feature that allows users to track and analyze their interactions with various Google services. From website visits to search queries, it provides a detailed breakdown of user engagement.

web analytics service offered by Google

2025-05-26_Google_Analytics_dashboard.png
Lider increases conversion rate 18X with Google Analytics.
Control how data is used in Google Analytics
Google Analytics is a web analytics service offered by Google that tracks and reports website traffic and also mobile app traffic and events, currently as a platform inside the Google Marketing Platform โ€ฆ Wikipedia
Factsheet
Developer Google
Initial release 14 November 2005; 20 years ago (2005-11-14)
Platform Web, Android
Factsheet
Developer Google
Initial release 14 November 2005; 20 years ago (2005-11-14)
Platform Web, Android
๐ŸŒ
Wikipedia
en.wikipedia.org โ€บ wiki โ€บ Google_Analytics
Google Analytics - Wikipedia
3 weeks ago - Google Analytics is used to track website activity such as session duration, pages per session and the engagement rate of individuals using the site, along with the information on the source of the traffic.
๐ŸŒ
Google
developers.google.com โ€บ analytics
Google Analytics | Google for Developers
Google provides free courses to help you get started with Google Analytics. First, learn how Google Analytics works and create your account and property. Then, learn how to navigate the Google Analytics web interface, use reports for your business, and manage the data you send.
๐ŸŒ
Google
marketingplatform.google.com โ€บ about โ€บ analytics โ€บ features
Analytics & Data Analysis Features List - Analytics
Google Analytics features are designed to help you understand how people use your sites and apps, so you can take action to improve their experience.
๐ŸŒ
Google Support
support.google.com โ€บ accounts โ€บ thread โ€บ 216932792 โ€บ google-analytics-on-google-activity
Google Analytics on Google Activity - Google Account Community
Skip to main content ยท Google Account Help ยท Sign in ยท Google Help ยท Help Center ยท Community ยท Google Account ยท Terms of Service ยท Submit feedback ยท Send feedback on
๐ŸŒ
Google
marketingplatform.google.com โ€บ about โ€บ analytics
Analytics Tools & Solutions for Your Business - Google Analytics
Google Analytics gives you the tools you need to better understand your customers. You can then use those business insights to take action, such as improving your website, creating tailored audience lists, and more.
Find elsewhere
๐ŸŒ
MonsterInsights
monsterinsights.com โ€บ home โ€บ tutorials โ€บ beginnerโ€™s guide to google analytics: how does it work?
How Does Google Analytics Work? Complete Beginners Guide [Updated]
March 27, 2025 - Tracking Code Installation: When you set up Google Analytics, you add a JavaScript tracking code to your website. This code is what collects data about your visitors. Cookie Placement: When a user visits your website, Google Analytics places cookies on their browser. These small files store information about the userโ€™s activities.
๐ŸŒ
Android Police
androidpolice.com โ€บ home โ€บ browsers โ€บ what is google analytics?
What is Google Analytics?
March 21, 2023 - Google Analytics is a statistical analytics tool that tracks and reports website traffic from various browsers. It gives you insight into things like what page on your website a user starts on and how they got there.
๐ŸŒ
Google
policies.google.com โ€บ technologies โ€บ partner-sites
How Google uses information from sites or apps that use our services โ€“ Privacy & Terms โ€“ Google
If you are signed in to your Google Account, and depending on your Account settings, My Activity allows you to review and control data thatโ€™s created when you use Google services, including the information we collect from the sites and apps you have visited. You can browse by date and by topic, and delete part or all of your activity. Many websites and apps use Google Analytics to understand how visitors engage with their sites or apps.
๐ŸŒ
MonsterInsights
monsterinsights.com โ€บ home โ€บ docs โ€บ common questions โ€บ what is google analytics?
What is Google Analytics? - MonsterInsights
June 21, 2025 - Google Analytics is a free tracking and statistics software that gives you vital insights on how visitors find your site, what they do when they get there, and other important information on the health of your business: such as eCommerce and ...
๐ŸŒ
The Knowledge Academy
theknowledgeacademy.com โ€บ blog โ€บ what-is-google-analytics
What Is Google Analytics? A Comprehensive Guide
Google Analytics enables website owners to understand how visitors interact with their site. Here's an overview of how it works: 1) Tracking Code: Each webpage has a unique JavaScript tracking code that helps collect user activity data, such ...
Top answer
1 of 7
79

The problem with calling start()/stop() in every activity (as suggested by Christian) is that it results in a new "visit" for every activity your user navigates to. If this is okay for your usage, then that's fine, however, it's not the way most people expect visits to work. For example, this would make comparing android numbers to web or iphone numbers very difficult, since a "visit" on the web and iphone maps to a session, not a page/activity.

The problem with calling start()/stop() in your Application is that it results in unexpectedly long visits, since Android makes no guarantees to terminate the application after your last activity closes. In addition, if your app does anything with notifications or services, these background tasks can start up your app and result in "phantom" visits. UPDATE: stefano properly points out that onTerminate() is never called on a real device, so there's no obvious place to put the call to stop().

The problem with calling start()/stop() in a single "main" activity (as suggested by Aurora) is that there's no guarantee that the activity will stick around for the duration that your user is using your app. If the "main" activity is destroyed (say to free up memory), your subsequent attempts to write events to GA in other activities will fail because the session has been stopped.

In addition, there's a bug in Google Analytics up through at least version 1.2 that causes it to keep a strong reference to the context you pass in to start(), preventing it from ever getting garbage collected after its destroyed. Depending on the size of your context, this can be a sizable memory leak.

The memory leak is easy enough to fix, it can be solved by calling start() using the Application instead of the activity instance itself. The docs should probably be updated to reflect this.

eg. from inside your Activity:

// Start the tracker in manual dispatch mode...
tracker.start("UA-YOUR-ACCOUNT-HERE", getApplication() );

instead of

// Start the tracker in manual dispatch mode...
tracker.start("UA-YOUR-ACCOUNT-HERE", this ); // BAD

Regarding when to call start()/stop(), you can implement a sort of manual reference counting, incrementing a count for each call to Activity.onCreate() and decrementing for each onDestroy(), then calling GoogleAnalyticsTracker.stop() when the count reaches zero.

The new EasyTracker library from Google will take care of this for you.

Alternately, if you can't subclass the EasyTracker activities, you can implement this manually yourself in your own activity base class:

public abstract class GoogleAnalyticsActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // Need to do this for every activity that uses google analytics
        GoogleAnalyticsSessionManager.getInstance(getApplication()).incrementActivityCount();
    }

    @Override
    protected void onResume() {
        super.onResume();

        // Example of how to track a pageview event
        GoogleAnalyticsTracker.getInstance().trackPageView(getClass().getSimpleName());
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();

        // Purge analytics so they don't hold references to this activity
        GoogleAnalyticsTracker.getInstance().dispatch();

        // Need to do this for every activity that uses google analytics
        GoogleAnalyticsSessionManager.getInstance().decrementActivityCount();
    }

}



public class GoogleAnalyticsSessionManager {
    protected static GoogleAnalyticsSessionManager INSTANCE;

    protected int activityCount = 0;
    protected Integer dispatchIntervalSecs;
    protected String apiKey;
    protected Context context;

    /**
     * NOTE: you should use your Application context, not your Activity context, in order to avoid memory leaks.
     */
    protected GoogleAnalyticsSessionManager( String apiKey, Application context ) {
        this.apiKey = apiKey;
        this.context = context;
    }

    /**
     * NOTE: you should use your Application context, not your Activity context, in order to avoid memory leaks.
     */
    protected GoogleAnalyticsSessionManager( String apiKey, int dispatchIntervalSecs, Application context ) {
        this.apiKey = apiKey;
        this.dispatchIntervalSecs = dispatchIntervalSecs;
        this.context = context;
    }

    /**
     * This should be called once in onCreate() for each of your activities that use GoogleAnalytics.
     * These methods are not synchronized and don't generally need to be, so if you want to do anything
     * unusual you should synchronize them yourself.
     */
    public void incrementActivityCount() {
        if( activityCount==0 )
            if( dispatchIntervalSecs==null )
                GoogleAnalyticsTracker.getInstance().start(apiKey,context);
            else
                GoogleAnalyticsTracker.getInstance().start(apiKey,dispatchIntervalSecs,context);

        ++activityCount;
    }


    /**
     * This should be called once in onDestrkg() for each of your activities that use GoogleAnalytics.
     * These methods are not synchronized and don't generally need to be, so if you want to do anything
     * unusual you should synchronize them yourself.
     */
    public void decrementActivityCount() {
        activityCount = Math.max(activityCount-1, 0);

        if( activityCount==0 )
            GoogleAnalyticsTracker.getInstance().stop();
    }


    /**
     * Get or create an instance of GoogleAnalyticsSessionManager
     */
    public static GoogleAnalyticsSessionManager getInstance( Application application ) {
        if( INSTANCE == null )
            INSTANCE = new GoogleAnalyticsSessionManager( ... ,application);
        return INSTANCE;
    }

    /**
     * Only call this if you're sure an instance has been previously created using #getInstance(Application)
     */
    public static GoogleAnalyticsSessionManager getInstance() {
        return INSTANCE;
    }
}
2 of 7
17

The SDK now has a external library which takes care of all of this. Its called EasyTracker. You can just import it and extend the provided Activity or ListActivity, create a string resource with your code and you are done.

๐ŸŒ
Simplilearn
simplilearn.com โ€บ home โ€บ resources โ€บ digital marketing โ€บ what is google analytics - a comprehensive guide
What is Google Analytics | Become a Google Analytics Expert in 2024
August 24, 2025 - Unlock the secrets of Google Analytics: Master data analysis, boost traffic, and optimize performance with our comprehensive guide. Read to learn more
Address ย  5851 Legacy Circle, 6th Floor, Plano, TX 75024 United States
๐ŸŒ
YouTube
youtube.com โ€บ watch
Measure user activity with recommended events in Google Analytics - YouTube
Google Analytics (GA) collects a lot of information for you through the measurement code you've added to your website. When you need to collect more informat...
Published ย  January 17, 2023
๐ŸŒ
Quora
quora.com โ€บ What-is-Google-Analytics-GA4-and-how-does-it-work
What is Google Analytics (GA4), and how does it work? - Quora
Answer: Google Analytics 4 (GA4) is the latest version of Google Analytics, designed to track user activity across websites and apps more effectively. Unlike the old version (Universal Analytics), GA4 focuses on events instead of sessions, giving a clearer picture of user behavior. It also inclu...
๐ŸŒ
YouTube
youtube.com โ€บ watch
Get started with Google Analytics - YouTube
Google Analytics is a platform that collects data from your websites and apps to create reports that provide insights into your business. In this video, you'...
Published ย  January 17, 2023
๐ŸŒ
Reddit
reddit.com โ€บ r/googleanalytics โ€บ is there google analytics audit log to track internal users?
r/GoogleAnalytics on Reddit: is there google analytics audit log to track internal users?
February 27, 2024 -

I have been trying to understand if there some sort of an audit log in google analytics, where I can see actions of different users who have the access to analytics.

I apologize in advance for asking something so obvious, but I cannot find any information about such functionality and I cannot believe it does not exist.

๐ŸŒ
Mailchimp
mailchimp.com โ€บ marketing-glossary โ€บ google-analytics
What is Google Analytics Used For? | Mailchimp
Google Analytics is a platform that measures and reports on website traffic. It provides information about how people use your website, which includes the most popular content, the time spent on each page, and what devices are used to browse.