Python Forum
add more than 1 metric to py script - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: add more than 1 metric to py script (/thread-20390.html)



add more than 1 metric to py script - vanderdecken - Aug-08-2019

hi,

have a script which (amongst other mets and dims) extract the ga: sessions. it looks like this: 'metrics ': [{'expression': 'ga:sessions')] but if I want to add a second or third metric what would be the best option? 'metrics ': [{'expression': 'ga:sessions'),{'expression': 'ga.users'), {'expression':'ga.newUsers'}] or???
thanks for helping out...
m