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
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive