trustlead-js-staging
v1.0.6
Published
Trustlead Browser JS Library
Downloads
4
Readme
Trustlead Browser JS Library
For information on using this library in your app, see Trustlead Docs
Installation
With package manager
Simply run:
npm install trustlead-js@latest
, if you want to be always up to datenpm install trustlead-js
, if you want to install the last version availablenpm install [email protected]
, if you wish to install a specific version
With web snippet
Simply past in your html file:
<script src='https://widget.trustlead.co/latest.js'></script>
, to be always up to date with last version<script src='https://widget.trustlead.co/x.x.x.js'></script>
, to install a specific version
Versions
v1.0.5
- Add the ability to fetch the email of the new lead from a form
v1.0.4
- Add widget version as header to be able to versionnise the api
v1.0.4
- Add spinner on iframe loading (backoffice + landingpage)
v1.0.3
- Replace users entity by ambassadors for better clarity on further API usage
- Differentiate first_click to further_clicks
v1.0.2
Add hide function to programatically hide the widget:
window._trustlead?.hide()
v1.0.1
Fetch js file directly in the browser:
- https://widget.trustlead.co/x.x.x.js
v1.0.0
Basic version of trustlead widget:
- Initialize the widget:
window._trustlead?.init({ organisationId, token })
- Programatically show the widget:
window._trustlead?.show()