How to show google-analytics that user is still on the page?
up vote
0
down vote
favorite
I have a site with bunch of radio channels. User comes to the page and listens to the radio. GA's session expires in 30 minutes. What better way to show GA that user is still on the page within a few hours or days ? Can I use gtag events for that purpose ?
Like this
gtag('event', 'aaa', {
'event_category' : 'bbb',
'event_label' : 'ccc'
});
add a comment |
up vote
0
down vote
favorite
I have a site with bunch of radio channels. User comes to the page and listens to the radio. GA's session expires in 30 minutes. What better way to show GA that user is still on the page within a few hours or days ? Can I use gtag events for that purpose ?
Like this
gtag('event', 'aaa', {
'event_category' : 'bbb',
'event_label' : 'ccc'
});
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a site with bunch of radio channels. User comes to the page and listens to the radio. GA's session expires in 30 minutes. What better way to show GA that user is still on the page within a few hours or days ? Can I use gtag events for that purpose ?
Like this
gtag('event', 'aaa', {
'event_category' : 'bbb',
'event_label' : 'ccc'
});
I have a site with bunch of radio channels. User comes to the page and listens to the radio. GA's session expires in 30 minutes. What better way to show GA that user is still on the page within a few hours or days ? Can I use gtag events for that purpose ?
Like this
gtag('event', 'aaa', {
'event_category' : 'bbb',
'event_label' : 'ccc'
});
asked Nov 5 at 17:55
socm_
442819
442819
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
The easiest way would be to set a longer session duration in the property settings. You can change this to up to four hours (basically exactly because of your usecase, podcast and video sites often require users to stay inactive for more than thirty minutes).
But as you figured out you can also send and event in regular intervals to keep a session alive. The non-interaction flag must be set to false, but that's the default in any case. Don't overdo it, because a session will also end after 500 hits.
The added benefit of events if that it should get you more precise measurements for things like session length. Since session length is calculated as the delta between first interaction time and last interaction time the last page in a session is often not properly counted, since users who leave do not have any more interactions. An automatic event will provide a more accurate second point of measurement.
Disadvantage is that auto events will break your bounce rate (since even users who call your page and then do nothing will be counted as active after the first auto-event). So maybe you can tie this to some action in your page instead (i.e. maybe your media player can send an event every few minutes while it's running).
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
The easiest way would be to set a longer session duration in the property settings. You can change this to up to four hours (basically exactly because of your usecase, podcast and video sites often require users to stay inactive for more than thirty minutes).
But as you figured out you can also send and event in regular intervals to keep a session alive. The non-interaction flag must be set to false, but that's the default in any case. Don't overdo it, because a session will also end after 500 hits.
The added benefit of events if that it should get you more precise measurements for things like session length. Since session length is calculated as the delta between first interaction time and last interaction time the last page in a session is often not properly counted, since users who leave do not have any more interactions. An automatic event will provide a more accurate second point of measurement.
Disadvantage is that auto events will break your bounce rate (since even users who call your page and then do nothing will be counted as active after the first auto-event). So maybe you can tie this to some action in your page instead (i.e. maybe your media player can send an event every few minutes while it's running).
add a comment |
up vote
1
down vote
accepted
The easiest way would be to set a longer session duration in the property settings. You can change this to up to four hours (basically exactly because of your usecase, podcast and video sites often require users to stay inactive for more than thirty minutes).
But as you figured out you can also send and event in regular intervals to keep a session alive. The non-interaction flag must be set to false, but that's the default in any case. Don't overdo it, because a session will also end after 500 hits.
The added benefit of events if that it should get you more precise measurements for things like session length. Since session length is calculated as the delta between first interaction time and last interaction time the last page in a session is often not properly counted, since users who leave do not have any more interactions. An automatic event will provide a more accurate second point of measurement.
Disadvantage is that auto events will break your bounce rate (since even users who call your page and then do nothing will be counted as active after the first auto-event). So maybe you can tie this to some action in your page instead (i.e. maybe your media player can send an event every few minutes while it's running).
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
The easiest way would be to set a longer session duration in the property settings. You can change this to up to four hours (basically exactly because of your usecase, podcast and video sites often require users to stay inactive for more than thirty minutes).
But as you figured out you can also send and event in regular intervals to keep a session alive. The non-interaction flag must be set to false, but that's the default in any case. Don't overdo it, because a session will also end after 500 hits.
The added benefit of events if that it should get you more precise measurements for things like session length. Since session length is calculated as the delta between first interaction time and last interaction time the last page in a session is often not properly counted, since users who leave do not have any more interactions. An automatic event will provide a more accurate second point of measurement.
Disadvantage is that auto events will break your bounce rate (since even users who call your page and then do nothing will be counted as active after the first auto-event). So maybe you can tie this to some action in your page instead (i.e. maybe your media player can send an event every few minutes while it's running).
The easiest way would be to set a longer session duration in the property settings. You can change this to up to four hours (basically exactly because of your usecase, podcast and video sites often require users to stay inactive for more than thirty minutes).
But as you figured out you can also send and event in regular intervals to keep a session alive. The non-interaction flag must be set to false, but that's the default in any case. Don't overdo it, because a session will also end after 500 hits.
The added benefit of events if that it should get you more precise measurements for things like session length. Since session length is calculated as the delta between first interaction time and last interaction time the last page in a session is often not properly counted, since users who leave do not have any more interactions. An automatic event will provide a more accurate second point of measurement.
Disadvantage is that auto events will break your bounce rate (since even users who call your page and then do nothing will be counted as active after the first auto-event). So maybe you can tie this to some action in your page instead (i.e. maybe your media player can send an event every few minutes while it's running).
answered Nov 6 at 8:39
Eike Pierstorff
24.2k32144
24.2k32144
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53159702%2fhow-to-show-google-analytics-that-user-is-still-on-the-page%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password