Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rendezvous
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VeNtura
rendezvous
Commits
bfa419c1
Commit
bfa419c1
authored
Jul 29, 2014
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set google analytics tag
parent
65c15adc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
app/views/layouts/application.html.slim
+1
-0
app/views/partials/_google_analytics.html.slim
+9
-0
config/settings.yml.example
+2
-0
No files found.
app/views/layouts/application.html.slim
View file @
bfa419c1
...
@@ -10,6 +10,7 @@ html lang="ja"
...
@@ -10,6 +10,7 @@ html lang="ja"
link
href
=
"//cdnjs.cloudflare.com/ajax/libs/fullcalendar/1.6.4/fullcalendar.print.css"
rel
=
"stylesheet"
/
link
href
=
"//cdnjs.cloudflare.com/ajax/libs/fullcalendar/1.6.4/fullcalendar.print.css"
rel
=
"stylesheet"
/
link
href
=
"//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"
rel
=
"stylesheet"
link
href
=
"//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"
rel
=
"stylesheet"
script
src
=
"//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"
script
src
=
"//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"
=
render
partial:
'partials/google_analytics'
=
stylesheet_link_tag
"application"
,
media:
"all"
=
stylesheet_link_tag
"application"
,
media:
"all"
=
render_style
=
render_style
=
csrf_meta_tags
=
csrf_meta_tags
...
...
app/views/partials/_google_analytics.html.slim
0 → 100644
View file @
bfa419c1
-
if
Settings
.
respond_to?
(
:google_analytics
)
&&
Settings
.
google_analytics
.
present?
javascript:
(
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'
,
'
#{
Settings
.
google_analytics
}
'
,
'auto'
);
ga
(
'send'
,
'pageview'
);
config/settings.yml.example
View file @
bfa419c1
...
@@ -19,6 +19,8 @@ defaults: &defaults
...
@@ -19,6 +19,8 @@ defaults: &defaults
secret_access_key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
secret_access_key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
bucket_name: "xxxxxxxxxxxxxxxxxx"
bucket_name: "xxxxxxxxxxxxxxxxxx"
google_analytics:
development:
development:
<<: *defaults
<<: *defaults
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment