# 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/astro/reference/api/methods/enableanalytics  
Updated: 2026-10-21

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

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