Testing a push

This commit is contained in:
Norm Rasmussen
2023-01-24 15:30:29 -05:00
parent 738813e48c
commit 8ce2cad6d6
41 changed files with 1109 additions and 113 deletions

View File

@ -0,0 +1,26 @@
{% styles default %}
{% styles colors %}
{% styles custom %}
<script>
(function(apiKey){
(function(p,e,n,d,o){var v,w,x,y,z;o=p[d]=p[d]||{};o._q=o._q||[];
v=['initialize','identify','updateOptions','pageLoad','track'];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');
})('a59ee367-b60f-4801-7452-0331dce168e1');
// Call this whenever information about your visitors becomes available
// Please use Strings, Numbers, or Bools for value types.
{% if current_person.signed_in? %}
pendo.initialize({
visitor: {
id: '{{current_person.id}}',
email: '{{current_person.email}}',
first_name: '{{current_person.first_name}}',
last_name: '{{current_person.last_name}}',
}
});
{% endif %}
</script>