> For the complete documentation index, see [llms.txt](https://docs.antsomi.com/developers-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.antsomi.com/developers-guide/website/tracking-events/gtm-sample-e-commerce-events/apply-promotion-code.md).

# Apply Promotion Code

When a user enters a promotion code during the checkout process on your website, it signifies their engagement with discounts or promotions.

<figure><img src="https://1976329911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi16t4WMYZYowEFalUZLL%2Fuploads%2F29gReeEoRrP2nR0BQNr5%2Fapply-promotion-code.jpg?alt=media&amp;token=7fcb4f22-456c-4546-9f0d-72299620fe93" alt=""><figcaption><p>Apply Promotion Code</p></figcaption></figure>

## Create the Antsomi Pixel tag

In workspace > Tags > News > Antsomi pixel template

<figure><img src="https://1976329911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi16t4WMYZYowEFalUZLL%2Fuploads%2FRhYMipAqgVWtbLjeB7Rg%2F2024-05-06_15-00-18.jpg?alt=media&amp;token=e2205024-f9fe-4c57-99a5-3ec2ee5fd938" alt=""><figcaption><p>Choose Antsomi pixel template</p></figcaption></figure>

### 1. Promotion Variables option 'Single Entry'

<figure><img src="https://1976329911-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi16t4WMYZYowEFalUZLL%2Fuploads%2F5gsHoL7zaPShh6Zoi9Qh%2Fapplypromotion.png?alt=media&amp;token=876625a3-8584-4e19-8d73-73cecb1194ba" alt=""><figcaption><p>Apply Promotion Code - Promotion Variables option 'Single Entry'</p></figcaption></figure>

* Example Variable for Promotion

<table><thead><tr><th width="303">Name Variable</th><th width="260">Description</th><th>Example</th></tr></thead><tbody><tr><td>{{CDP - Data - Promotion - Code}}</td><td>The applied promotion code text value.</td><td>ANT250OFF</td></tr><tr><td>{{CDP - Data - Property ID}}</td><td>Hard-coded value: <code>{{cdp_property_id}}</code></td><td>565999868</td></tr></tbody></table>

{% hint style="warning" %}
Please contact our supports team to have the value of the `{{cdp_property_id}}`
{% endhint %}

* Example Variables for Purchase

<table><thead><tr><th width="303">Name Variable</th><th width="260">Description</th><th>Example</th></tr></thead><tbody><tr><td>{{CDP - Data - Purchase - ID}}</td><td>The order ID</td><td>#2868</td></tr></tbody></table>

* Example Variables for Customer

<table><thead><tr><th width="317">Name Variable</th><th width="247">Description</th><th>Example</th></tr></thead><tbody><tr><td>{{CDP - Data - Customer - ID}}</td><td>The customer ID. Required (*)</td><td>4564</td></tr><tr><td>{{CDP - Data - Customer - Name}}</td><td>The identified user’s full name. Required (*)</td><td>Abcd</td></tr><tr><td>{{CDP - Data - Customer - Email}}</td><td>The identified user’s email in lowercase.</td><td>abcd@example.com</td></tr><tr><td>{{CDP - Data - Customer - Phone}}</td><td>The formatted user’s phone.</td><td>098xxxx</td></tr></tbody></table>
