# Install the SDK

**Category:** [Platform Messaging](https://help.totalctrl.app/hc/totalctrl/totalctrl-help-center/en-US/categories/product-tours)
**Updated:** 2026-08-19

## Install the Platform Messaging SDK

- Open **Platform Messaging → Install**.
- Copy the snippet and paste it into the `<head>` of every page of your product.
- (Recommended) Call `tcMessaging('identify', userId, traits)` with your logged-in user's id and properties so you can target by audience and resume tours across devices:

```
tcMessaging('identify', 'user-123', { plan: 'pro', role: 'admin' });
```

### Allowed origins

On the Install page you can list the domains allowed to send events. Leave it blank to accept any origin, or restrict it to your production domains.
### Verify it works

Publish a simple banner flow targeted at any page, load your site, and confirm it appears. The Install page shows your public **site key**; it is safe to expose in client-side code.

---

## Related Articles

- [Build a tour](https://help.totalctrl.app/en-US/articles/build-a-tour)
- [Measure performance](https://help.totalctrl.app/en-US/articles/platform-messaging-analytics)
- [Targeting, triggers, and frequency](https://help.totalctrl.app/en-US/articles/targeting-triggers-frequency)
- [Onboarding checklists](https://help.totalctrl.app/en-US/articles/onboarding-checklists)
- [Draft a flow with AI](https://help.totalctrl.app/en-US/articles/draft-a-flow-with-ai)

---
[← Back to TotalCtrl Help Center](https://help.totalctrl.app/en-US/)