@anonymous-piwik-user opened this Issue on November 10th 2011

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

@anonymous-piwik-user commented on March 30th 2012

Attachment: Re-uploaded 30 march 2012. Fixed a conflict between HT and some standard JS functions.
HiddenTracking.zip

@anonymous-piwik-user commented on February 26th 2013

Attachment: HiddenTracking от 26.02.2013
HiddenTracking.2.zip

@anonymous-piwik-user commented on April 4th 2013

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

@mattab commented on November 11th 2011 Owner

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

@anonymous-piwik-user commented on November 11th 2011

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-piwik-user commented on November 11th 2011

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-piwik-user commented on November 11th 2011
  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-piwik-user commented on November 12th 2011

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-piwik-user commented on November 12th 2011

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-piwik-user commented on November 12th 2011

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 commented on November 13th 2011 Owner

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

@anonymous-piwik-user commented on November 15th 2011

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-piwik-user commented on November 15th 2011

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-piwik-user commented on November 15th 2011

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

@anonymous-piwik-user commented on November 15th 2011

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-piwik-user commented on November 15th 2011

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-piwik-user commented on November 16th 2011

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 commented on November 16th 2011 Owner

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-piwik-user commented on November 18th 2011

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-piwik-user commented on November 19th 2011

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-piwik-user commented on November 25th 2011

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-piwik-user commented on November 25th 2011

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

@anonymous-piwik-user commented on November 25th 2011

info[at]codax[dot]ru

@anonymous-piwik-user commented on November 25th 2011

;) 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 commented on November 26th 2011 Contributor

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

@anonymous-piwik-user commented on November 26th 2011

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-piwik-user commented on December 12th 2011

'''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-piwik-user commented on December 12th 2011

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

@anonymous-piwik-user commented on December 27th 2011

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-piwik-user commented on December 27th 2011

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-piwik-user commented on December 28th 2011

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-piwik-user commented on December 28th 2011

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-piwik-user commented on December 28th 2011

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-piwik-user commented on December 28th 2011

Hello everyone!
We checked all the archives that you guys sent. And now we probably got what caused the problem and fixed it.
So now it should work well. We REATTACH the plugin files in the ticket. So please download it and try all the stuff again. And please let us know if the problem is solved. We really appreciate your feedbacks. Thanks a lot!

@anonymous-piwik-user commented on December 28th 2011

Replying to codax:

The new HiddenTracking code generated a .zip file that I was able to read, extract and ftp to the site to be tracked.

I have not have time to verify that it's working properly but will do so tomorrow.

Many THANKS!

-jay

Hello everyone!
We checked all the archives that you guys sent. And now we probably got what caused the problem and fixed it.
So now it should work well. We REATTACH the plugin files in the ticket. So please download it and try all the stuff again. And please let us know if the problem is solved. We really appreciate your feedbacks. Thanks a lot!

@anonymous-piwik-user commented on March 2nd 2012

DISQUS USERS BEWARE. MAJOR BUG.

Just an FYI, this caused problems for me with Disqus comments not fully loading the comment box. I commented out the HiddenTracking code call and it worked fine again.

@anonymous-piwik-user commented on March 5th 2012

Replying to vforvandyke:

DISQUS USERS BEWARE. MAJOR BUG.

Just an FYI, this caused problems for me with Disqus comments not fully loading the comment box. I commented out the HiddenTracking code call and it worked fine again.

Hello, vforvandyke.

Could you please provide us with a link to your website where your HT doesn't seem to work?

And btw, here we got website that uses Disqus as well: [http://blog.semcrm.net/2012/02/semcrm-on-site/]. And everything works fine with HT.

Thanks for the feedback!

@anonymous-piwik-user commented on March 5th 2012

Hi codax,

I went to that site and had the same problem. The comment box only gets to "Please wait" without ever fully loading (whether I check it logged in or not logged in in different browsers).

It wouldn't help to tell you my sites right now, since I have pulled the HiddenTracker code off. My best educated guess there's some javascript variable conflict going on but I haven't dug into either side of that code.

Are you able to leave a comment at that semcrm blog yourself?

@anonymous-piwik-user commented on March 30th 2012

''Hello guys!
''
Sry for being off for some time.

We confirm that there was a problem with Hidden Tracking and some of jQuery function. Now we have fixed this and HT doesn't conflict with Disqus or any other js (and jquery) codes any more.

So we have re-uploaded the installation files.

Please download the attachments at the top of the ticket once again and reinstall HT into your Piwik. Then you should refresh your HT tracking code for the websites and redownload generated HT files for the website.

Thank you a lot for help and waiting!

And please feel free letting us know if anything goes wrong with HT. We will try to help.

@anonymous-piwik-user commented on June 9th 2012

Greetings,

I am using the Hidden Tracking plugin. After updating to Piwik 1.8.2 I realized that the ip addresses wen behind a proxy are not the actual ip of the visitor but the proxy server. I am using Cloudflare and now my visitor logs show cloudflare ips.

Any suggestions to this problem? Thanks!

@anonymous-piwik-user commented on June 13th 2012

Replying to AK:

I am using Cloudflare and now my visitor logs show cloudflare ips.

Any suggestions to this problem? Thanks!

Hello! Thank you for the feedback.

So first of all we need to ask you some questions to try to solve the case with Cloudflare.

1. Did your piwik with Hidden Tracking plugin show the actual visitors IPs before you got your Piwik updated to 1.8.2?

2. Have you used cloudflare before 1.8.2 and hidden tracking at the same time and did it all work well together?

3. What was your latest version before you got updated to 1.8.2? Was it 1.8 or you jumped from 1.7.x or 1.6.x?

It will help us to catch the problem. It might be about 1.8.2 or 1.8 or just cloudflare's nature.
As we understand things right Cloudflare service not only caches your website static content. It also provide you with some security so when visitors (even search engine crawlers) come to your website they go through the Cloudflare network. And that may be the reason of showing cloudflare IPs instead of actual ones.

Anyway we will wait for your answers and try to figure it out.

@anonymous-piwik-user commented on June 13th 2012

Hello! Thanks for responding.

  1. Yes Piwik with Hidden Tracking Plugin did show the actual visitors IPs before 1.8.2
  2. Everything worked together before Piwik 1.8.2 I have been using cloudflare for two years.
  3. I update Piwik as soon as there is a release. I went to 1.8.2 from 1.8.1

About Cloudflare they provide modules to workaround the IPs. Before Piwik 1.8.2 I would see visitors IPs. After the update I see Cloudflare IPs when using the Hidden Tracking Plugin code. I temporary removed the code and inserted the Piwik Original Code and this corrected the problem. So I believe the problem is somewhere in the Hidden Tracking Plugin.

Thanks again!

@anonymous-piwik-user commented on June 17th 2012

Hi Codax team,

I just set up the Hidden Tracking plugin and everything seems to be working just fine!
Thanks for creating this great plugin!

If i understand correctly the only thing that doesn't get tracked (compared to a default piwik setup) is the "javascript disabled" visitors?

Greetings,
Manuel

@anonymous-piwik-user commented on August 14th 2012

Hi Codax
I have installed the hidden tracking on 3 websites (one wordpress, 2 concrete5) but I get no traffic stats on my central Piwik tracking server. I have installed the archives on all, I do the URL OK test and they are fine. I have the hidden tracking code on all three sites. I have the generated archive tracking folder set to 777. The tracking was working previously, I have the tracking of me entering the sites to change the tracking code, and then nothing. I have Piwik 1.8.2. I have several other sites that I also track with my piwik server using the non-hidden code, and they continue to work fine. I cannot figure out what I have done wrong.

Greg

@anonymous-piwik-user commented on August 14th 2012

Hi

I think its more complicated than I thought. I have lost tracking on all websites. I have disabled the hidden tracking plugin. I will report back later to see if I get the traffic back or its something else.

Greg

@anonymous-piwik-user commented on August 14th 2012

I have found the problem. Firstly all my non hidden tracker sites are working (different problem) the archived zip folder I download does not include PiwikTracker.php and config.php. I gathered from the instructions above that they were meant to be included?

@anonymous-piwik-user commented on August 14th 2012

OK with some guess work I have edited a config.php I found on this thread and edited it with I think the right variables and it works. I also compied the PiwikTracker.php from my Piwik installation.

Is this how its meant to work?

@anonymous-piwik-user commented on August 14th 2012

I now have hidden tracking working on 3 sites. However I had to manually edit a config.php and upload a PiwikTracker.php

@imkane commented on November 20th 2012

I agree with gregoz...there was no config.php or PiwikTracker.php in the downloaded archived zip file.

I found the config.php file in /tmp/HiddenTracking/site string and took PiwikTracker.php from /libs/PiwikTracker.

IMPORTANT: There should be 5 files in the directory you upload to the site you want tracked. The script only generates 3 of them.

It does work though :) Just not very straightforward ;)

@anonymous-piwik-user commented on November 27th 2012
There is an error. Please report the message (Piwik 1.9.2) 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/apps/piwik/plugins/HiddenTracking/HiddenTracking.php on line 98 

Backtrace -->

<a href='/0'>#0</a> Piwik_ErrorHandler(...) called at [/var/www/apps/piwik/plugins/HiddenTracking/HiddenTracking.php:98]
<a href='/1'>#1</a> Piwik_HiddenTracking_Controller->displayHiddenTrackingCode(...) called at [:]
<a href='/2'>#2</a> call_user_func_array(...) called at [/var/www/apps/piwik/core/FrontController.php:138]
<a href='/3'>#3</a> Piwik_FrontController->dispatch(...) called at [/var/www/apps/piwik/index.php:53]
@anonymous-piwik-user commented on December 2nd 2012

There are further problems with this plug-in. It does not do the new Geoip properly. I have several sites on the same Piwik. Every site that has the hidden plug-in shows just the IP address of the server the site is hosted on. Only the sites without the hidden id plugin show correct Geoip.

@anonymous-piwik-user commented on December 6th 2012

I did some guess editing, this does not shows the error anymore and stats are recording fine:
line 98 hiddentracking.php
$SiteInfo = Piwik_SitesManager_API::getInstance()->getSiteFromId($idSite);

For geoip what module are you using? the default I saw was working fine, then switched to pecl and got ur error too ("server ip")

@anonymous-piwik-user commented on December 6th 2012

No its still not working for me. I made the change in hidden tracking. I keep getting just the ip address of the server with the hidden tracking. If I don't have hidden tracking it all works fine. I have the default Geoip.

I also tried this suggestion in the forum"
In your config/config.ini.php add (depending on your environment):

[General]
proxy_client_headers[] = HTTP_X_FORWARDED_FOR
proxy_host_headers[] = HTTP_X_FORWARDED_HOST"

but that didn't work either.

@anonymous-piwik-user commented on February 21st 2013

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?

@anonymous-piwik-user commented on February 21st 2013

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?

@anonymous-piwik-user commented on February 22nd 2013

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-piwik-user commented on February 25th 2013

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

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

Thanks.

@anonymous-piwik-user commented on February 25th 2013

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-piwik-user commented on February 25th 2013

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-piwik-user commented on February 26th 2013

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

@anonymous-piwik-user commented on March 4th 2013

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-piwik-user commented on March 5th 2013

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-piwik-user commented on March 5th 2013

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

<a href='/0'>#0</a> Piwik_ErrorHandler(...) called at [:]
<a href='/1'>#1</a> rmdir(...) called at [/var/www/piwik/bw/plugins/HiddenTracking/HiddenTracking.php:153]
<a href='/2'>#2</a> Piwik_HiddenTracking_Controller->getZip(...) called at [:]
<a href='/3'>#3</a> call_user_func_array(...) called at [/var/www/piwik/bw/core/FrontController.php:138]
<a href='/4'>#4</a> Piwik_FrontController->dispatch(...) called at [/var/www/piwik/bw/index.php:53]
@anonymous-piwik-user commented on March 8th 2013

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

@anonymous-piwik-user commented on March 8th 2013

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-piwik-user commented on April 3rd 2013

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-piwik-user commented on April 3rd 2013

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-piwik-user commented on April 3rd 2013

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-piwik-user commented on April 3rd 2013

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 commented on April 4th 2013 Member

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

@anonymous-piwik-user commented on April 4th 2013

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-piwik-user commented on April 4th 2013

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 commented on April 4th 2013 Member

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-piwik-user commented on April 4th 2013

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

@anonymous-piwik-user commented on September 14th 2013

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-piwik-user commented on October 11th 2013

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 commented on February 6th 2014 Owner

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 on February 6th 2014
Powered by GitHub Issue Mirror