Sergio S.
Forum Replies Created
-
Forum: Plugins
In reply to: [Tracking code for Matomo, by Sérgio Coelho Santos] Feature: Dissable CookiesHello again, @togir.
I have just uploaded a new version, with the feature you requested.
Please update the plugin on your site and let me know if it works as expected.
Kind regards,
@sergiorcsForum: Plugins
In reply to: [Tracking code for Matomo, by Sérgio Coelho Santos] Feature: Dissable CookiesHi, @togir.
I don’t see why not, and it seems simple enough. I think i’ll have time to implement it this week. I’ll let you know just as soon as i’m done.
Thanks for the suggestion!
Warm regards,
@sergiorcsPS: I’m sorry for your loss.
Hi, @hobbnet1 ,
I have just sent you an email with details of how i may help you. (If it’s not on your Inbox, please check your Spam folder.)
Basically, i can log in to you host, access the site’s database, and manually set a new password for you. (One that you should change afterwards, for security reasons.)
Best regards,
SergioHello again, @b-smark,
As promised, i have just released an update to this plugin, to address the issue you reported.
Thank you for your help. If you find any other issue or have any suggestions for possible improvements, just let me know.
Kind regards,
@sergiorcsHi, @b-smark,
You’re right. I can’t remember why that particular piece of code is there, but i think it has to do with how the tracking code was generated by Piwik 1.x .
I will fix that ASAP, probably before the end of this week. I’ll update this ticket then.
Thanks for taking the time to report that!
Kind regards,
@sergiorcsHi, @batteriesinc ,
It’s been a while, i know.
I’ve had time to give this some deeper consideration over the last few weeks. Here is my trail of thought:
- “If i were to include the proxy PHP file alongside the plugin’s files, it might be blocked by security measures, like the ones from Sucuri.”
- “Ok, then perhaps i could do like Wordfence and have my plugin install a file at the root of the website, on demand. But not all servers may allow this kind of thing, and i’d have to write a lot of extra code.”
- “Maybe i can just check for the presence of a file named “piwik.php” at the root of the website, then. By default, the plugin would display a disabled checkbox on the dashboard; but when said file is present, the option becomes available. That would be simple enough and it could work.”
- “Then again, though i’d very much like to include this feature on my plugin, very few people have requested it. Plus, i’d like to keep things as simple as possible.”
I’ve been juggling this in my head. Then, yesterday it hit me: there’s one fairly easy way to have my plugin use the piwik.php proxy, without me having to add any extra feature! Have a look at these here steps:
- Follow these steps to create a piwik.php proxy file. (I strongly suggest that you set the config options directly inside piwik.php, to keep everything in one single file.)
- As described in the guide, put the PHP file at the root of the website to track.
- Ensure that you can access the file on the site, by opening it on your browser. (Don’t expect much of a result. Just see that it’s not a 4xx or 5xx server error page.)
- Open the WordPress Dashboard on said site. Browse to my plugin‘s settings page.
- Set the “Address” option to the same domain as the website you wish to track. (You should be able to just copy and paste it directly from the browser’s address bar, at that moment.)
Yup, it’s that simple! (Or not, depending on what you were expecting.)
Now, if you’re thinking something like “I knew that! I was just hoping for a better solution!” or “Thanks, Captain Obvious. That’s what i’ve been doing.”, that’s just because it’s the simplest, most efficient way to use a proxy with this plugin.
@batteriesinc, i’m going to mark this as resolved, but that doesn’t mean we can’t keep exchanging ideas on this subject. I can even lend you a hand in implementing this on any of your websites, if you like. (I haven’t tested this procedure as thoroughly as i’d like. Any feedback is welcome.)
Let me know what you think.
Cheers,
@sergiorcsPS: If you’re also thinking “How come it took you all this time to reach a solution that seems so simple and obvious?”… well… “i ain’t the sharpest tool in the shed”. 😀
Good news, @serrazina! I have finally had a chance to implement this feature!
Since this is actually what Piwik now recommends, instead of adding an option which might confuse some users i just changed the default behaviour. So, by updating to version 1.0.10 you’ll see that the tracking code is now added to the
head. (Thenoscripttag remains at the bottom of the page as before, though.)Kind regards,
@sergiorcs(Perfect. 😀 )
Thanks, @batteriesinc !
(I haven’t forgotten your request @serrazina. I just haven’t had the time yet.)
Hi, @batteriesinc !
Thanks for the review! (Perhaps you meant to write it here, though?)
Interesting request. I didn’t know one could do that with Piwik, but i totally agree it’s something important. (The documentation you refer to is here and here, right?)
There is another feature request i plan to implement as soon as possible. I’ll see if i can implement the proxy feature too. I just ask that you be patient, as i have a lot on my plate right now – it may take weeks before i can look into this.
Thanks for the feedback!
Cheers,
@sergiorcsHello again, @serrazina.
Today, as i was about to start working on these modifications, i noticed something important. Though Piwik itself now recommends that you put the tracking code inside the
head(and there has been some discussion about this), there is the matter of thenoscriptbit, which is mean to offer support for tracking browsers where JavaScript support is not available or has been disabled.This complicates things a little: that
noscriptuses an image; images can’t be put inside thehead. I’ll have to reformulate a small part of the plugin.
As usual, so much to do, so little time… I’ll try to implement this as soon as possible.Kind regards,
@sergiorcsForum: Reviews
In reply to: [Tracking code for Matomo, by Sérgio Coelho Santos] Top du topIt is i who thank you for the kind words, @nadeistos ! (And yes, i can read French. 😉 )
Forum: Plugins
In reply to: [Tracking code for Matomo, by Sérgio Coelho Santos] Tracking Data ??@webtintin, i am going to mark this ticket as closed. If you still believe there is something wrong with the plugin, feel free to reopen it. (And please provide further details.)
PS: In case you’re wondering, if you add the tracking code to the header and the user’s browser doesn’t support deferring, not only will the pages take longer to load but also the visit may not be tracked properly.