Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
532 changes: 168 additions & 364 deletions shopify/assets/dashboards/shopify_customer_overview.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion shopify/assets/dashboards/shopify_event_overview.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Shopify - Event Overview",
"description": "",
"description": "The Shopify Event Overview Dashboard provides an overview of event logs, offering insights into events, type, and action distribution.",
"widgets": [
{
"id": 2362748552655712,
Expand Down
525 changes: 170 additions & 355 deletions shopify/assets/dashboards/shopify_order_overview.json

Large diffs are not rendered by default.

206 changes: 115 additions & 91 deletions shopify/assets/dashboards/shopify_product_overview.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Shopify - Product Overview",
"description": "",
"description": "The Shopify Product Overview Dashboard provides an overview of products within your store. It provides insights into product types, status distribution, inventory, and variant details.",
"widgets": [
{
"id": 8506652285430826,
Expand Down Expand Up @@ -120,60 +120,6 @@
"height": 3
}
},
{
"id": 6613518820826564,
"definition": {
"title": "Top Product Count by Type",
"type": "treemap",
"requests": [
{
"formulas": [
{
"formula": "query1"
}
],
"queries": [
{
"data_source": "logs",
"name": "query1",
"indexes": [
"*"
],
"compute": {
"aggregation": "cardinality",
"metric": "@id"
},
"group_by": [
{
"facet": "@productType",
"limit": 25,
"sort": {
"order": "desc",
"aggregation": "cardinality",
"metric": "@id"
}
}
],
"search": {
"query": "source:shopify service:product -@productType:\"\" $product_name $product_type $product_id $currency"
},
"storage": "hot"
}
],
"response_format": "scalar",
"style": {
"palette": "datadog16"
}
}
]
},
"layout": {
"x": 3,
"y": 4,
"width": 9,
"height": 3
}
},
{
"id": 4043889896241554,
"definition": {
Expand Down Expand Up @@ -213,10 +159,10 @@
"precision": 2
},
"layout": {
"x": 0,
"y": 7,
"width": 4,
"height": 2
"x": 3,
"y": 4,
"width": 3,
"height": 3
}
},
{
Expand Down Expand Up @@ -258,10 +204,10 @@
"precision": 2
},
"layout": {
"x": 4,
"y": 7,
"width": 4,
"height": 2
"x": 6,
"y": 4,
"width": 3,
"height": 3
}
},
{
Expand Down Expand Up @@ -303,10 +249,64 @@
"precision": 2
},
"layout": {
"x": 8,
"x": 9,
"y": 4,
"width": 3,
"height": 3
}
},
{
"id": 6613518820826564,
"definition": {
"title": "Top Product Count by Type",
"type": "treemap",
"requests": [
{
"queries": [
{
"data_source": "logs",
"name": "query1",
"indexes": [
"*"
],
"compute": {
"aggregation": "cardinality",
"metric": "@id"
},
"group_by": [
{
"facet": "@productType",
"limit": 25,
"sort": {
"order": "desc",
"aggregation": "cardinality",
"metric": "@id"
}
}
],
"search": {
"query": "source:shopify service:product -@productType:\"\" $product_name $product_type $product_id $currency"
},
"storage": "hot"
}
],
"response_format": "scalar",
"style": {
"palette": "datadog16"
},
"formulas": [
{
"formula": "query1"
}
]
}
]
},
"layout": {
"x": 0,
"y": 7,
"width": 4,
"height": 2
"width": 8,
"height": 4
}
},
{
Expand All @@ -318,11 +318,6 @@
"requests": [
{
"response_format": "scalar",
"formulas": [
{
"formula": "query1"
}
],
"queries": [
{
"data_source": "logs",
Expand Down Expand Up @@ -354,6 +349,11 @@
"style": {
"palette": "datadog16"
},
"formulas": [
{
"formula": "query1"
}
],
"sort": {
"count": 10,
"order_by": [
Expand All @@ -368,20 +368,20 @@
],
"type": "sunburst",
"legend": {
"type": "inline"
"type": "table"
}
},
"layout": {
"x": 0,
"y": 9,
"x": 8,
"y": 7,
"width": 4,
"height": 4
}
},
{
"id": 3849686844214096,
"definition": {
"title": "Product Variant Price (Avg)",
"title": "Product Variant Pricing Summary",
"title_size": "16",
"title_align": "left",
"type": "query_table",
Expand Down Expand Up @@ -483,36 +483,52 @@
"order_by": [
{
"type": "formula",
"index": 2,
"index": 0,
"order": "desc"
}
]
},
"formulas": [
{
"cell_display_mode": "number",
"alias": "Max Variant Price",
"alias": "Average Max Variant Price",
"formula": "query1"
},
{
"cell_display_mode": "number",
"alias": "Min Variant Price",
"alias": "Average Min Variant Price",
"formula": "query2"
},
{
"alias": "Average Variant Price",
"cell_display_mode": "bar",
"formula": "(query1 + query2) / 2"
}
]
}
],
"has_search_bar": "auto"
},
"layout": {
"x": 4,
"y": 9,
"width": 8,
"x": 0,
"y": 11,
"width": 10,
"height": 4
}
},
{
"id": 4488919335627787,
"definition": {
"type": "note",
"content": "**Note**: The panel `Product Variant Pricing Summary` displays the average min and max variant prices for the product, reflecting changes in price over time.",
"background_color": "yellow",
"font_size": "16",
"text_align": "center",
"vertical_align": "center",
"show_tick": true,
"tick_pos": "50%",
"tick_edge": "left",
"has_padding": true
},
"layout": {
"x": 10,
"y": 11,
"width": 2,
"height": 4
}
},
Expand All @@ -529,9 +545,17 @@
"data_source": "logs_stream",
"query_string": "source:shopify service:product $product_name $product_type $product_id $currency",
"indexes": [],
"storage": "hot"
"storage": "hot",
"sort": {
"column": "timestamp",
"order": "desc"
}
},
"columns": [
{
"field": "timestamp",
"width": "auto"
},
{
"field": "legacyResourceId",
"width": "auto"
Expand All @@ -557,15 +581,15 @@
"width": "auto"
},
{
"field": "priceRangeV2.maxVariantPrice.amount",
"field": "priceRangeV2.maxVariantPrice.currencyCode",
"width": "auto"
},
{
"field": "priceRangeV2.minVariantPrice.amount",
"field": "priceRangeV2.maxVariantPrice.amount",
"width": "auto"
},
{
"field": "priceRangeV2.maxVariantPrice.currencyCode",
"field": "priceRangeV2.minVariantPrice.amount",
"width": "auto"
},
{
Expand All @@ -583,7 +607,7 @@
},
"layout": {
"x": 0,
"y": 13,
"y": 15,
"width": 12,
"height": 5
}
Expand Down
40 changes: 40 additions & 0 deletions shopify/assets/logs/shopify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,46 @@ pipeline:
targetType: attribute
preserveSource: false
overrideOnConflict: false
- type: attribute-remapper
name: Map `current_total_price` to `total_price`
enabled: true
sources:
- current_total_price
sourceType: attribute
target: total_price
targetType: attribute
preserveSource: false
overrideOnConflict: true
- type: attribute-remapper
name: Map `current_subtotal_price` to `subtotal_price`
enabled: true
sources:
- current_subtotal_price
sourceType: attribute
target: subtotal_price
targetType: attribute
preserveSource: false
overrideOnConflict: true
- type: attribute-remapper
name: Map `current_total_tax` to `total_tax`
enabled: true
sources:
- current_total_tax
sourceType: attribute
target: total_tax
targetType: attribute
preserveSource: false
overrideOnConflict: true
- type: attribute-remapper
name: Map `current_total_discounts` to `total_discounts`
enabled: true
sources:
- current_total_discounts
sourceType: attribute
target: total_discounts
targetType: attribute
preserveSource: false
overrideOnConflict: true
- type: string-builder-processor
name: Define `usr.name` equal to %{customer.first_name} %{customer.last_name}
enabled: true
Expand Down
Loading