Install guide
Install Guides on your website
<script type="text/javascript" src="https://headless.dialogtrail.com/static/sdk.js?id=YOUR_COMPANY_ID"></script><div id="dt-product-guide"></div>Localization
&locale=en_USTracking
Sales tracking
/*
items is a list of the products added to cart / purchased.
id/groupId is the product id / group id that your transformer specifies.
quantity is the amount of the product, this is optional.
value is the sale price of the product.
currency is the currency the user paid in, use the same one to group the sales up and get an overview in our dashboard, this is optional.
ext is the external source, this is optional. When using the default head this is the placementId.
*/
// Add to cart event
window.DT.event(
'add_to_cart',
{
items: [
{
id: string,
groupId?: string,
quantity: number,
value: string | number
}
],
currency: string
},
ext?: { [key: string]: value}
);
// Purchase event
window.DT.event(
'purchase',
{
items: [
{
id: string,
groupId?: string,
quantity: number,
value: string | number
}
],
currency: string
},
ext?: { [key: string]: value}
);Ecommerce store integrations
Add to cart
Initiate guide with properties
Internal name
Name in builder
Description
How to install a script and/or a div on your website
Installing a script
Installing a div
Styling tips
Last updated
Was this helpful?

