VE-1446 Track template events

https://wikia-inc.atlassian.net/browse/VE-1446
So we deliberately decided to call that functionality "filtering" and not "searching". Would be very good to stay consistent with that naming also when it comes to the state variable you are introducing.