use python to detect customer behavior on website and google analytics
{'reports': [{'columnHeader': {'dimensions': ['ga:deviceCategory',
'ga:pagePath'],
'metricHeader': {'metricHeaderEntries': [{'name': 'ga:entrances',
'type': 'INTEGER'}]}},
'data': {'maximums': [{'values': ['3707']}],
'minimums': [{'values': ['0']}],
'rowCount': 820,
'rows': [{'dimensions': ['desktop', '/'],
'metrics': [{'values': ['3707']}]},
{'dimensions': ['desktop', '/?knews=confirmUser&k=1bd61f63&e=1352'],
'metrics': [{'values': ['1']}]},
....
devicecat = []
url=[]
entrances=[]
for i in report['reports'][0]['data']['rows']:
devicecat.append(i['dimensions'][0])
url.append(i['dimensions'][1])
entrances.append(int(i['metrics'][0]['values'][0]))