Hi, I’m using the javascript embed and having a conflict with the _st global variable. Is there anything I can do to fix this issue?
Definitely! You can update the _st
variable in the javascript embed to a different name. Please keep the underscore in front of the new variable name you choose, and be sure to change it in both spots parts of the installation script. Below is an example changing _st
to _my_st
:
<script>
(function(w,d,t,u,n,s,e)
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_my_st');
_my_st('install', ‘YOUR-INSTALL-KEY-HERE');
</script>