Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

BUG? RequestProcessor setParam only with [Development] enabled?

$
0
0

@Tomas_Kapler wrote:

I am trying to make a tracker plugin where i need to change (server side) action_name based on some conditions.

I am extending RequestProcess and trying manipulateRequest and afterRequestProcessed functions, e.g.:

class KBRequestProcessor extends RequestProcessor
{

		public function manipulateRequest(Request $request)
		{
				 $request->setParam('action_name','Example title');
		}

    public function afterRequestProcessed(VisitProperties $visitProperties, Request $request)
    {
		 		 $request->setParam('action_name','Example title');
    }
}

The problem is, that this works only if i got

[Development]
enabled = 1

in my global.ini.php. what if i understand it rights mean, that all caching is avoided. I need to make it production ready so i need it work with cache.

It seems for me, that it is possible to change only plugin data using $request->setMetadata but not the other params. Or am i doing something wrong and there is some way how to change title and other request params serverside via plugin?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles