Install the snippet¶
The snippet must appear at the top of every page on your site. orb()
commands
cannot send data unless this snippet is on the page, and that snippet appears
above any orb()
commands being called.
All supported integrations with the Web SDK generates the same tag, called the tag management snippet. You can find the snippet within Orbee's Platform.
Paste the snippet immediately after the <head>
tag on every page of your
website. Replace the SCRIPT_TOKEN
placeholder with the appropriate ID. The
script is made up of two parts:
- the tag manager script.
- the snippet initialization.
You only need one snippet initialization per page. If multiple accounts or scripts are required, you only need to re-include the tag manager script.
<script async src="https://scripts.orb.ee/tms.js?sid=SCRIPT_TOKEN"></script>
<script>
;(function(w,d,n){
w.orbObject=w.orbObject||n;
if(!w[n]){
w[n]=function(){
return (w[n].q=w[n].q||[]).push(arguments)
};
w[n].q=w[n].q||[];
}
})(window,document,"orb");
</script>
<script async src="https://scripts.orb.ee/tms.js?sid=SCRIPT_TOKEN"></script>
<script>;(function(w,d,n){w.orbObject=w.orbObject||n;if(!w[n]){w[n]=function(){return (w[n].q=w[n].q||[]).push(arguments)};w[n].q=w[n].q||[];}}(window,document,"orb"));</script>
Note
This snippet is a tag manager. You will see other tags get added to your website through this script, which can be controlled through Orbee's Platform. Learn more