I’m using the api to get goals data by segments. But doing so I found that when the month changes within a week, there is no data.
I want to get the data for that week beginning with 2020-03-30 up to 2020-04-05:
According to the reference I can use: date=2020-03-30,2020-04-05&period=range
Parameters are:
?date=2020-03-30,2020-04-05&period=range&expanded=1&filter_limit=-1&format=HTML&format_metrics=1&idGoal=&idSite=2&method=Goals.get&module=API&segment=referrerType%3D%3Dsocial&showAllGoalSpecificMetrics=1&token_auth=xxxx
But I get “0”
Changing to Period=Day I do get a daily result:
?date=2020-03-30,2020-04-05&period=day&expanded=1&filter_limit=-1&format=HTML&format_metrics=1&idGoal=&idSite=2&method=Goals.get&module=API&segment=referrerType%3D%3Dsocial&showAllGoalSpecificMetrics=1&token_auth=xxxx
changing to week as the period again gets me nothing:
?date=2020-03-30&period=week&expanded=1&filter_limit=-1&format=HTML&format_metrics=1&idGoal=&idSite=2&method=Goals.get&module=API&segment=referrerType%3D%3Dsocial&showAllGoalSpecificMetrics=1&token_auth=xxxx
This is not what anyone could expect using the API
Because if you do the same with the next week, everything works fine. It only appears in weeks where the month changes within that week.
1 post - 1 participant