# Apply Promotion Code

<figure><img src="/files/qlf0J2yziL1Mac48NpCn" alt=""><figcaption><p>Apply Promotion Code</p></figcaption></figure>

## Create the Antsomi Pixel tag

In workspace > Tags > News > Antsomi pixel template

<figure><img src="/files/jriXrE3pX5oOiytjJ0qD" alt=""><figcaption><p>Choose Antsomi pixel template</p></figcaption></figure>

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

<figure><img src="/files/GiFan70ENORUNmVbBWm3" 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.antsomi.com/developers-guide/website/tracking-events/gtm-sample-e-commerce-events/apply-promotion-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
