Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create 20 new websites from command line, and get tracking codes #10780

Closed
josephernest opened this issue Oct 22, 2016 · 1 comment
Closed

Create 20 new websites from command line, and get tracking codes #10780

josephernest opened this issue Oct 22, 2016 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@josephernest
Copy link

josephernest commented Oct 22, 2016

I'd like to add 20 new websites to Piwik, from command line (instead of GUI, that would be too long), and get automatically the JS tracking codes (or even PHP tracking code if PHP is possible with Piwik?) as a list exported to a file.

How is this possible ?

@josephernest josephernest changed the title Create 20 new websites from command line, and get tracking code Create 20 new websites from command line, and get tracking codes Oct 22, 2016
@sgiehl
Copy link
Member

sgiehl commented Oct 30, 2016

You can use the SitesManager API: https://developer.piwik.org/api-reference/reporting-api#SitesManager
It has methods for adding new sites and for getting the JS tracking code.

@sgiehl sgiehl closed this as completed Oct 30, 2016
@sgiehl sgiehl added the answered For when a question was asked and we referred to forum or answered it. label Oct 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants