JS tracking code via api

Hi, I would like to know if
is it possible to obtain the “JavaScript Tracking Code” via api?

using SitesManager.getSiteSettings method it is not present

thank you very much

Hi,

SitesManager.getJavascriptTag should be exactly what you need.

https://developer.matomo.org/api-reference/reporting-api#SitesManager

thank you very much
my negligence thanks a lot
:slight_smile:

1 Like