Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9229547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:35:56+00:00 2026-06-18T05:35:56+00:00

I need to start and to stop a session at a specific hour. In

  • 0

I need to start and to stop a session at a specific hour.
In official documentation I have found only that I can start a new session :

// Called after a user successfully signs in to your app.
private void onSignIn() {
  ... // The rest of your onSignIn() code.
  myTracker.setStartSession(true); // Where myTracker is an instance of Tracker.
  myTracker.sendEvent("app_flow", "sign_in", "", null); // First activity of new session.
}

But I have no methods in API to stop the session or to change the session time out.
I already tried to set ga_sessionTimeout to 1 day but it didn’t worked,
after ~8 minutes the session was closed even when the activity was still on the screen.I saw it on my Google Analytics dashboard’s real-time overview.

Other ideas will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:35:57+00:00Added an answer on June 18, 2026 at 5:35 am

    By default, Google Analytics will group hits that are received within
    30 minutes of one another into the same session.

    My goal was to keep the session alive till some event happen,
    therefore I decided to implement Heartbeat mechanism.
    That will send event every X minutes to keep the session alive.

    It solved my problem.

    P.S. : I discovered another thread with same solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to be able to start/stop a per-session GUI agent from a root
I need to start NSTimer by 0:0:0 that I am doing and I have
I need to handle with this service ( start/ stop ), But I can't
I need to start a project that will be json-API-centric, which means that most
I want to (need to) start a sub-process from a perl script that checks
I need to start and stop a thread very frequently using push button..I am
I need to programmatically start or stop a flow or endpoint from another flow.
I've wrote a service that should start/stop other services. This is the code I'm
I need to control (start\stop\restart) a perl daemon from a web application (php). Daemon
I need to use a function to start and stop Tor via web interface.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.