https://www.growthbook.io/ logo
r

refined-winter-89168

01/20/2023, 3:08 PM
Hey guys, I am currently trying to link Matomo to GrowthBook. How do I have to implement this in the code if I use Angular to see results in GrowthBook afterwards?
f

fresh-football-47124

01/20/2023, 3:13 PM
Hi Michel
we don’t have a guide specifically for Angular
but you would just have to have the one trackingCallback method fire a matomo event
then you can follow the Matomo implementation guide
r

refined-winter-89168

01/20/2023, 3:16 PM
You mean this method?
And do i have to do this before connect the datasource with GrowthBook?
f

fresh-football-47124

01/20/2023, 3:18 PM
no, either order
this will fire an event which will be stored in Matomo
when you add the data source, its read only
r

refined-winter-89168

01/20/2023, 3:24 PM
I have the problem that "window._paq" doesn't work in Angular.
f

fresh-football-47124

01/20/2023, 3:25 PM
I see, I’m not too familiar with Angular, but I know folks in here have gotten the JS SDK to work
r

refined-winter-89168

01/20/2023, 3:34 PM
Can i See in Matomo, when firing an event from trackingCallback method was successful?
f

fresh-football-47124

01/20/2023, 3:34 PM
yes, been a while since I looked at it, but I believe you can see the events
Then log in to Matomo, go to the Visitors section and click to view the Visits Log. This allows you to review visits in real-time and you should be able to see your visit with the event shown on the right-hand side.
5 Views