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

See screen sizes in piwik backend #149

Closed
thorstenstark opened this issue May 29, 2017 · 6 comments
Closed

See screen sizes in piwik backend #149

thorstenstark opened this issue May 29, 2017 · 6 comments
Labels

Comments

@thorstenstark
Copy link
Collaborator

I think it would be useful to see the screen size of the tracked devices in the piwik backend. Currently there is only one screen size called "unknown".

@brototyp
Copy link
Member

That is an easy thing to implement. In this document the res parameter is described as: The resolution of the device the visitor is using, eg 1280x1024.

I think it is save to say that that the resolution of a device never changes so we don't need to save the resolution for every event, but rather send it along. I think the best thing would be to have them as properties of the Event struct but don't implement them with the need to set it externally. Something like let screenSize = Device.makeCurrentDevice().screenSize. The other thing then would be to encode the size in the Events queryItems which encodes an event into an array of URLQueryItem.

@akshaykolte
Copy link

Assign this to me. I'll try working on it over the week.

@brototyp
Copy link
Member

brototyp commented Jun 5, 2017

There is no need to assign issues. I am looking forward to you pull request. If you want to bounce ideas back and fourth just let me know.

@akshaykolte
Copy link

akshaykolte commented Jun 8, 2017 via email

@akshaykolte
Copy link

Got my tests to run. Had an issue with pods. Made change in Tests. A file was using Tracker instead of PiwikTracker. Tests ran successfully. Still can run the Example.

@brototyp
Copy link
Member

brototyp commented Jun 9, 2017

Hi @akshaykolte thank you for your PR. I just checked about the Example application. There is the same issue like in the Tests. It's a merge issue. The example application should work, if you edit the OptOutViewController.swift and replace all Tracker with PiwikTracker. Sorry for that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants