This repository has been archived by the owner on Aug 16, 2023. It is now read-only.
forked from llooker/google_ga360
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ga_customize.view.lkml
133 lines (96 loc) · 2.64 KB
/
ga_customize.view.lkml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
include: "ga_block.view.lkml"
explore: ga_sessions_block {
extends: [ga_sessions_base]
extension: required
always_filter: {
filters: {
field: ga_sessions.partition_date
value: "2013-09-10 00:00:00"
## Partition Date should always be set to a recent date to avoid runaway queries
}
}
}
view: ga_sessions {
extends: [ga_sessions_base]
# The SQL_TABLE_NAME must be replaced here for date partitioned queries to work properly.
sql_table_name: `ga360.ga_sessions_*` ;;
dimension: block_name {
type: string
sql: "Google Analytics" ;;
# link: {
# url: "https://googlecloud.looker.com/dashboards/44"
# label: "Google Analytics Dashboard"
# icon_url: "http://www.looker.com/favicon.ico"
# }
}
# If you have custom dimensions on sessions, declare them here.
# dimension: custom_dimension_2 {
# sql: (SELECT value FROM UNNEST(${TABLE}.customdimensions) WHERE index=2) ;;
# }
# dimension: custom_dimension_2 {
# sql: (SELECT value FROM UNNEST(${TABLE}.customdimensions) WHERE index=2) ;;
# }
# dimension: custom_dimension_3 {
# sql: (SELECT value FROM UNNEST(${TABLE}.customdimensions) WHERE index=3) ;;
# }
}
view: geoNetwork {
extends: [geoNetwork_base]
}
view: totals {
extends: [totals_base]
}
view: trafficSource {
extends: [trafficSource_base]
}
view: device {
extends: [device_base]
}
view: hits {
extends: [hits_base]
}
view: hits_page {
extends: [hits_page_base]
}
# -- Ecommerce Fields
view: hits_transaction {
#extends: [hits_transaction_base] # Comment out to remove fields
}
view: hits_item {
#extends: [hits_item_base]
}
# -- Advertising Fields
view: adwordsClickInfo {
#extends: [adwordsClickInfo_base]
}
view: hits_publisher {
#extends: [hits_publisher_base] # Comment out this line to remove fields
}
# We only want some of the interaction fields.
view: hits_social {
extends: [hits_social_base]
dimension: socialInteractionNetwork {hidden: yes}
dimension: socialInteractionAction {hidden: yes}
dimension: socialInteractions {hidden: yes}
dimension: socialInteractionTarget {hidden: yes}
#dimension: socialNetwork {hidden: yes}
dimension: uniqueSocialInteractions {hidden: yes}
#dimension: hasSocialSourceReferral {hidden: yes}
dimension: socialInteractionNetworkAction {hidden: yes}
}
view: hits_appInfo {
extends: [hits_appInfo_base]
}
view: hits_eventInfo {
extends: [hits_eventInfo_base]
dimension: play {
sql: ${eventAction} = "play" ;;
type: yesno
}
}
view: hits_customDimensions {
extends: [hits_customDimensions_base]
}
view: hits_customVariables {
extends: [hits_customVariables_base]
}