Skip to content

Commit

Permalink
set we_custom_render attribute in webengage
Browse files Browse the repository at this point in the history
  • Loading branch information
phaneendraandukuri committed Mar 30, 2023
1 parent b109e40 commit 35ff375
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions views/pages/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
var webengage; !function(w,e,b,n,g){function o(e,t){e[t[t.length-1]]=function(){r.__queue.push([t.join("."),arguments])}}var i,s,r=w[b],z=" ",l="init options track screen onReady".split(z),a="feedback survey notification".split(z),c="options render clear abort".split(z),p="Open Close Submit Complete View Click".split(z),u="identify login logout setAttribute".split(z);if(!r||!r.__v){for(w[b]=r={__queue:[],__v:"6.0",user:{}},i=0;i<l.length;i++)o(r,[l[i]]);for(i=0;i<a.length;i++){for(r[a[i]]={},s=0;s<c.length;s++)o(r[a[i]],[a[i],c[s]]);for(s=0;s<p.length;s++)o(r[a[i]],[a[i],"on"+p[s]])}for(i=0;i<u.length;i++)o(r.user,["user",u[i]]);setTimeout(function(){var f=e.createElement("script"),d=e.getElementById("_webengage_script_tag");f.type="text/javascript",f.async=!0,f.src=("https:"==e.location.protocol?"https://ssl.widgets.webengage.com":"http://cdn.widgets.webengage.com")+"/js/webengage-min-v-6.0.js",d.parentNode.insertBefore(f,d)})}}(window,document,"webengage");
webengage.init("<%- webengageLicenseCode -%>");
webengage.user.setAttribute('user_type', 'malibu_user');
webengage.user.setAttribute('we_custom_render', true);
</script>
</head>
Expand Down

0 comments on commit 35ff375

Please sign in to comment.