Get the JavaScript snippet for one experiment
One step with Matomo. We can help you get access.
Look something up
Get the JavaScript snippet for one experiment
with Matomo · A/B Test Execution
Use Matomo: its Matomo Reporting API for plugin Ab Testing API lets you get the JavaScript snippet for one experiment in a single step (GET /index.php?module=API&method=AbTesting.getJsExperimentTemplate). capabilities.work can help you get signed up and connected.
- What code do I embed on a page to run a specific experiment?
- Can I get the per-experiment JavaScript snippet to paste into my site?
Say it to your AI assistant
- Get the JavaScript snippet that runs experiment {idExperiment} on site {idSite}.
- Show the embed code for A/B test {idExperiment}.
For your developer
GET /index.php?module=API&method=AbTesting.getJsExperimentTemplate in Matomo Reporting API for plugin Ab Testing API. Full spec on APIs.io.