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

Is there a way to create a goal programmatically? #10724

Closed
beatelite opened this issue Oct 11, 2016 · 2 comments
Closed

Is there a way to create a goal programmatically? #10724

beatelite opened this issue Oct 11, 2016 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@beatelite
Copy link

I saw that you have Dimension.addDimensions to be able to create dimensions but what about goals?

I have sites that all need the same dimensions and goals set up. It's a pain to copy and paste. Is there a way (via hook) to do this programmatically?

@sgiehl
Copy link
Member

sgiehl commented Oct 13, 2016

You could use the Goals API. See http://developer.piwik.org/api-reference/reporting-api#Goals

@beatelite
Copy link
Author

@sgiehl Excellent. Not sure how missed that! Thank you!

@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Oct 26, 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

3 participants