Merge pull request #316 from garypretty/master

Fixed incorrect custom dimension property name for Goal event
This commit is contained in:
Mor Shemesh 2017-08-16 14:39:57 +03:00 коммит произвёл GitHub
Родитель 8d6f1d5f7b 0f260c9353
Коммит 9c1a97bf9d
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -124,7 +124,7 @@ html: `
queries: {
goals_top_goals_count: {
query: () => `
extend GoalName=tostring(customDimensions.Name) |
extend GoalName=tostring(customDimensions.GoalName) |
where name=='MBFEvent.GoalEvent' |
summarize count=count() by GoalName | take 3`,
mappings: { goal: (val) => val || "Unknown",count: (val) => val || 0 },
@ -188,7 +188,7 @@ html: `
params: {
filters: [{ dependency: "selectedChannels",queryProperty: "customDimensions.channel" }],
query: () => `customEvents |
extend GoalName=tostring(customDimensions.Name) |
extend GoalName=tostring(customDimensions.GoalName) |
where name=='MBFEvent.GoalEvent' |
summarize count=count() by GoalName | order by GoalName asc`
}
@ -230,7 +230,7 @@ html: `
filters: [{ dependency: "selectedChannels" ,queryProperty: "customDimensions.channel" }],
query: ({ goal }) => `
customEvents
| extend conversation=tostring(customDimensions.conversationId), goal=customDimensions.Name
| extend conversation=tostring(customDimensions.conversationId), goal=customDimensions.GoalName
| where name=='MBFEvent.GoalEvent' and goal =~ '${goal}'
| summarize count=count(), maxTimestamp=max(timestamp) by conversation
| order by maxTimestamp`,