Navigation Menu

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

getVisitorId returns random values when called from a server #8300

Closed
BOUDALIZ opened this issue Jul 9, 2015 · 1 comment
Closed

getVisitorId returns random values when called from a server #8300

BOUDALIZ opened this issue Jul 9, 2015 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@BOUDALIZ
Copy link

BOUDALIZ commented Jul 9, 2015

When I call getvisitorId from a server (the class PiwikTracker is on a remote server), the methods returns random values. It works fine when the class is in the same side wih the client. Howerver, I need to make all work in the server side. What shall i do?

Thanks a lot !!

@mattab
Copy link
Member

mattab commented Jul 9, 2015

Hi @BOUDALIZ

getVisitorId reads the visitor ID from the cookie (if it wasn't set with setVisitorId), so it can only work when the request is executed by the actual visitor. I don't think we can do better at this stage

@mattab mattab closed this as completed Jul 9, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Jul 9, 2015
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