Need a code for matomo integration in laravel 5.1

We have find code for matomo intgration in laravel but didn’t find any suitable solutions.So can anyone help me for this.

As I want to integrate matomo in my website for reporting page.



There seems to be a third-party library that promises to help here:

Apart from that emdedding the tracking code isn’t that hard. It should be fine if you just add it to the site template so that it is included in every page.

Could you please tell what api is used for getting record of device type and account type with single api in laravel.
Question: When I pass the date,device,account name in filter then the api gives me the record according to that annd the page hits,conversion rate and the site is open on which device

Is it possible?