Integration Guide
This part of the documentation will guide you through the steps of embedding the Ingrid FAQ widget.
- Embed the widget script in the
HEAD
section:
<script src="https://cdn.ingrid.com/faq-widget/bootstrap.js"></script>
In staging/testing environment use this link: https://cdn-stage.ingrid.com/faq-widget/bootstrap.js
- Create an empty placeholder in the desired place of your webpage:
<div id="ingrid-faq-widget"></div>
The id
should be globally unique.
- Initialize the widget:
new ingrid.faq("ingrid-faq-widget", {
auth_token: "ingrid-http-auth-token:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
country: "SE",
currency: "SEK",
locales: ["sv-SE"],
});
Following parameters are required:
auth_token
- global FAQ widget authorization token. You can find the token in our Merchant Platform.country
- country in ISO-alpha-2 format.currency
- currency code in ISO-4217 format (Optional).locales
- an array of locales.