Installing library through GTM

GTM allows you to easily add different kind of services, javascript codes or just custom HTML to your website.

  1. Register your GTM account if you did not do that yet.

  2. Create new tag.

  3. Choose tag type, and select Custom HTML.

  4. Paste in the JavaScript library.

<script>
!function(e,n,s,t,o){e.sendflow=e.sendflow||function(){(e.sendflow.q=e.sendflow.q||[]).push(arguments)},
t=n.createElement('script'),o=n.getElementsByTagName('script')[0],
t.async=1,t.src='//cdn.sendflow.pl/<your-website-uid>/library-main.min.js',
o.parentNode.insertBefore(t,o)}(window,document);
</script>

Remember that each website has a slightly different code. The difference is website unique identifier in the link to the library.

After the code is inserted, you have to add Service Worker file to the root folder of your website. To do so, go to website management in our platform and download the following zip by click on Download Service Worker.

Finally unpack zip and upload sendflow-worker.js file to the top-level root of your website. Depending on how your website is hosted, you may need to contact administrator or developer to help you copy this file to your website.

If you are integrating Sendflow into a site with an existing service worker (like a PWA), you may have to merge service workers.

Directly from website management in our platform you can send a email message to your programmer with the manual by click on Send to developer.