Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 8679943

Browse files
Merge pull request #2291 from splunk/feature/docs-1978-add-pendo-2
DOCS-1978 - Adding Pendo
2 parents 83ffa56 + 802e7ea commit 8679943

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

_templates/404.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,18 @@ <h2 style="font-size:21px;font-family: 'Open Sans'; font-weight: bold;">Was this
323323
{%- endblock %}
324324

325325
{% block footer %}
326+
<script>
327+
(function(apiKey){
328+
(function(p,e,n,d,o){var v,w,x,y,z;o=p[d]=p[d]||{};o._q=o._q||[];
329+
v=['initialize','identify','updateOptions','pageLoad','track'];for(w=0,x=v.length;w<x;++w)(function(m){
330+
o[m]=o[m]||function(){o._q[m===v[0]?'unshift':'push']([m].concat([].slice.call(arguments,0)));};})(v[w]);
331+
y=e.createElement(n);y.async=!0;y.src='https://cdn.pendo.io/agent/static/'+apiKey+'/pendo.js';
332+
z=e.getElementsByTagName(n)[0];z.parentNode.insertBefore(y,z);})(window,document,'script','pendo');
333+
334+
// This function creates visitors and accounts in Pendo
335+
// You will need to replace <visitor-id-goes-here> and <account-id-goes-here> with values you use in your app
336+
// Please use Strings, Numbers, or Bools for value types.
337+
pendo.initialize();
338+
})('780a75be-e49a-41b4-64ec-2ebf30a068c0');
339+
</script>
326340
{% endblock footer %}

_templates/layout.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,4 +325,18 @@ <h2 style="font-size:21px;font-family: 'Open Sans'; font-weight: bold;">Was this
325325
{%- endblock %}
326326

327327
{% block footer %}
328-
{% endblock footer %}
328+
<script>
329+
(function(apiKey){
330+
(function(p,e,n,d,o){var v,w,x,y,z;o=p[d]=p[d]||{};o._q=o._q||[];
331+
v=['initialize','identify','updateOptions','pageLoad','track'];for(w=0,x=v.length;w<x;++w)(function(m){
332+
o[m]=o[m]||function(){o._q[m===v[0]?'unshift':'push']([m].concat([].slice.call(arguments,0)));};})(v[w]);
333+
y=e.createElement(n);y.async=!0;y.src='https://cdn.pendo.io/agent/static/'+apiKey+'/pendo.js';
334+
z=e.getElementsByTagName(n)[0];z.parentNode.insertBefore(y,z);})(window,document,'script','pendo');
335+
336+
// This function creates visitors and accounts in Pendo
337+
// You will need to replace <visitor-id-goes-here> and <account-id-goes-here> with values you use in your app
338+
// Please use Strings, Numbers, or Bools for value types.
339+
pendo.initialize();
340+
})('780a75be-e49a-41b4-64ec-2ebf30a068c0');
341+
</script>
342+
{% endblock footer %}

_templates/search.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,5 +386,19 @@ <h2 style="font-size:21px;font-family: 'Open Sans'; font-weight: bold;">Was this
386386

387387
{%- endblock %}
388388

389-
{% block footer %}
390-
{% endblock footer %}
389+
{% block footer %}
390+
<script>
391+
(function(apiKey){
392+
(function(p,e,n,d,o){var v,w,x,y,z;o=p[d]=p[d]||{};o._q=o._q||[];
393+
v=['initialize','identify','updateOptions','pageLoad','track'];for(w=0,x=v.length;w<x;++w)(function(m){
394+
o[m]=o[m]||function(){o._q[m===v[0]?'unshift':'push']([m].concat([].slice.call(arguments,0)));};})(v[w]);
395+
y=e.createElement(n);y.async=!0;y.src='https://cdn.pendo.io/agent/static/'+apiKey+'/pendo.js';
396+
z=e.getElementsByTagName(n)[0];z.parentNode.insertBefore(y,z);})(window,document,'script','pendo');
397+
398+
// This function creates visitors and accounts in Pendo
399+
// You will need to replace <visitor-id-goes-here> and <account-id-goes-here> with values you use in your app
400+
// Please use Strings, Numbers, or Bools for value types.
401+
pendo.initialize();
402+
})('780a75be-e49a-41b4-64ec-2ebf30a068c0');
403+
</script>
404+
{% endblock footer %}

0 commit comments

Comments
 (0)