sephen
1
Hello,
I need to create a complete id list of a specific custom variable, as you can see in the attached image in “field 2”.
I know how to create the list in “Field 1”.
http://piwik.example.com/index.php?module=API&method=VisitsSummary.get&idSite=7&period=range&date=last7&format=xml&token_auth={APIKEY}&segment=customVariableName1==UserId
Does someone know how to do this?
Thanks in advance,
Peter
I think, if you add “&expanded=1” the API will show you more Information.
sephen
3
matthieu
(Matthieu Aubry)
4
try to add &label=UserId ?
sephen
5
If I add “&label=UserId” as mentioned above, I get a summary of UserId but I want a complete list of only the custom “UserId” variable.
matthieu
(Matthieu Aubry)
6
first call CustomVariables.getCustomVariables
then get the idsubtable for the row you are interested in
then call getCustomVariablesValuesFromNameId passing &idSubtable=XX where XX is the idsubtable for the UserId row