-
Notifications
You must be signed in to change notification settings - Fork 7
/
analytics_data.go
420 lines (367 loc) · 11.1 KB
/
analytics_data.go
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
package yext
type AnalyticsData struct {
ProfileViews *int `json:"Profile Views"`
Searches *int `json:"Searches"`
PowerlistingsLive *int `json:"Powerlistings Live"`
FeaturedMessageClicks *int `json:"Featured Message Clicks"`
YelpPageViews *int `json:"Yelp Page Views"`
BingSearches *int `json:"Bing Searches"`
FacebookLikes *int `json:"Facebook Likes"`
FacebookTalkingAbout *int `json:"Facebook Talking About"`
FacebookWereHere *int `json:"Facebook Were Here"`
FacebookCtaClicks *int `json:"Facebook Cta Clicks"`
FacebookImpressions *int `json:"Facebook Impressions"`
FacebookCheckins *int `json:"Facebook Checkins"`
FacebookPageViews *int `json:"Facebook Page Views"`
FacebookPostImpressions *int `json:"Facebook Post Impressions"`
FoursquareDailyCheckins *int `json:"Foursquare Daily Checkins"`
InstagramPosts *int `json:"Instagram Posts"`
GoogleSearchQueries *int `json:"Google Search Queries"`
GoogleSearchViews *int `json:"Google Search Views"`
GoogleMapViews *int `json:"Google Map Views"`
GoogleCustomerActions *int `json:"Google Customer Actions"`
GooglePhoneCalls *int `json:"Google Phone Calls"`
YelpCustomerActions *int `json:"Yelp Customer Actions"`
AverageRating *float64 `json:"Average Rating"`
NewReviews *int `json:"New Reviews"`
StorepagesSessions *int `json:"Storepages Sessions"`
StorepagesPageviews *int `json:"Storepages Pageviews"`
StorepagesDrivingdirections *int `json:"Storepages Drivingdirections"`
StorepagesPhonecalls *int `json:"Storepages Phonecalls"`
StorepagesCalltoactionclicks *int `json:"Storepages Calltoactionclicks"`
StorepagesClickstowebsite *int `json:"Storepages Clickstowebsite"`
StorepagesEventEventtype *int `json:"Storepages Event Eventtype"`
ProfileUpdates *int `json:"Profile Updates"`
PublisherSuggestions *int `json:"Publisher Suggestions"`
SocialActivities *int `json:"Social Activities"`
DuplicatesSuppressed *int `json:"Duplicates Suppressed"`
DuplicatesDetected *int `json:"Duplicates Detected"`
ListingsLive *int `json:"Listings Live"`
IstSearchRequests *int `json:"Ist Search Requests"`
IstAverageLocalPackPosition *float64 `json:"Ist Average Local Pack Position"`
IstAverageLocalPackNumberOfResults *float64 `json:"Ist Average Local Pack Number Of Results"`
IstLocalPackExisted *float64 `json:"Ist Local Pack Existed"`
IstLocalPackPresence *float64 `json:"Ist Local Pack Presence"`
IstKnowledgeCardExisted *float64 `json:"Ist Knowledge Card Existed"`
IstMatchesPerSearch *int `json:"Ist Matches Per Search"`
IstAverageFirstOrganicMatchPosition *float64 `json:"Ist Average First Organic Match Position"`
IstAverageFirstLocalPackMatchPosition *float64 `json:"Ist Average First Local Pack Match Position"`
IstAverageFirstMatchPosition *float64 `json:"Ist Average First Match Position"`
IstOrganicShareOfSearch *float64 `json:"Ist Organic Share Of Search"`
IstLocalPackShareOfSearch *float64 `json:"Ist Local Pack Share Of Search"`
IstShareOfIntelligentSearch *float64 `json:"Ist Share Of Intelligent Search"`
LocationId *string `json:"location_id"`
Month *string `json:"month"`
}
func (y AnalyticsData) GetProfileViews() int {
if y.ProfileViews != nil {
return *y.ProfileViews
}
return 0
}
func (y AnalyticsData) GetSearches() int {
if y.Searches != nil {
return *y.Searches
}
return 0
}
func (y AnalyticsData) GetPowerlistingsLive() int {
if y.PowerlistingsLive != nil {
return *y.PowerlistingsLive
}
return 0
}
func (y AnalyticsData) GetFeaturedMessageClicks() int {
if y.FeaturedMessageClicks != nil {
return *y.FeaturedMessageClicks
}
return 0
}
func (y AnalyticsData) GetYelpPageViews() int {
if y.YelpPageViews != nil {
return *y.YelpPageViews
}
return 0
}
func (y AnalyticsData) GetBingSearches() int {
if y.BingSearches != nil {
return *y.BingSearches
}
return 0
}
func (y AnalyticsData) GetFacebookLikes() int {
if y.FacebookLikes != nil {
return *y.FacebookLikes
}
return 0
}
func (y AnalyticsData) GetFacebookTalkingAbout() int {
if y.FacebookTalkingAbout != nil {
return *y.FacebookTalkingAbout
}
return 0
}
func (y AnalyticsData) GetFacebookWereHere() int {
if y.FacebookWereHere != nil {
return *y.FacebookWereHere
}
return 0
}
func (y AnalyticsData) GetFacebookCtaClicks() int {
if y.FacebookCtaClicks != nil {
return *y.FacebookCtaClicks
}
return 0
}
func (y AnalyticsData) GetFacebookImpressions() int {
if y.FacebookImpressions != nil {
return *y.FacebookImpressions
}
return 0
}
func (y AnalyticsData) GetFacebookCheckins() int {
if y.FacebookCheckins != nil {
return *y.FacebookCheckins
}
return 0
}
func (y AnalyticsData) GetFacebookPageViews() int {
if y.FacebookPageViews != nil {
return *y.FacebookPageViews
}
return 0
}
func (y AnalyticsData) GetFacebookPostImpressions() int {
if y.FacebookPostImpressions != nil {
return *y.FacebookPostImpressions
}
return 0
}
func (y AnalyticsData) GetFoursquareDailyCheckins() int {
if y.FoursquareDailyCheckins != nil {
return *y.FoursquareDailyCheckins
}
return 0
}
func (y AnalyticsData) GetInstagramPosts() int {
if y.InstagramPosts != nil {
return *y.InstagramPosts
}
return 0
}
func (y AnalyticsData) GetGoogleSearchQueries() int {
if y.GoogleSearchQueries != nil {
return *y.GoogleSearchQueries
}
return 0
}
func (y AnalyticsData) GetGoogleSearchViews() int {
if y.GoogleSearchViews != nil {
return *y.GoogleSearchViews
}
return 0
}
func (y AnalyticsData) GetGoogleMapViews() int {
if y.GoogleMapViews != nil {
return *y.GoogleMapViews
}
return 0
}
func (y AnalyticsData) GetGoogleCustomerActions() int {
if y.GoogleCustomerActions != nil {
return *y.GoogleCustomerActions
}
return 0
}
func (y AnalyticsData) GetGooglePhoneCalls() int {
if y.GooglePhoneCalls != nil {
return *y.GooglePhoneCalls
}
return 0
}
func (y AnalyticsData) GetYelpCustomerActions() int {
if y.YelpCustomerActions != nil {
return *y.YelpCustomerActions
}
return 0
}
func (y AnalyticsData) GetAverageRating() float64 {
if y.AverageRating != nil {
return *y.AverageRating
}
return -1
}
func (y AnalyticsData) GetNewReviews() int {
if y.NewReviews != nil {
return *y.NewReviews
}
return 0
}
func (y AnalyticsData) GetStorepagesSessions() int {
if y.StorepagesSessions != nil {
return *y.StorepagesSessions
}
return 0
}
func (y AnalyticsData) GetStorepagesPageviews() int {
if y.StorepagesPageviews != nil {
return *y.StorepagesPageviews
}
return 0
}
func (y AnalyticsData) GetStorepagesDrivingdirections() int {
if y.StorepagesDrivingdirections != nil {
return *y.StorepagesDrivingdirections
}
return 0
}
func (y AnalyticsData) GetStorepagesPhonecalls() int {
if y.StorepagesPhonecalls != nil {
return *y.StorepagesPhonecalls
}
return 0
}
func (y AnalyticsData) GetStorepagesCalltoactionclicks() int {
if y.StorepagesCalltoactionclicks != nil {
return *y.StorepagesCalltoactionclicks
}
return 0
}
func (y AnalyticsData) GetStorepagesClickstowebsite() int {
if y.StorepagesClickstowebsite != nil {
return *y.StorepagesClickstowebsite
}
return 0
}
func (y AnalyticsData) GetStorepagesEventEventtype() int {
if y.StorepagesEventEventtype != nil {
return *y.StorepagesEventEventtype
}
return 0
}
func (y AnalyticsData) GetProfileUpdates() int {
if y.ProfileUpdates != nil {
return *y.ProfileUpdates
}
return 0
}
func (y AnalyticsData) GetPublisherSuggestions() int {
if y.PublisherSuggestions != nil {
return *y.PublisherSuggestions
}
return 0
}
func (y AnalyticsData) GetSocialActivities() int {
if y.SocialActivities != nil {
return *y.SocialActivities
}
return 0
}
func (y AnalyticsData) GetDuplicatesSuppressed() int {
if y.DuplicatesSuppressed != nil {
return *y.DuplicatesSuppressed
}
return 0
}
func (y AnalyticsData) GetDuplicatesDetected() int {
if y.DuplicatesDetected != nil {
return *y.DuplicatesDetected
}
return 0
}
func (y AnalyticsData) GetListingsLive() int {
if y.ListingsLive != nil {
return *y.ListingsLive
}
return 0
}
func (y AnalyticsData) GetIstSearchRequests() int {
if y.IstSearchRequests != nil {
return *y.IstSearchRequests
}
return 0
}
func (y AnalyticsData) GetIstAverageLocalPackPosition() float64 {
if y.IstAverageLocalPackPosition != nil {
return *y.IstAverageLocalPackPosition
}
return -1
}
func (y AnalyticsData) GetIstAverageLocalPackNumberOfResults() float64 {
if y.IstAverageLocalPackNumberOfResults != nil {
return *y.IstAverageLocalPackNumberOfResults
}
return -1
}
func (y AnalyticsData) GetIstLocalPackExisted() float64 {
if y.IstLocalPackExisted != nil {
return *y.IstLocalPackExisted
}
return -1
}
func (y AnalyticsData) GetIstLocalPackPresence() float64 {
if y.IstLocalPackPresence != nil {
return *y.IstLocalPackPresence
}
return -1
}
func (y AnalyticsData) GetIstKnowledgeCardExisted() float64 {
if y.IstKnowledgeCardExisted != nil {
return *y.IstKnowledgeCardExisted
}
return -1
}
func (y AnalyticsData) GetIstMatchesPerSearch() int {
if y.IstMatchesPerSearch != nil {
return *y.IstMatchesPerSearch
}
return 0
}
func (y AnalyticsData) GetIstAverageFirstOrganicMatchPosition() float64 {
if y.IstAverageFirstOrganicMatchPosition != nil {
return *y.IstAverageFirstOrganicMatchPosition
}
return -1
}
func (y AnalyticsData) GetIstAverageFirstLocalPackMatchPosition() float64 {
if y.IstAverageFirstLocalPackMatchPosition != nil {
return *y.IstAverageFirstLocalPackMatchPosition
}
return -1
}
func (y AnalyticsData) GetIstAverageFirstMatchPosition() float64 {
if y.IstAverageFirstMatchPosition != nil {
return *y.IstAverageFirstMatchPosition
}
return -1
}
func (y AnalyticsData) GetIstOrganicShareOfSearch() float64 {
if y.IstOrganicShareOfSearch != nil {
return *y.IstOrganicShareOfSearch
}
return -1
}
func (y AnalyticsData) GetIstLocalPackShareOfSearch() float64 {
if y.IstLocalPackShareOfSearch != nil {
return *y.IstLocalPackShareOfSearch
}
return -1
}
func (y AnalyticsData) GetIstShareOfIntelligentSearch() float64 {
if y.IstShareOfIntelligentSearch != nil {
return *y.IstShareOfIntelligentSearch
}
return -1
}
func (y AnalyticsData) GetLocationId() string {
if y.LocationId != nil {
return *y.LocationId
}
return ""
}
func (y AnalyticsData) GetMonth() string {
if y.Month != nil {
return *y.Month
}
return ""
}