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

HiddenTracking plugin - no one (even search engines) will know you use Piwik for tracking at all! #2768

Closed
anonymous-matomo-user opened this issue Nov 10, 2011 · 77 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@anonymous-matomo-user
Copy link

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

@mattab
Copy link
Member

mattab commented Nov 11, 2011

Great contribution, thanks! If anyone is using it successfully please post a comment. Cheers!

@anonymous-matomo-user
Copy link
Author

Hello

I have implemented the plugin and I have some (problems and Questions)

Problems
1) I followed the implementations instructions - but the plugin did not work

  • did not appear in the (List of Plugins)

2) I installed the plugin in the (Plugin Folder) - with the other plugins - Now I can Activate and De-activate the plugin

Question
1) Why is the instruction to install this plugin in the (root) directory - instead of the (Plugins Directory)

2) This link produced and error
http://www.tfc-training.com/c4ca4238a0b923820dcc509a6f75849b/main.js

(PS)
I have placed the new code on all my web pages and uploaded them

Can I please have an explanation and / or revised installation instructions

Regards
Lloyd Sewell

@anonymous-matomo-user
Copy link
Author

Replying to boysie:

Hello

I have implemented the plugin and I have some (problems and Questions)

Problems
1) I followed the implementations instructions - but the plugin did not work

  • did not appear in the (List of Plugins)

2) I installed the plugin in the (Plugin Folder) - with the other plugins - Now I can Activate and De-activate the plugin

Question
1) Why is the instruction to install this plugin in the (root) directory - instead of the (Plugins Directory)

2) This link produced and error
http://www.tfc-training.com/c4ca4238a0b923820dcc509a6f75849b/main.js

(PS)
I have placed the new code on all my web pages and uploaded them

Can I please have an explanation and / or revised installation instructions

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.

@anonymous-matomo-user
Copy link
Author

  1. Change permission of "yourpiwikdir/plugins/HiddenTracking/codes" to 755
  2. Downloads Archive with Hidden Tracking files on your computer.
  3. Unzip the file to the root directory of your website
  4. Check the availability of a file in a browser - http://www.tfc-training.com/c4ca4238a0b923820dcc509a6f75849b/main.js

@anonymous-matomo-user
Copy link
Author

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

@anonymous-matomo-user
Copy link
Author

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,
Kostya & Codax team''

@anonymous-matomo-user
Copy link
Author

Hi Kostya

Much thanks for your feedback and your efforts - it is really appreciated

Paka

Lloyd
(PS) I have (just) atarted to learn Russian

@mattab
Copy link
Member

mattab commented Nov 13, 2011

For the ZIP code maybe you should reuse Piwik_Unzip see example of use in plugins/CoreUpdater/Controller.php

@anonymous-matomo-user
Copy link
Author

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,
Codax team.

@anonymous-matomo-user
Copy link
Author

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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 mkdir(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 fopen(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 fwrite(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 fclose(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 header(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 header(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 header(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 header(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 header(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 header(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 header(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 header(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 filesize(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 header(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 ob_end_flush(...) called at

[/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 -->
#0 Piwik_ErrorHandler(...) called at [:]#1 readfile(...) called at

[/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

@anonymous-matomo-user
Copy link
Author

Privet Lloyd! )
Change permission of "yourpiwikdir/plugins/HiddenTracking/codes" to 775

@anonymous-matomo-user
Copy link
Author

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

@anonymous-matomo-user
Copy link
Author

Try to unpack the archive http://codax.ru/1c383cd30b7c298ab50293adfecb7b18.zip

If it does not, then send me your archive to seomozk{a}gmail.com

@anonymous-matomo-user
Copy link
Author

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.

@mattab
Copy link
Member

mattab commented Nov 16, 2011

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!

@anonymous-matomo-user
Copy link
Author

Thank you Matt. We fix things in our HiddenTracking plugin. And now it:

  • saves the archives to the 'piwik/tmp/HiddenTracking' folder;
  • uses the Piwik functions and classes everywhere where it's possbile;
  • has the folder links that leads to directories with defined Piwik constants;
  • tracks link clicks and downloads (was missed before).

@anonymous-matomo-user
Copy link
Author

Privet Codax Team

Much thanks for your efforts - however the downloaded (.zip) file cannot be unzipped
please use rarlab.com

Again many thanks

Best

Lloyd

@anonymous-matomo-user
Copy link
Author

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,
Codax team

@anonymous-matomo-user
Copy link
Author

oops, have forgotten to write our email:
Send the archive here please: info@codax.ru

@anonymous-matomo-user
Copy link
Author

info[at]codax[dot]ru

@anonymous-matomo-user
Copy link
Author

;) Lloyd!

Please unzip it using http://www.7-zip.org/ archiver
It's free and licensed under GNU LGPL

P.S.
We've unzipped using WinRar and It's worked.

@robocoder
Copy link
Contributor

Lloyd: make sure you're downloading the actual attachment. The link above takes you to the download page.

@anonymous-matomo-user
Copy link
Author

Lloyd!

Hello again!

So musch thanks for the feedback. You're really helping a lot!
We've checked your archive and corrected the plugin once again.

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,
Codax team''

@anonymous-matomo-user
Copy link
Author

'''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,
Kostya and Codax team''

@anonymous-matomo-user
Copy link
Author

Hey Lloyd. We're sorry and will answer your questions in a minute via email.

@anonymous-matomo-user
Copy link
Author

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.

  1. In .com/piwik/ I go to Settings/Website Management
  2. Select the link for Hidden Tracking Code / View Tracking Code
  3. Copy/Paste the javascript to the site.
  4. Click on the "download" link at the bottom of the page.

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

@anonymous-matomo-user
Copy link
Author

Replying to jayw:

btw I was able to download and open the zip file you referenced in the previous post
(6 weeks ago) " http://codax.ru/1c383cd30b7c298ab50293adfecb7b18.zip "

-jay

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.

  1. In .com/piwik/ I go to Settings/Website Management
  2. Select the link for Hidden Tracking Code / View Tracking Code
  3. Copy/Paste the javascript to the site.
  4. Click on the "download" link at the bottom of the page.

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

@anonymous-matomo-user
Copy link
Author

Hello Jay.

Looks like one more person faces the problem. And we're sorry about that.
To let us know what's wrong with your archive for sure, please send us the .zip file you couldn't open.

email to send to: seomozk {a} gmail.com

After that we'd report you soon. Thanks for understanding.

Merry Christmas and Happy New Year !

@anonymous-matomo-user
Copy link
Author

Hello Jay.
Please be sure that your 'piwik/tmp' folder has full access permission (777). If it doesn't, change it manually to '777' and then download the archive for your website once again. That should help.

Please let us know about result.

Regards.

@anonymous-matomo-user
Copy link
Author

Replying to kostya_codax:

Just looked. . .

/home/xxxx/public_html/piwik/tmp is 777

-jay

Hello Jay.
Please be sure that your 'piwik/tmp' folder has full access permission (777). If it doesn't, change it manually to '777' and then download the archive for your website once again. That should help.

Please let us know about result.

Regards.

@anonymous-matomo-user
Copy link
Author

Replying to radnor:

After setting up hidden tracking when I click on "ok.html" link on the hidden tracking page I get a "500 Internal Server Error" which usually means a permissions problem so reading through this thread I see in comment #4 you said "Change permission of "yourpiwikdir/plugins/HiddenTracking/codes" to 755".

I do not have a "codes" directory in the hiddentracking directory and after checking the archive there is not one there either.

Could that be the problem?

If not what is wrong?

Hi.
Tell me please website address where you receive an error.

@anonymous-matomo-user
Copy link
Author

I made a post before but it must have been deleted or something.

It is http://subdomain.mysite.com/

Thanks.

@anonymous-matomo-user
Copy link
Author

Replying to radnor:

How do we use custom tracking with hidden tracking such as noscript image, etc for when the user is not using javascript, etc or tracking error pages or any of the custom stuff where we have to edit/alter the code, etc?

bump

@anonymous-matomo-user
Copy link
Author

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.

@anonymous-matomo-user
Copy link
Author

Attachment: HiddenTracking от 26.02.2013
HiddenTracking.2.zip

@anonymous-matomo-user
Copy link
Author

Hey. Changes made to a file HiddenTracking \ HiddenTracking.php
function getZip ()
137 - 153 lines

@anonymous-matomo-user
Copy link
Author

Replying to radnor:

Replying to radnor:

How do we use custom tracking with hidden tracking such as noscript image, etc for when the user is not using javascript, etc or tracking error pages or any of the custom stuff where we have to edit/alter the code, etc?

bump
How do we use custom tracking with hidden tracking such as noscript image, etc for when the user is not using javascript, etc or tracking error pages or any of the custom stuff where we have to edit/alter the code, etc?

Such as changes from the http://piwik.org/docs/javascript-tracking/ page
and
http://piwik.org/faq/troubleshooting/#faq_100 page

How/where do we edit/alter the code?

@anonymous-matomo-user
Copy link
Author

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 [:]
#1 rmdir(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:153]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:157]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:158]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:159]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:160]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:161]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:162]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:163]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:164]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:165]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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?

@anonymous-matomo-user
Copy link
Author

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.
There is still an .htaccess file in folder - Maybe this is causing the error?

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(/var/www/piwik/bw/tmp/HiddenTracking/c4ca4238a0b923820dcc509a6f75849b) [<a href='function.rmdir'>function.rmdir</a>]: Das Verzeichnis ist nicht leer in /var/www/piwik/bw/plugins/HiddenTracking/HiddenTracking.php on line 153

Backtrace -->

#0 Piwik_ErrorHandler(...) called at [:]
#1 rmdir(...) called at [/var/www/piwik/bw/plugins/HiddenTracking/HiddenTracking.php:153]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/var/www/piwik/bw/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/var/www/piwik/bw/index.php:53]

@anonymous-matomo-user
Copy link
Author

Hi!
Yes, we see the message, we will fix the error in the next week.

@anonymous-matomo-user
Copy link
Author

Replying to radnor:

Replying to radnor:

Replying to radnor:

How do we use custom tracking with hidden tracking such as noscript image, etc for when the user is not using javascript, etc or tracking error pages or any of the custom stuff where we have to edit/alter the code, etc?

bump
How do we use custom tracking with hidden tracking such as noscript image, etc for when the user is not using javascript, etc or tracking error pages or any of the custom stuff where we have to edit/alter the code, etc?

Such as changes from the http://piwik.org/docs/javascript-tracking/ page
and
http://piwik.org/faq/troubleshooting/#faq_100 page

How/where do we edit/alter the code?

Is there any reason you keep IGNORING these questions/problems?

@anonymous-matomo-user
Copy link
Author

Replying to codax:

Replying to radnor:

After setting up hidden tracking when I click on "ok.html" link on the hidden tracking page I get a "500 Internal Server Error" which usually means a permissions problem so reading through this thread I see in comment #4 you said "Change permission of "yourpiwikdir/plugins/HiddenTracking/codes" to 755".

I do not have a "codes" directory in the hiddentracking directory and after checking the archive there is not one there either.

Could that be the problem?

If not what is wrong?

Hi.
Tell me please website address where you receive an error.

I made a post before but it must have been deleted or something.

It is http://subdomain.mysite.com/

Thanks.

HOW to FIX this problem please???

The raw log file says:
-0500 "GET /eccbc87e4b5ce2fe28308fd9f2a7baf3/ok.html HTTP/1.1" 500 769 "http://subdomain.mysite.com/index.php?module=HiddenTracking&action=displayHiddenTrackingCode&period=range&date=last30&idSite=3

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???

@anonymous-matomo-user
Copy link
Author

Replying to radnor:

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 [:]
#1 rmdir(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:153]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:157]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:158]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:159]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:160]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:161]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:162]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:163]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:164]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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 [:]
#1 header(...) called at [/home/myaccount/public_html/mydomain/piwik/plugins/HiddenTracking/HiddenTracking.php:165]
#2 Piwik_HiddenTracking_Controller->getZip(...) called at [:]
#3 call_user_func_array(...) called at [/home/myaccount/public_html/mydomain/piwik/core/FrontController.php:138]
#4 Piwik_FrontController->dispatch(...) called at [/home/myaccount/public_html/mydomain/piwik/index.php:53]

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?

You replied saying "Hi! Yes, we see the message, we will fix the error in the next week."
That was FOUR WEEKS ago!!!

WOW!

This FUSTERCLUCK gets WORSE and WORSE and you just keep IGNORING ME/us!!!

HELLO????

@anonymous-matomo-user
Copy link
Author

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:

rmdir($dirName);

to:

/*rmdir($dirName); */

The directory stays on ftp, but script is working again.

Hope that it helps.

Greetings.

@anonymous-matomo-user
Copy link
Author

Replying to radnor:

Replying to radnor:

Replying to radnor:

Replying to radnor:

How do we use custom tracking with hidden tracking such as noscript image, etc for when the user is not using javascript, etc or tracking error pages or any of the custom stuff where we have to edit/alter the code, etc?

bump
How do we use custom tracking with hidden tracking such as noscript image, etc for when the user is not using javascript, etc or tracking error pages or any of the custom stuff where we have to edit/alter the code, etc?

Such as changes from the http://piwik.org/docs/javascript-tracking/ page
and
http://piwik.org/faq/troubleshooting/#faq_100 page

How/where do we edit/alter the code?

Is there any reason you keep IGNORING these questions/problems?

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?

@halfdan
Copy link
Member

halfdan commented Apr 4, 2013

@Codax, would you mind pushing the plugin to Github, so people can contribute there?

@anonymous-matomo-user
Copy link
Author

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 /c81e728d9d4c2f636f067f89cc14862c/main.js HTTP/1.1" 500 769 "http://subdomain.mydomain.com/test/site1/" "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 /eccbc87e4b5ce2fe28308fd9f2a7baf3/main.js HTTP/1.1" 500 769 "http://subdomain.mydomain.com/test/site2/" "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"
72.216.451.198 - - -0500 "GET /a87ff679a2f3e71d9181a67b7542122c/main.js HTTP/1.1" 500 769 "http://subdomain.mydomain.com/test/site3/" "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?

@anonymous-matomo-user
Copy link
Author

Replying to halfdan:

@Codax, would you mind pushing the plugin to Github, so people can contribute there?

Hello!
The deal is that we have lost touch with the person who was involved in the development of this plugin for Piwik.
Now we have some incomprehension in work with publications plugins.
Could you please let us know if there are the rules of publishing plugins for Piwik on Github?

@halfdan
Copy link
Member

halfdan commented Apr 4, 2013

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.

@anonymous-matomo-user
Copy link
Author

Attachment: HiddenTracking Plugin with revisions on 4/4/2013
HiddenTracking.3.zip

@anonymous-matomo-user
Copy link
Author

Hello. We fix the errors in the plugins/HiddenTracking/HiddenTracking.php. The latest version in attachments "_HiddenTracking.3.zip (10.7 KB)_"

@anonymous-matomo-user
Copy link
Author

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]
#1 Piwik_HiddenTracking_Controller->displayHiddenTrackingCode(...) called at [:]
#2 call_user_func_array(...) called at [/home/intervis/public_html/pwik/core/FrontController.php:125]
#3 Piwik_FrontController->dispatch(...) called at [/home/intervis/public_html/pwik/index.php:47]"

@anonymous-matomo-user
Copy link
Author

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]
#1 Piwik_HiddenTracking_Controller->displayHiddenTrackingCode(...) called at [:]
#2 call_user_func_array(...) called at [/var/www/user/data/www/site/core/FrontController.php:125]
#3 Piwik_FrontController->dispatch(...) called at [/var/www/user/data/www/site/index.php:47]

Change line 98:
$SiteInfo = Piwik_SitesManager_API::getSiteFromId($idSite);
to
$SiteInfo = Piwik_SitesManager_API::getInstance()->getSiteFromId($idSite);

@mattab
Copy link
Member

mattab commented Feb 6, 2014

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!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

5 participants