Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
49784ff7
Commit
49784ff7
authored
Jun 15, 2019
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pendo-poc' into 'master'
Pendo POC See merge request gitlab-org/gitlab-ee!14040
parents
a1871710
6dd23d95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+1
-0
ee/app/views/layouts/_pendo.html.haml
ee/app/views/layouts/_pendo.html.haml
+18
-0
No files found.
app/views/layouts/_head.html.haml
View file @
49784ff7
...
...
@@ -78,3 +78,4 @@
=
render
'layouts/google_analytics'
if
extra_config
.
has_key?
(
'google_analytics_id'
)
=
render
'layouts/piwik'
if
extra_config
.
has_key?
(
'piwik_url'
)
&&
extra_config
.
has_key?
(
'piwik_site_id'
)
=
render_if_exists
'layouts/snowplow'
=
render_if_exists
'layouts/pendo'
if
Feature
.
enabled?
(
:pendo_tracking
)
&&
!
Rails
.
env
.
test?
ee/app/views/layouts/_pendo.html.haml
0 → 100644
View file @
49784ff7
-# haml-lint:disable InlineJavaScript
:javascript
(
function
(
apiKey
){
(
function
(
p
,
e
,
n
,
d
,
o
){
var
v
,
w
,
x
,
y
,
z
;
o
=
p
[
d
]
=
p
[
d
]
||
{};
o
.
_q
=
[];
v
=
[
'
initialize
'
,
'
identify
'
,
'
updateOptions
'
,
'
pageLoad
'
];
for
(
w
=
0
,
x
=
v
.
length
;
w
<
x
;
++
w
)(
function
(
m
){
o
[
m
]
=
o
[
m
]
||
function
(){
o
.
_q
[
m
===
v
[
0
]?
'
unshift
'
:
'
push
'
]([
m
].
concat
([].
slice
.
call
(
arguments
,
0
)));};})(
v
[
w
]);
y
=
e
.
createElement
(
n
);
y
.
async
=!
0
;
y
.
src
=
'
https://cdn.pendo.io/agent/static/
'
+
apiKey
+
'
/pendo.js
'
;
z
=
e
.
getElementsByTagName
(
n
)[
0
];
z
.
parentNode
.
insertBefore
(
y
,
z
);})(
window
,
document
,
'
script
'
,
'
pendo
'
);
// Call this whenever information about your visitors becomes available
// Please use Strings, Numbers, or Bools for value types.
pendo
.
initialize
({
visitor
:
{
id
:
'
#{
current_user
&
.
username
}
'
,
email
:
'
#{
current_user
&
.
email
}
'
}
});
})(
'
a311ff3e-ad8e-4afb-6ffc-87b0d62305b7
'
);
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