Global custom script
To insert the global custom script:- Click Configuration > General.

Custom data
You then must create a new custom data. You will need:- your
client_id&client_secretfor generating Bearer Token (get Credentials). - your
website_id.
client_id and website_id).

https://customers.kameleoon.com/kameleoon/piwik/), which uses the Piwik Pro API to get all segments. This call is necessary to work around CORS policy issues.
Set the custom data to the list of and strings types, with Page as the scope.
External segment sync for server-side
If you would like to use Matomo segment data with one of Kameleoon’s SDKs, you will need to follow the guidelines provided in each SDK documentation and use the methodgetRemoteData().