Google Analytics Exclude Filter
I'm working with a very large data set where most of the data is not tied to a GA Campaign. In order to reduce the amount of data I'm working with, I'd like to filter out all rows that do not have the value "(not set)".
My current formula:
"
{
"dimensionFilterClauses": [
{
"filters": [
{
"dimensionName": "ga:campaign",
"operator": "EXACT",
"expressions": [
"(not set)"
]
}
]
}
]
}
"
I've tried replacing "EXACT" with everything that I can think of to exclude it including: "EXCLUDE", "NOTEQUAL", "NOT_EQUAL", "DOES_NOT_EQUAL", "NOT_EQUAL_TO", "!=", "DOES NOT MATCH", "DOES_NOT_MATCH", "DOES_NOT_CONTAIN", "DOES NOT CONTAIN".
None of these seem to work. Each time I get the same error:
"Domo is ready, but Domo received an error requesting the data. (Bad/Malformed Request). Invalid value at 'report_requests[0].dimension_filter_clauses[0].filters[0].operator' (type.googleapis.com/google.analytics.reporting.v4.DimensionFilter.Operator), "EXCLUDE""
Best Answer
-
Thankfully, one of my developers was able to help me out. Here's the solution:
""not": "true"," has to go exactly before "operator":
{
"dimensionFilterClauses": [
{
"filters": [
{
"dimensionName": "ga:campaign", "not": "true",
"operator": "EXACT",
"expressions": [
"(not set)"
]
}
]
}
]
}
0
Answers
-
Thankfully, one of my developers was able to help me out. Here's the solution:
""not": "true"," has to go exactly before "operator":
{
"dimensionFilterClauses": [
{
"filters": [
{
"dimensionName": "ga:campaign", "not": "true",
"operator": "EXACT",
"expressions": [
"(not set)"
]
}
]
}
]
}
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 297 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 614 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 729 Beast Mode
- 53 App Studio
- 40 Variables
- 677 Automate
- 173 Apps
- 451 APIs & Domo Developer
- 45 Workflows
- 8 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 121 Manage
- 118 Governance & Security
- Domo Community Gallery
- 32 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive