When you create an experiment, Matomo (Piwik) shows you the code that needs to be embedded into your project in order to run the experiment. The implementation depends on where you want to run an experiment: