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

Possible to modify a goal's revenue after it's been added? #12155

Closed
olleharstedt opened this issue Oct 5, 2017 · 3 comments
Closed

Possible to modify a goal's revenue after it's been added? #12155

olleharstedt opened this issue Oct 5, 2017 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@olleharstedt
Copy link

We have a web page with subscriptions. Therefore, it's not possible to know beforehand how much revenue a certain goal conversion will make since the subscription can be cancelled in two months, or two year, or whenever. Basically, we need to update the revenue of a specific goal conversion at every payment until the subscription ends. Is it possible to fetch one goal conversion using the Piwik API and update its revenue?

@olleharstedt olleharstedt changed the title Modify a goal's revenue after it's been added Possible to modify a goal's revenue after it's been added? Oct 5, 2017
@olleharstedt
Copy link
Author

As an example, consider a user making two orders one year apart. One order lasts for 2 months, the other one 4 months. So what we need is to bind one visit to a revenue of 2 months, and the other visit to a revenue of 4 months. If we just add a total of 6 goal conversions, it would not be possible to know which visit led to the most revenue.

@mattab
Copy link
Member

mattab commented Oct 19, 2017

Is it possible to fetch one goal conversion using the Piwik API and update its revenue?

you can use Goals.updateGoal HTTP API, but it will only affect future converted goals

We have a web page with subscriptions. Therefore, it's not possible to know beforehand how much revenue a certain goal conversion will make since the subscription can be cancelled in two months, or two year, or whenever. Basically, we need to update the revenue of a specific goal conversion at every payment until the subscription ends.

For this you should use Ecommerce analytics: https://piwik.org/docs/ecommerce-analytics/

@mattab mattab closed this as completed Oct 19, 2017
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Oct 19, 2017
@olleharstedt
Copy link
Author

@mattab Thanks for your answer!

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