I’m wrting a new plugin, and add some custom parameters in href after “#”, such as some parameters for dateRange.I add these parameter with hook “template_js_import”.
But I find these new parameters can not work correctly when I want to export them as CSV,xml,etc.
[attachment=98:00.png]
"Error: The parameters are not valid. The method called requires 2 parameters. Please check your URL and the method API."
This error occurs because I use my costom parameter in my API(in href: ec_start_date=2009-08-11&ec_end_date=2009-08-15&ec_period=hour).
Can piwik solve this problem:( It is very important for my plugin.
I’m wrting a new plugin, and add some custom parameters in href after “#”, such as some parameters for dateRange.I add these parameter with hook “template_js_import”.
But I find these new parameters can not work correctly when I want to export them as CSV,xml,etc.
[attachment=98:00.png]
"Error: The parameters are not valid. The method called requires 2 parameters. Please check your URL and the method API."
This error occurs because I use my costom parameter in my API(in href: ec_start_date=2009-08-11&ec_end_date=2009-08-15&ec_period=hour).
Can piwik solve this problem:( It is very important for my plugin.[/quote]
CnDark, if you can have a look at the broadcast.js you might find how to add custom variables.
if you have a patch to modify the core and add the ability to persit a variable, please create a ticket with the patch and we will commit after review.