forked from alsotang/goagent_monitor
-
Notifications
You must be signed in to change notification settings - Fork 2
/
monitor_config.py
28 lines (23 loc) · 1 KB
/
monitor_config.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
# coding=utf-8
config = {
# cluster_id
"greatagent-ga": {
"name": u"greatagent-ga翻墙包", # cluster_name
# "url": "https://wwqgtxx-goagent.googlecode.com/git/Appid.txt", # get appids from this url
"url": "https://raw.github.com/greatagent2/ga/master/goagent-local/proxy.user.ini", # get appids from this url
"urltype": "ini", # this url type(ini or txt)
"message": "greatagent-ga", #the message show in your web site
"email" : "wwqgtxx"+"@"+"gmail.com", #the message send to your email
},
}
email_sender = "wwqgreatagent"+"@"+"gmail.com"
google_analytics_code = """
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41954718-6', 'greatagent-ga.appspot.com');
ga('send', 'pageview');
</script>
"""