# Spin the Wheel 1.1.2

Changes from 1.1.1.

## 🚀 Key Features & Updates

- Push GTM action events for popup open/close, spin, coupon-copy attempts, CTA clicks, and automatic popup opening.
- Events use `gtm_wheel_action`, `wheel_action`, and `action_value` (`<action>-<value>`).
- Apply each slice's configured background color directly, without a radial gradient.
- Move the desktop wheel pointer to 3.5% from the top; preserve the mobile position.
- Style main promo labels at 14px/600 weight and color them green on alternating slices.
- Set secondary promo labels to 0.85em/1.33 line height and inherit their font weight.
- Center the campaign period label, set the result action minimum width to 55%, and show the supplied SVG after successful coupon copy.
- Add optional localized `promo2` text below the main promo label on wheel slices.
- Allow independent promo and promo2 text colors, font sizes, and bold settings under promo `config.theme`.

Example overrides for a `spinTheWheelSlice` promo's `config` JSON Object:

```json
{
  "theme": {
    "promo": { "color": "#FF0000", "fontSize": 14, "bold": true },
    "promo2": { "color": "#00AA00", "fontSize": 10, "bold": false }
  }
}
```

These are optional overrides; omit `promo` or `promo2` settings to keep that label's defaults.

## ⚠️ Important Behavioral Changes | Breaking Changes

- The `sp_coupon` cookie retains the Base64URL-encoded UTF-8 JSON format introduced in 1.1.1.
- Add optional `promo2` to `spinTheWheelSlice` with migration `005-add-promo2-to-wheel-slice.cjs`; migration `006-move-promo2-after-promo.cjs` places it immediately after `promo` in the Contentful editor.
- Promo text style settings are optional. Without overrides, the main label is 14px/600 weight and green on alternating slices; the secondary line uses 0.85em text at 1.33 line height and inherits the slice text weight. Font sizes accept 8–24px; explicit `bold: false` uses 400 and `bold: true` uses 700.

## ℹ️ Other Notes | Information

- All new promo fields and style overrides are optional; existing entries continue to work without `promo2`.
