-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_automation.py
49 lines (43 loc) · 1.36 KB
/
run_automation.py
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
from initialize import Initialize
from reporting import Reporting
from audits import Audits
import json
def main():
IN_initialize = Initialize()
IN_reporting = Reporting()
IN_audits = Audits()
Output = []
analytics = IN_initialize.initialize_analyticsreporting()
response = IN_reporting.get_report(analytics)
management_get = IN_reporting.get_management(analytics)
useful_values = IN_reporting.print_response(response)
accounts = IN_reporting.get_gtm(analytics)
print "######"
IN_audits.check_siteSearch(useful_values)
print "_______"
Output.append(IN_audits.check_medium(useful_values))
#check_totalValue()
print "_______"
IN_audits.check_customDimensions(management_get)
print "_______"
#url = raw_input('Enter URL for self-Referral check: ')
IN_audits.check_selfReferral('yandex',useful_values)
print "_______"
IN_audits.check_eventTracking(useful_values)
print "_______"
Output.append(IN_audits.check_adwordsLink(management_get))
print "_______"
IN_audits.check_gtm(accounts)
print "_______"
IN_audits.check_goals(management_get)
print "_______"
IN_audits.check_customMetrics(management_get)
print "######"
print Output
with open('data.json', 'w') as djson:
json.dump(Output,djson)
#print set(fullReferrer_list)
# if(searchSessions>0):
# print "Site Search active"
if __name__ == '__main__':
main()