commercetools
What the agent does on a commercetools store, how to set it up in order (connect it, install the tag, report its orders) so sales are credited to the agent.
The commercetools connector is in Beta: commercetools describes its Commerce MCP server as still under development. Set it up in this order.
1. Connect commercetools
From your deployed Commerce MCP endpoint and a bearer token.
2. Install the tag
With Google Tag Manager, or the snippet by hand, on every page, the confirmation page included.
3. The transaction command
One call on your confirmation page reports each order, with its conversation key.
Connect the store
commercetools' Commerce MCP server is something you deploy and run yourself. The connector needs its endpoint URL and a bearer token, and it starts with only catalog search and the shopper's cart tools switched on. See Connect commercetools.
Install the tag
Install the tag on every page of your store, the order confirmation page included: your orders are reported there. The recommended way is Google Tag Manager, with the Main Tag template from Site settings > Installation: see Install with Google Tag Manager. Without it, paste the install snippet in your templates: see Install without Google Tag Manager.
Measure sales
The recommended way is Google Tag Manager: one Sales tag reports both your orders and your add-to-carts from your dataLayer, with no code. See Create the Sales tag. Without it, call the commands below by hand, as in Install without Google Tag Manager.
By hand, the setup is the one that works on any platform, described in Other platforms. Your orders reach the agent through the transaction command: one call to iadvize('transaction', …) on your order confirmation page, on every completed order. The tag adds the conversation's key when the shopper talked to the agent in the same browser. If you prefer to send orders from your server or order system, use the server API.
To count the add-to-carts shoppers make on your own pages, call the addToCart command once per cart line they add. Without it, the add-to-cart figures of the Sales report that need them read Not measured. Orders are not affected. See Measure your sales for how an order is linked and the limits.