claytondaley
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Wordstrap] Dropdowns Broken AgainTo avoid confusion, I temporarily changed the template so the site is usable. If you can’t reproduce, let me know and I’ll try.
A 403 error would be coming from the Piwik end.
Click the link displayed in the debug report and you can see that HostGator is is actually generating it.
The Piwik Forum (http://forum.piwik.org/) has several threads on the issue including this one (http://forum.piwik.org/read.php?2,1785) that seems to match the information on the HostGator screen.
Forum: Plugins
In reply to: [Connect Matomo (WP-Matomo, WP-Piwik)] Error: please check URL and auth tokenwp-newbie… in case you’re subscribed to this thread, Piwik 2.7 includes the fix so please update
–== UPDATED SOLUTION ==–
–== UPDATED SOLUTION ==–Piwik 2.7 includes this fix so an upgrade is now the recommended course of action.
–== UPDATED SOLUTION ==–
–== UPDATED SOLUTION ==–Found the root cause and submitted a fix to Piwik.
Advanced users can fix their Piwik installation by applying the change indicated here: https://github.com/piwik/piwik/pull/6155/files
I made a bunch of changes at the same time and ran into the same issue. After some digging, I believe the problem is actually in the new version of Piwik. In to places, PHP formatted responses look like:
array ( 0 => array ( ‘idsite’ => ‘4’, ‘name’ => ‘DaleyKlippings’, ‘main_url’ => ‘http://claytondaley.com’, ‘ts_created’ => ‘2013-04-05 22:05:58’, ‘ecommerce’ => ‘0’, ‘sitesearch’ => ‘1’, ‘sitesearch_keyword_parameters’ => ”, ‘sitesearch_category_parameters’ => ”, ‘timezone’ => ‘America/New_York’, ‘currency’ => ‘USD’, ‘excluded_ips’ => ”, ‘excluded_parameters’ => ”, ‘excluded_user_agents’ => ”, ‘group’ => ”, ‘type’ => ‘website’, ‘keep_url_fragment’ => ‘0’, ), )
when they should look more like:
a:2:{s:6:”result”;s:5:”error”;s:7:”message”;s:86:”You can’t access this resource as it requires an ‘view’ access for the website id = 1.”;}
This affects at least callPiwikAPI() and addPiwikSite() in ‘wp-piwik.php’, causing the site_id to get set to the wrong value.
I’ll raise the issue on Piwik and see if we can confirm the issue and get a quick resolution at that end.
No need to appologize. I support an open source project (daleyklippings.claytondaley.com) so I appreciate (more than most) the time you invest and am happy to help if I can.
Thanks for working on this. When I use the Tracking section in Piwik Settings, tracking across subdomains adds a line like:
_paq.push([“setCookieDomain”, “*.purelyjuicers.com”]);
In the wp-piwik plugin, it adds a line like:
_paq.push([“setDomains”, [“*.claytondaley.com”,”*.daleyklippings.claytondaley.com”]]);
It’s been a while so I’m rusty, but I pulled my Pull request back up and I think you want to use “mergeSubdomains” instead of “mergeAliasUrls” when making the API call.
—=== ADVANCED USERS ONLY ===—
After some research, I determined that the current version of the Piwik API (used by WP-Piwik) doesn’t support this option — track visitors across all subdomains of [site name]. However, I was able to make the changes in my own copy (of Piwik and WP-Piwik). Experienced repo users are welcome to take advantage of them:
1. The changes to Piwik can be found here:
https://github.com/claytondaley/piwik/tree/api-javascript-tag-options
Please note:
– I’m working off the 2.0 (currently beta 1) branch. The changes should work with earlier versions, but you’ll have to apply them yourself.
– I have submitted this improvement to the Piwik team for inclusion in future versions. This may not happen or the final version may be different (and incompatible with the WP-Piwik changes found below).2. The changes to WP-Piwik can be found here:
https://github.com/claytondaley/wp-piwik/tree/admin-tracking-options
Please note:
– I forked 0.9.9.5 — the most recent version available on Github — so you’ll get an upgrade request in WP (which will likely break my changes). I’ll get it updated to 0.9.9.6 (and future versions) when available.
– To maximize readability, I hard-coded the UI update JS into the page template. If someone wants to move it to a more WP-appropriate place, feel free to send me a Pull request.PLEASE NOTE: I’m happy to fix bugs as I too want this code functioning properly. However, I don’t have time to help users who break their own system because they don’t understand how to use these resources. PLEASE backup your systems before making these changes and ONLY undertake this upgrade if you have sufficient experience with version control systems.
THESE MODIFICATIONS ARE PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Forum: Plugins
In reply to: [YOURLS Link Creator] How do the URLs look?This plugin works with YOURLS. You must install an instance of YOURLS at a specific address (e.g. a subdomain like url.mydomain.com or a directory like http://www.mydomain.com/youlrs). The shortURL will show up at that address:
– for url.mydomain.com something like url.mydomain.com/abc123
– for http://www.mydomain.com/yourls something like http://www.mydomain.com/youlrs/abc123