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

1st and 3rd party cookie issues #7100

Closed
ThaDafinser opened this issue Jan 28, 2015 · 6 comments
Closed

1st and 3rd party cookie issues #7100

ThaDafinser opened this issue Jan 28, 2015 · 6 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@ThaDafinser
Copy link
Contributor

What i want to do?
I'm using piwik on many intranet sites, so i would like to use 3rd party cookie, that the visit is always the same accross the websites. This is currently easy to achieve and works.

But as soon as you would like to track e.g. goals on the backend it will be a problem, since the backend wont get the visitorId from the 3rd party cookie.

Only solution: use for 1st and 3rd party cookie the same visitorId.

If my thoughts gone right so far, the new userId feature would also benefit from it, since its only one visit the userId will be available accross all websites if it was set on at least one website.
(there are intranet wesites with a userId and some without)

@tsteur
Copy link
Member

tsteur commented Jan 28, 2015

I haven't used 3rd party cookies so far therefore I can't say so much. I'd assume they are already both the same. Can you maybe to something like Piwik.getTracker(var url = '/', var idSite = 2).getVisitorId()?

When talking about tracking goals on the backend you mean in your backend right? Not the Piwik backend? Do you access the 1st party cookie there to get the visitorId?

@ThaDafinser
Copy link
Contributor Author

@tsteur yes i'm talking about a "custom/own" backend. I can only access the 1st party cookie, since by security (and thats good) you never receive 3rd party cookies.

But yes AFAIK the cookie differ. Backend goals were always tracked as a new visitor. Multiple goals from the same user of course as the same visitor.

@tsteur
Copy link
Member

tsteur commented Jan 29, 2015

sure, you can't access 3rd party cookies on your own backend. I was wondering if you could get the 3rd party visitor id via the above mentioned JS method, then use this value to set a 1st party cookie. Might be a solution/hack until it is fixed. I'm not sure if the current behaviour is like this by design maybe ping @mattab

@ThaDafinser
Copy link
Contributor Author

If i have it correctly in my mind its by design.

The reason is simple: the 3rd party cookie is set from website #1. When now a user first visit website #2 the 3rd party cookie is taken and the 1st party cookie will get freshly generated.

@mattab
Copy link
Member

mattab commented Feb 9, 2015

Hi @ThaDafinser if you think there is a bug or something we could improve in Piwik, could you please describe the steps to reproduce / describe the feature or so?

@mattab
Copy link
Member

mattab commented Feb 19, 2015

@ThaDafinser please reopen if you can clarify the issue, or create a new one with steps to reproduce etc. thanks

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

3 participants