Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heartbeat Timer and New Visit Bug #10140

Closed
ghost opened this issue May 10, 2016 · 1 comment
Closed

Heartbeat Timer and New Visit Bug #10140

ghost opened this issue May 10, 2016 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@ghost
Copy link

ghost commented May 10, 2016

When manually adding the new visit flag ( on the the initial visit only ) combined with using the heartbeat timer, no duration is recorded for the visit. Unless you hit fresh or click onto some other page.

_paq.push(['enableHeartBeatTimer', 30]); _paq.push(['appendToTrackingUrl', 'new_visit=1']); _paq.push(["deleteCookies"]); _paq.push(['trackPageView']);

@tsteur
Copy link
Member

tsteur commented May 10, 2016

This might be similar to #10112 . There is not really a way yet to trigger a new visit. What you likely need to do is call _paq.push(['appendToTrackingUrl', '']); after the pageview was tracked. Otherwise it will be sent with each request and creates a new visit on each tracking request.

Nonetheless the heart beat feature should still work and record a visit time by looking at the code but this will only work if a user spent actually more than 30 seconds on the page.

@mattab mattab closed this as completed Jul 14, 2016
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Jul 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants