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 needed to go through CORS policy issues.
The custom data should be set to the list of and strings types; the scope is Page.
External Segment Sync for Server-side
If you would like to use Matomo segment data with one of our SDKs, you will need to follow the guidelines provided in each SDK documentation and use the methodgetRemoteData().