{"action":"closed","issue":{"url":"https://api.github.com/repos/wcl48/gasegment/issues/11","repository_url":"https://api.github.com/repos/wcl48/gasegment","labels_url":"https://api.github.com/repos/wcl48/gasegment/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/wcl48/gasegment/issues/11/comments","events_url":"https://api.github.com/repos/wcl48/gasegment/issues/11/events","html_url":"https://github.com/wcl48/gasegment/issues/11","id":209729768,"number":11,"title":"fix SequenceSteps's matchType","user":{"login":"podhmo","id":80613,"avatar_url":"https://avatars.githubusercontent.com/u/80613?v=3","gravatar_id":"","url":"https://api.github.com/users/podhmo","html_url":"https://github.com/podhmo","followers_url":"https://api.github.com/users/podhmo/followers","following_url":"https://api.github.com/users/podhmo/following{/other_user}","gists_url":"https://api.github.com/users/podhmo/gists{/gist_id}","starred_url":"https://api.github.com/users/podhmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/podhmo/subscriptions","organizations_url":"https://api.github.com/users/podhmo/orgs","repos_url":"https://api.github.com/users/podhmo/repos","events_url":"https://api.github.com/users/podhmo/events{/privacy}","received_events_url":"https://api.github.com/users/podhmo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-23T11:03:05Z","updated_at":"2017-02-26T14:55:01Z","closed_at":"2017-02-26T14:55:01Z","body":"see:\r\nhttps://developers.google.com/analytics/devguides/reporting/core/v4/migration\r\n\r\n`matchType` is added at left hand side element(currently implemenation is right one).\r\n\r\nv3\r\n```\r\nGET https://www.googleapis.com/analytics/v3/data/ga?ids=ga:XXXX \\\r\n&segment=users::condition::ga:revenue>10;sequence::ga:deviceCategory==desktop->>ga:deviceCategory==mobile\r\n```\r\n\r\nv4\r\n```json\r\n  \"reportRequests\": [{\r\n      \"dateRanges\": [\r\n            { \"endDate\": \"2014-11-30\", \"startDate\": \"2014-11-01\" }\r\n      ],\r\n      \"metrics\": [\r\n          {\"expression\": \"ga:pageviews\"},\r\n          {\"expression\": \"ga:sessions\"}\r\n      ],\r\n      \"viewId\": \"XXXX\",\r\n      \"dimensions\":[{\"name\":\"ga:medium\"}, {\"name\":\"ga:segment\"}],\r\n      \"segments\": [{\r\n        \"dynamicSegment\": {\r\n        \"name\": \"segment_name\",\r\n        \"userSegment\": {\r\n          \"segmentFilters\": [{\r\n            \"simpleSegment\": {\r\n              \"orFiltersForSegment\": [{\r\n                \"segmentFilterClauses\": [{\r\n                  \"metricFilter\": {\r\n                    \"metricName\": \"ga:sessions\",\r\n                    \"operator\": \"GREATER_THAN\",\r\n                    \"comparisonValue\": \"10\"\r\n                  }\r\n                }]\r\n              }]\r\n            }\r\n          },\r\n          {\r\n            \"sequenceSegment\": {\r\n              \"segmentSequenceSteps\": [{\r\n                \"orFiltersForSegment\": [{\r\n                  \"segmentFilterClauses\": [{\r\n                    \"dimensionFilter\": {\r\n                      \"dimensionName\": \"ga:deviceCategory\",\r\n                      \"operator\": \"EXACT\",\r\n                      \"expressions\": [\"desktop\"]\r\n                    }\r\n                  }]\r\n                }],\r\n                \"matchType\": \"PRECEDES\"\r\n              },{\r\n                \"orFiltersForSegment\": [{\r\n                  \"segmentFilterClauses\": [{\r\n                    \"dimensionFilter\": {\r\n                      \"dimensionName\": \"ga:deviceCategory\",\r\n                      \"operator\": \"EXACT\",\r\n                      \"expressions\": [\"mobile\"]\r\n                    }\r\n                  }]\r\n                }]\r\n              }]\r\n            }\r\n          }]\r\n        }\r\n      }\r\n    }]\r\n  }]\r\n```\r\n"}}
{"actor":{"display_login":"podhmo"}}