How to implement a web activity tracker using php and kafka

I’d like to implement a web activity tracker with php and kafka but i am a newbie with all these technologies and i’d like to know where to start with all of this . I’ve already install kafka dependencies using php . Could you help me with some advices , references or any type of resources ??? Thanks