filter in custom connector google analytics
Hi There,
Am trying to create a google analytics connector dataset by applying multiple dimension filter with 'and' condition for the dimensions however am getting 'invalid dimension format error'. Hence could you please review the syntax and let me know whats incorrect here.
- The filter should contain ‘and’ clause – usually it’s the semicolon (;) but when I apply the semicolon, DOMO gives me an error.
- However if I replace that with comma (,) which is used for ‘OR’ clause it is just working fine.
- The data is not specific to what am looking for – I need the filter with ‘and’ condition and not ‘or’ condition.
{
"dimensionFilterClauses": [
{
"filters": [
{
"dimensionName": "ga:pagePathLevel1",
"operator": "EXACT",
"expressions": [
"/en/" ]}
;
{"dimensionName": "ga:pagePathLevel2",
"operator": "REGEXP",
"expressions": ["^/blog/.\/*"]} ]
}
]
}
Best Answer
-
I had raised a DOMO case in the help center to see if they could help here. I just got the correct syntax from them.
Here is the correct syntax that they recommend me to use:
{
"dimensionFilterClauses": [
{
"operator": "AND",
"filters": [
{
"dimensionName": "ga:pagePathLevel1",
"operator": "EXACT",
"expressions": [
"/en/" ]}
,
{"dimensionName": "ga:pagePathLevel2",
"operator": "REGEXP",
"expressions": ["blog"]} ]
}
]
}
]
}
Regards
0
Answers
-
I had raised a DOMO case in the help center to see if they could help here. I just got the correct syntax from them.
Here is the correct syntax that they recommend me to use:
{
"dimensionFilterClauses": [
{
"operator": "AND",
"filters": [
{
"dimensionName": "ga:pagePathLevel1",
"operator": "EXACT",
"expressions": [
"/en/" ]}
,
{"dimensionName": "ga:pagePathLevel2",
"operator": "REGEXP",
"expressions": ["blog"]} ]
}
]
}
]
}
Regards
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 602 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 695 Beast Mode
- 43 App Studio
- 39 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 386 Distribute
- 111 Domo Everywhere
- 269 Scheduled Reports
- 6 Software Integrations
- 113 Manage
- 110 Governance & Security
- 8 Domo University
- 30 Product Releases
- Community Forums
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive