-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
HiddenTracking plugin - no one (even search engines) will know you use Piwik for tracking at all! #2768
Comments
Great contribution, thanks! If anyone is using it successfully please post a comment. Cheers! |
Hello I have implemented the plugin and I have some (problems and Questions) Problems
2) I installed the plugin in the (Plugin Folder) - with the other plugins - Now I can Activate and De-activate the plugin Question 2) This link produced and error (PS) Can I please have an explanation and / or revised installation instructions Regards |
Replying to boysie:
Thanks you so much for the feedback. The instructions are correct but, yes, we had missed some things to say about. The installation instructions should look this way: 1. The attached archive (HiddenTracking.zip) have to be unzipped into Plugin directory. (So sorry we didn't mention about that) 2. Activate the Plugin in the Plugin list. 3. Go to the 'Website' page in your Piwik and click the related 'view tracking code' link (for the website you want to track) in the appeared HiddenTracking column. 4. Copy and paste the new tracking code that you see on the page into the website you want to track. Please note that you can't paste the same code to the other websites. Make new codes for each websites. 5. On that page, you'll also see that there is an archive that was generated right after you click the 'view tracking code' link. This archived files should be unzipped into ROOT directory of your website (not Piwik!). (that was what we were talking about) And that's it. As for your case. We see that you have finally do all things right. But please, check out next ones: 1. Be sure that after adding a tracking code to your website you unzipped the generated archive files (not hiddentracking.zip!) into ROOT directory of the website. 2. Be sure that the 'Codes' directory -- that you have unzipped from HiddenTracking.zip to your Piwik Plugins directory -- has also rights to 'WRITE'/'REWRITE', not only 'READ' rights. We think this is causing your problem. We are sorry once again, we will fix the instructions that we mentioned in the 1st post. And please, feel free asking us anything. We'll always try to help you. |
|
Privet Kostya Much thanks for the information I have already done what you have said in your instructions However - I now have a second problem - when I try to download the archive - I get this message; - Fatal error: Class 'ZipArchive' not found in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 117 So once more can you please help Regards Lloyd Sewell |
Hello Lloyd and thank you once again! We really appreciate your feedback. The reason the fatal error takes place -- when you're trying to download the generated archive -- is that you probably don't have the 'Zip' library. So we're sorry once again, that's our bad. We hope we will fix this after this weekend. We will try to make this plugin more universal to use so that it could work well on any server build. Thanks a lot for your help in making it better. ''Best regards, |
Hi Kostya Much thanks for your feedback and your efforts - it is really appreciated Paka Lloyd |
For the ZIP code maybe you should reuse Piwik_Unzip see example of use in plugins/CoreUpdater/Controller.php |
Thank you both Matt and Lloyd. As we promised we fix the 'ZIP' case. Now HiddenTracking works with the same library that Piwik uses ('pclzip'). So it should work properly on any server build. We reattached the HiddenPlugin archive here and would be happy if you'll test this one. Regards, |
Hi Codax Team Many thanks for your efforts - I have installed the new plugin When I try to download the file (in your instruction) this is what I get: There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: mkdir() href='function.mkdir'>function.mkdir</a>: Permission denied in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 134 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:134]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: fopen(plugins/HiddenTracking/codes/c4ca4238a0b923820dcc509a6f75849b/config.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 137 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:137]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: fwrite(): supplied argument is not a valid stream resource in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 138 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:138]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: fclose(): supplied argument is not a valid stream resource in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 139 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:139]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/tfctrain/public_html/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 148 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:148]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/tfctrain/public_html/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 149 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:149]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/tfctrain/public_html/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 150 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:150]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/tfctrain/public_html/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 151 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:151]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/tfctrain/public_html/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 152 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:152]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/tfctrain/public_html/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 153 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:153]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/tfctrain/public_html/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 154 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:154]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/tfctrain/public_html/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 155 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:155]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: filesize() href='function.filesize'>function.filesize</a>: stat failed for plugins/HiddenTracking/codes/c4ca4238a0b923820dcc509a6f75849b.zip in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 156 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:156]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/tfctrain/public_html/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 156 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:156]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Notice: ob_end_flush() href='ref.outcontrol'>ref.outcontrol</a>: failed to delete and flush buffer. No buffer to delete or flush. in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 157 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:157]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: readfile(plugins/HiddenTracking/codes/c4ca4238a0b923820dcc509a6f75849b.zip) [<a href='function.readfile'>function.readfile</a>]: failed to open stream: No such file or directory in /home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php on line 158 Backtrace --> [/home/tfctrain/public_html/piwik/plugins/HiddenTracking/HiddenTracking.php:158]#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]#3 call_user_func_array(...) called at [/home/tfctrain/public_html/piwik/core/FrontController.php:132]#4 Piwik_FrontController->dispatch(...) called at [/home/tfctrain/public_html/piwik/index.php:53] Best Lloyd |
Privet Lloyd! ) |
Privet Kostya, Thanks - I can download the file now But I cannot unzip the file - This is the error that I get - I have also tried a different unzip program - same result. c4ca4238a0b923820dcc509a6f75849b.zip: The archive is either in unknown format or damaged, Best Lloyd |
Try to unpack the archive http://codax.ru/1c383cd30b7c298ab50293adfecb7b18.zip If it does not, then send me your archive to seomozk{a}gmail.com |
Hello to everybody! We've corrected the plugin. Now plugin can assign permissions to write to the folder "codes". And if it's not obtained then plugin asks the user doing it manually. |
codax, one suggestion is that you write all files in piwik/tmp/X rather than in the plugin subfolder, since the tmp folder always has write permissions. good work! |
Thank you Matt. We fix things in our HiddenTracking plugin. And now it:
|
Privet Codax Team Much thanks for your efforts - however the downloaded (.zip) file cannot be unzipped Again many thanks Best Lloyd |
Privet Lloyd! We keep figuring your case out. We also tested all the popular archive programs on several PCs and it works properly. Please could you send us one of your generated archives that you can't get unzipped? So we would able to find out the problem and post a solution for the case. Regards, |
oops, have forgotten to write our email: |
info[at]codax[dot]ru |
;) Lloyd! Please unzip it using http://www.7-zip.org/ archiver P.S. |
Lloyd: make sure you're downloading the actual attachment. The link above takes you to the download page. |
Lloyd! Hello again! So musch thanks for the feedback. You're really helping a lot! Please, check the new plugin version using your system. We attach it. And if the problem remains (we strongly believe that it will be solved now) please send us one of the unzipping archives back again. ''Regards, |
'''Hello Lloyd! We've checked the archive you sent. And it unzippes perfectly. We mean it just works on our every PC and Mac. We also tested it both on Windows and linux-based OSs. We don't actually get what's causing your problem about unzipping this simple ".zip" extension. Please also make sure once again that you did all the things right due to our SECOND post in this thread (we weren't able to edit the first one). ''Best regards, |
Hey Lloyd. We're sorry and will answer your questions in a minute via email. |
The zip file generated for the site to be tracked is not readable using winrar or 7-zip. I'm logged in as a piwik administrator.
The downloaded file has a format of: c4ca4238a0b923820dcc509a6f75849b.zip . When I attempt to open it with either 7-zip or WinRar I get an error message saying: "Could not open file 'c4ca4238a0b923820dcc509a6f75849b.zip' as an Archive" -jay |
Replying to jayw: btw I was able to download and open the zip file you referenced in the previous post -jay
|
Hello Jay. Looks like one more person faces the problem. And we're sorry about that. email to send to: seomozk {a} gmail.com After that we'd report you soon. Thanks for understanding. Merry Christmas and Happy New Year ! |
Hello Jay. Please let us know about result. Regards. |
Replying to kostya_codax: Just looked. . . /home/xxxx/public_html/piwik/tmp is 777 -jay
|
Replying to radnor:
Hi. |
I made a post before but it must have been deleted or something. It is http://subdomain.mysite.com/ Thanks. |
Replying to radnor:
bump |
I went to add a new domain and the new "view tracking code" column is gone. I checked the plugins section and hiddentracking is activated. I tried deactivating it and reactivating it with same results. Also, I go to system check with all green check marks. EDIT: I cleared cache and cookies and the "view tracking code" column reappeared thankfully. |
Attachment: HiddenTracking от 26.02.2013 |
Hey. Changes made to a file HiddenTracking \ HiddenTracking.php |
Replying to radnor:
Such as changes from the http://piwik.org/docs/javascript-tracking/ page How/where do we edit/alter the code? |
OK so I deactivated hiddentracking and then reactivated it and now have a page full of errors when I click on the download link to d/l the zip file on the Hidden Tracking Code page. There is an error. Please report the message (Piwik 1.10.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: rmdir(/home/myaccount/public_html/mydomain/piwik/tmp/HiddenTracking/45c48cce2e2d7fbdea1afc51c7c6ad26) href='function.rmdir'>function.rmdir</a>: Directory not empty in /home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php on line 153 Backtrace --> #0 Piwik_ErrorHandler(...) called at [:] There is an error. Please report the message (Piwik 1.10.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/mydomain/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php on line 157 Backtrace --> #0 Piwik_ErrorHandler(...) called at [:] There is an error. Please report the message (Piwik 1.10.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/mydomain/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php on line 158 Backtrace --> #0 Piwik_ErrorHandler(...) called at [:] There is an error. Please report the message (Piwik 1.10.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/mydomain/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php on line 159 Backtrace --> #0 Piwik_ErrorHandler(...) called at [:] There is an error. Please report the message (Piwik 1.10.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/mydomain/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php on line 160 Backtrace --> #0 Piwik_ErrorHandler(...) called at [:] There is an error. Please report the message (Piwik 1.10.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/mydomain/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php on line 161 Backtrace --> #0 Piwik_ErrorHandler(...) called at [:] There is an error. Please report the message (Piwik 1.10.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/mydomain/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php on line 162 Backtrace --> #0 Piwik_ErrorHandler(...) called at [:] There is an error. Please report the message (Piwik 1.10.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/mydomain/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php on line 163 Backtrace --> #0 Piwik_ErrorHandler(...) called at [:] There is an error. Please report the message (Piwik 1.10.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/mydomain/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php on line 164 Backtrace --> #0 Piwik_ErrorHandler(...) called at [:] There is an error. Please report the message (Piwik 1.10.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Warning: Cannot modify header information - headers already sent by (output started at /home/myaccount/public_html/mydomain/piwik/libs/Zend/Log/Writer/Stream.php:133) in /home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php on line 165 Backtrace --> #0 Piwik_ErrorHandler(...) called at [:] In an effort to fix it myself I deleted all the files/directories in /home/myaccount/public_html/mydomain/piwik/tmp/HiddenTracking and left it blank and deleted all the files/directories in the /home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/ and uploaded new ones from the archive but that did not help ~ same errors. How do I fix it please? |
Same problem here.... Tried setting chmod to 777, but it does not help. Would be cool if you could have a look at it. Tested it at 3 different servers.
|
Hi! |
Replying to radnor:
Is there any reason you keep IGNORING these questions/problems? |
Replying to codax:
HOW to FIX this problem please??? The raw log file says: NOTHING in error file. Is this a permissions problem or what? I REALLY need to and want to use the hiddentracking plugin but you keep on IGNORING my problems/issues! HELLO??? |
Replying to radnor:
You replied saying "Hi! Yes, we see the message, we will fix the error in the next week." WOW! This FUSTERCLUCK gets WORSE and WORSE and you just keep IGNORING ME/us!!! HELLO???? |
Please stop screaming around like a little child, radnor. That is how open source works :-) Codax wrote this beautiful script, but he does not get payed to offer support or anything else... A temporary fix is to comment out the rmdir function. The script hangs because it does not have permission to delete .htaccess in temporary folder. So just open HiddenTracking.php and comment out line 153:
to:
The directory stays on ftp, but script is working again. Hope that it helps. Greetings. |
Replying to radnor:
Thanks baschan for the workaround on the 500 error! Anyone happen to know where we put the code for the above and the Image Tracking Link? |
@Codax, would you mind pushing the plugin to Github, so people can contribute there? |
OK further testing reveals from the raw log file: 72.216.451.198 - - -0500 "GET /test/site1/ HTTP/1.1" 200 301 "-" "Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0" 72.216.451.198 - - -0500 "GET /test/site2/ HTTP/1.1" 200 301 "-" "Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0" 72.216.451.198 - - -0500 "GET /test/site3/ HTTP/1.1" 200 301 "-" "Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0" this explains why it isn't working because the "hiddentracking/main.js" is producing a 500 error instead of tracking. I'm sure this is related back to the "ok.html" 500 error problem as well but what is causing this and how to fix it? |
Replying to halfdan:
Hello! |
Thanks for the reply. There are no specific rules. You can take a look at the Barometer plugin that I wrote: https://github.com/halfdan/piwik-barometer-plugin I tend to use the piwik-pluginname-plugin naming scheme (e.g. piwik-hiddentracking-plugin). Make sure you provide a short README.md that describes what the plugin does and how to install it. You should also include a LICENSE so people know if they can fork/change the plugin. If you are not owner of the code make sure to write a short attribution for the original author. |
Attachment: HiddenTracking Plugin with revisions on 4/4/2013 |
Hello. We fix the errors in the plugins/HiddenTracking/HiddenTracking.php. The latest version in attachments "_HiddenTracking.3.zip (10.7 KB)_" |
I replaced my old code with the code version 3 above and got this error: "There is an error. Please report the message (Piwik 1.12) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Strict Notice: Non-static method Piwik_SitesManager_API::getSiteFromId() should not be called statically, assuming $this from incompatible context in /home/intervis/public_html/pwik/plugins/HiddenTracking/HiddenTracking.php on line 98 Backtrace --> #0 Piwik_ErrorHandler(...) called at [/home/intervis/public_html/pwik/plugins/HiddenTracking/HiddenTracking.php:98] |
I have: There is an error. Please report the message (Piwik 1.12) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!). Strict Notice: Non-static method Piwik_SitesManager_API::getSiteFromId() should not be called statically, assuming $this from incompatible context in /var/www/user/data/www/site/plugins/HiddenTracking/HiddenTracking.php on line 98 Backtrace --> #0 Piwik_ErrorHandler(...) called at [/var/www/user/data/www/site/plugins/HiddenTracking/HiddenTracking.php:98] Change line 98: |
Along with the Piwik 2.0 release and new design for Piwik, we have also launched the official Plugins Marketplace to let any developer share their work to the thousands of Piwik users worldwide. Maybe you'd like to publish your plugin there? In any case, keep up the good work and we hope you enjoy Piwik 2! |
In short it works this way:
JavaScript (main.js) tracks the website analytics and transfers it to a PHP script (generator.php) with help of AJAX. The PHP script then transfers the analytics data to Piwik server using PHP Tracking API.
So after HiddenTracking got installed the user can add a new, regenerated JS to his website. This JS will not contain ANY mention of Piwik server or Piwik at all. So it looks like there is some JS on the board and that's it. It's fully works with PHP. The JS code that a user pastes on his website is just for gathering data.
Also one of the big differences from the "[https://github.com/piwik/piwik/blob/master/misc/proxy-hide-piwik-url/piwik.php#L3]" is that all happens automatically for a user. You just install the plugin from the general lists of plugins, activate it, and you're done. You go to "Settings > Websites" and do a few clicks. You don't need to be any good in HTML, PHP or JS to modify tracking code manually. And this thing allow_url_fopen = On just doesnt matter.
That's how HiddenTracking works in detail:
1. Classes of the plugin extends from SitesManager plugin.
2. After the plugin got installed and activated and a user gets to 'Settings' > 'Websites' a new column 'HiddenTracking code' will be displayed at the page.
3. For each website there will be a link "view tracking code" in the column to page where the user can get a new, regenerated tracking code to paste it into his website pages. The user will also get a link there to the archived files which he should put into his website root directory. The archived files and the tracking code are generated automatically each time the user clicks the link to this view tracking code page.
4. The archived files are:
PiwikTracker.php a standard PHP Piwik API file for tracking. 'PiwikTracker.php' goes to the archive from '/libs/PiwikTracker' directory.
Config.php a file with user settings such as website ID, token_auth, link to the current Piwik server. Config.php is generated dynamically.
main.js a JS file. It aggregates the analytics data to transfer it then to 'generator.php' file. The transferring is able with help of AJAX. 'Main.js' goes to the archive from '/plugins/HiddenTracking/tracking' directory.
Generator.php PHP script that transfers all the data to the current Piwik server with help of PHP Piwik API (PiwikTracker.php). Generator.php goes to the archive from '/plugins/HiddenTracking/tracking' directory.
5. So the next step is that the user should unzip the archived files (which was automatically generated for him) into the root directory of his website and paste the new tracking code to the website pages.
Keywords: Hidden, tracking, hide, tracking, code, hide, piwik, mentions, third-party-plugin
The text was updated successfully, but these errors were encountered: