Release notes

What changed across tracking, templates and the API — newest first.

Google Analytics: Trustisto campaign ID in trustisto_campaign

Latesttrackinggoogle-analytics

The trustisto_show and trustisto_engage events that Trustisto sends to Google Analytics 4 now carry the Trustisto campaign ID in trustisto_campaign instead of campaign_name.

GA4 reads campaign_name as the campaign of the visit, the same field as utm_campaign. Every campaign display or click gave the visit a campaign without source and medium, so GA4 moved part of the conversions, e.g. from Google Ads, to unassigned traffic. trustisto_campaign is a regular event parameter and does not change the attribution.

This applies to every integration type, Google Tag Manager included.

  • With Google Tag Manager, the dataLayer no longer has campaign_name. If a variable or tag in your container reads it, switch it to trustisto_campaign.
  • Visits attributed before the change keep their attribution.

The other parameters are unchanged: trustisto_module (e.g. trust_topbar), trust_effect and event_label (the same campaign ID).

CLI 1.0.1: preview address with parameters

clitemplates

trustisto template start now prints the address to open, with the parameters our template script needs: http://localhost:8080/index.html?id=test&locale=en&test=1. The preview shows up with the {{param}} macros filled in with the defaults from the manifest, for mails too. --locale picks the language of the defaults.

To update the CLI to the latest version:

Shell
npm install -g @trustisto/cli@latest
trustisto --version

See Preview and validation for the preview and Installation for updating.

Trustisto CLI 1.0

clitemplates

The Trustisto CLI is out on npm as @trustisto/cli. It builds Overlay, Bar and mail templates from your terminal:

Shell
npm install -g @trustisto/cli
trustisto login
trustisto template new ./my-popup --type popup
trustisto template start ./my-popup
trustisto template deploy ./my-popup
  • template new - creates a template from the base package for its type.
  • template start and template validate - preview it locally and check it the way the upload does.
  • template deploy - uploads it to the panel as an organization template; deploying again updates the same template. template delete removes it.

The CLI needs Node.js 24 or newer. Building a template by hand and uploading a zip in the panel works as before. See Commands for the full reference.

Coupon codes in orders

tracking

Orders can now carry the coupon code the customer used. Trustisto uses it to mark one-time coupons sent by your campaigns as used, and to credit the order to the campaign that sent the coupon.

  • order.couponCode in Thank You Page - the coupon used in the order.
  • couponCode in Save Client - saves the code in the browser earlier, e.g. on the basket page; it is added to the order on the Thank You Page.
  • SP.go('watchClient', 'input[name="coupon"]', 'couponCode') - saves the code straight from the coupon field of your checkout.

The saved code stays only in the visitor’s browser and is removed after the order. See Coupon Codes for details.