# Smootify.push()

> runs each function once Smootify knows the visitor and the market, before it loads products and cart, so listeners get every event and filters apply from the first request; right away later on. One that throws does not stop the others.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/api/methods/push  
Updated: 2026-10-13

runs each function once Smootify knows the visitor and the market, before it loads products and cart, so listeners get every event and filters apply from the first request; right away later on. One that throws does not stop the others. New in 2.0.

```ts
push(...callbacks: SmootifyCallback[]): void
```

## Types

### SmootifyCallback

```ts
/** A function queued with `window.Smootify.push`: it runs once Smootify is loaded, with the API. */
export type SmootifyCallback = (smootify: SmootifyApi) => void;
```
