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

Tracking code could check whether HTTP is working, if not use HTTPs by default #7267

Open
Tobias-Conrad opened this issue Feb 22, 2015 · 12 comments
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.

Comments

@Tobias-Conrad
Copy link

url not defined!!
i was disabling all plugins and deleted the piwik user and the site in piwik. still getting no urls.

may have a look at www.holzkunst-conrad.de

if you could not help please provide a link where to get help.
piwik forum gives no answer to my question.
the question was asked about 10 times without a solution.

@tsteur
Copy link
Member

tsteur commented Feb 22, 2015

Sorry, I don't understand what you mean with "getting no urls"?

@Tobias-Conrad
Copy link
Author

i run 7 pages only on this one the problem occurs:
www.holzkunst-conrad.de

urls not defined:
http://awesomescreenshot.com/0794gn6u9c

software settings of piwik installation
http://awesomescreenshot.com/03e4gn6t75

settings of wp installation
http://awesomescreenshot.com/0094gn7if0

thanks for helping ;-)

@sgiehl
Copy link
Member

sgiehl commented Feb 22, 2015

Your tracking pixel is redirect from http to https. While redirecting, the parameters seem to get encoded. Maybe thats causing problems. Try to replace the url within the tracking pixel to use https only:
var u="https://www.santegra-international.com/piwik/";

@Tobias-Conrad
Copy link
Author

@sgiehl you did it working well. So how can piwik be improved to avoid this?

@sgiehl
Copy link
Member

sgiehl commented Feb 22, 2015

Not sure if we can manage that safely within piwik as it is depending on the tracked site and it's server.
Maybe we could improve the tracking code generator to give an option to choose https only?

@Tobias-Conrad
Copy link
Author

i looked at my other sites they have the same problem.
Normaly when one site that needs to be tracked is with SSL also the tracking host domain has to be with SSL. So https only is mostly used i think.

@Tobias-Conrad
Copy link
Author

to bad also the https://wordpress.org/plugins/wp-piwik/ plugin throwing out var u="//www. and not possible to change it. i will link to this discussion.
https://wordpress.org/support/topic/ssl-piwik-host-and-non-ssl-tracked-sites-error-not-found-url

@mattab
Copy link
Member

mattab commented Feb 23, 2015

fyi this is documented in the faq

@mattab mattab added this to the Mid term milestone Feb 23, 2015
@mattab mattab added the Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. label Feb 23, 2015
@mattab
Copy link
Member

mattab commented Feb 23, 2015

I dont think we can fix anything here, but maybe we could make the UI more clear to explain to user to investigate their redirect script?

Btw @Tobias-Conrad do you know how your redirects http -> https are implemented?

@Tobias-Conrad
Copy link
Author

@mattab May i did not get your question.
My Piwik is hosted on an server with https.
Most sites I track have no https.
So May Piwik tracking should choose to track via https when not getting the url!
It is so easy... Host is https tracking is https for all sites.
This I promise you will be a heavy impact in user statisfaction. You just lose them when they have problems.

@tsteur
Copy link
Member

tsteur commented Feb 23, 2015

👍 maybe we can find a solution for this when we know that the current Piwik user is using https. We could do a request to http and check the response code etc. for a more accurate tracking code generator

@mattab mattab changed the title url not defined!! more information howto fix please. Tracking code could check whether HTTP is working, if not use HTTPs by default Mar 5, 2015
@mattab
Copy link
Member

mattab commented Mar 5, 2015

I renamed issue in attempt to clarify the scope

@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Projects
None yet
Development

No branches or pull requests

4 participants