Hi there,
Please bear with me.
I’m Joe from Marker.io. We have a person trying to use our software on Bubble.io. It seems to be working fine for him in the pre-live environment, but not in live. I don’t see any errors related to Marker.io in the console logs. However, I do see “other” errors that may impact it.
I’m not hugely technical, so my question really is:
What is the optimal way of installing a JavaScript widget (Two lines of JS) across a bubble application?
Below I will place some sample code.
Sorry if this is a very beginner type question, and thank you very much if you can help.
Joe
Here is some sample code:
Part 1:
window.markerConfig = {
project: ‘646f568a62e89bfc16ed9f23’,
source: ‘snippet’
};
Part 2:
<script>
!function(e,r,a){if(!e.__Marker){e.__Marker={};var t=[],n={__cs:t};["show","hide","isVisible","capture","cancelCapture","unload","reload","isExtensionInstalled","setReporter","setCustomData","on","off"].forEach(function(e){n[e]=function(){var r=Array.prototype.slice.call(arguments);r.unshift(e),t.push(r)}}),e.Marker=n;var s=r.createElement("script");s.async=1,s.src="https://edge.marker.io/latest/shim.js";var i=r.getElementsByTagName("script")[0];i.parentNode.insertBefore(s,i)}}(window,document);
</script>