Snippet Integration

JS Snippet Integration Details

Simple JS Integration

Integrating Browsee is a fairly straight forward process. When you signup for Browsee, you should recieve a JS snippet in your inbox. Your JS snippet looks like this

<script>
window._browsee = window._browsee || function () { (_browsee.q = _browsee.q || []).push(arguments) };
_browsee('init', 'YOUR API KEY HERE');
</script>
<script async src='https://cdn.browsee.io/js/browsee.min.js'></script>

Just install this snippet to all pages of your website and your done. If you are using GTM you can create a new tag with Browsee and trigger it on all pages.

Integration using GTM

Browsee is now live in GTM's Community Template Gallery and you can add it to your website with just a few clicks.

  • Login to your Google Tag Manager account.

  • Choose the website on which you would like to integrate Browsee

Choose website in your GTM account
  • Once you have selected the website, you can go to 'Tags' from right side navigation and click on 'New' button on the top right

  • Once, you will edit the new Tag, you will see a blue bar on the top which will take you to the GTM's Community Template Gallery

  • Click on the blue bar which will take you to all the templates n GTM's community and look for Browsee in the list:

  • Click on Browsee to choose the template

Choose Template to add Browsee on your website
  • Once you choose Browsee, you need to fill your Project Key (which you can get from Browsee's Account Page) in GTM dashboard as shown below:

Add You Project Key from Browsee here
Find your Project Key on Settings/Account Pages in Browsee
  • Once you have added the tag, add triggers then save and publish the changes

Using GTM's Custom Templates

You can also integrate Browsee on your website with GTM's custom templates.

  • Login to your Google Tag Manager account.

  • Choose the website on which you would like to integrate Browsee

Select Your Website
  • Once you select the website, go to 'Tags' from right side navigation and click on 'New' button on the top-right corner

  • This will open a panel from right side to add a new tag on your website.

  • You can click on 'Edit' on top-right to add the JS snippet for Browsee. The type should be 'Custom HTML' as shown below:

  • Once you will click on 'Custom HTML', you will be able to add any custom JS snippet here. You can go ahead and copy our JS snippet here. The snippet can be found at Account page in your admin panel.

  • Once you paste the snippet, you can give it a name like 'Browsee Prod' and a Trigger depending upon your need. You can then Save and Publish it to implement the changes in production. Here, we have selected 'All Page Views' which will enable you to record sessions, make heatmaps & funnels basis which you can optimize each page.

Integration for WordPress Websites

Integration with WordPress is pretty straightforward. We have a Wordpress plugin which could be easily integrated on your website. You can search for Browsee plugin on your WP admin panel. You will be able to find the Project Key for WP on our Account page or you can click on "I am on WordPress" button to follow the instructions.

Refer to our FAQ in case your have any questions about our snippet.