Thanks Alexis for your help!!
I was able to connect to omniture via python api.
I am facing new issue now while fetching traffic report from omniture. I am trying to fetch pages report with sample data as below.
Page | Page Views | Total Seconds Spent |
1 | search results | 8313717 | 31.00% | 3.71E+08 | 31.30% |
2 | Search results | 1328461 | 5.00% | 41279803 | 3.50% |
3 | Groceries:Homepage | 1098038 | 4.10% | 43702900 | 3.70% |
4 | Favourites:My%20Favourites | 748054 | 2.80% | 1.32E+08 | 11.20% |
the inputs i am using in python code is mentioned below.
report_definition_traffic = ReportDefinition(
dimensions="page",
metrics=[
{ "id": "pageviews"}
],
date_from="2016-08-15",
date_to="2017-08-13",
elements=[
{
"id":"page", "top": 100
}
]
)
issue - manual numbers and python dataframe numbers are not matching. Also i am not able to find the option to pull the "Total Seconds Spent" metric.