# Smootify.enableAnalytics()

> 1.x: Shopify's analytics with (`true`) or without the visitor's consent

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

1.x: Shopify’s analytics with (`true`) or without the visitor’s consent Since 1.x.

```ts
enableAnalytics(userConsent: boolean): Promise<unknown>
```
