# Events Upload

### Overview

The following offline event data can be uploaded:

* Lead
* Purchase
* PageView

### File Criteria

* Only **CSV** files are accepted
* Maximum 1000 rows (excluding the header)
* Either **email** or **phone** are required for **Lead** and **Purchase** events, and **page\_url** is required for **PageView**
* Additional params are optional

***

### Lead

#### User Params

* email
* phone
* first\_name
* last\_name
* city
* region
* country

#### Lead Params

* lead\_name
* category
* currency
* value

#### Additional Params

* timestamp *(optional)*
* fbclid *(optional)*
* gclid *(optional)*

#### Sample Data

{% file src="/files/tXIJNSGq8VCoj7uAZiWL" %}

| email                     | phone        | first\_name | last\_name | city         | region | country | lead\_name            | category  | currency | value | timestamp     | fbclid | gclid  |
| ------------------------- | ------------ | ----------- | ---------- | ------------ | ------ | ------- | --------------------- | --------- | -------- | ----- | ------------- | ------ | ------ |
| <uladell0@blogger.com>    | +12026593321 | Uri         | Ladell     | Washington   | DC     | US      | Subscribe             | subscribe | USD      | 100   | 1730419200000 | 123123 | 456456 |
| <sstaite1@goo.gl>         |              | Stephie     | Staite     | Baltimore    | MD     | US      | NewsLetter\_Subscribe | subscribe | EUR      | 100   | 1730422800000 |        | 456456 |
|                           | +17241886341 | Gretna      | Pennacci   | Pittsburgh   | PA     | US      | Campaign\_Subscribe   | inbound   | GBP      | 100   | 1730430000000 | 123123 |        |
| <apartner3@microsoft.com> | +12082148354 | Alexandros  | Partner    | Boise        | ID     | US      | Lead                  | lead      | CAD      | 2000  | 1730433600000 |        |        |
| <tdecopeman4@about.com>   | +12677143270 | Tersina     | DeCopeman  | Philadelphia | PA     | US      | SMS\_Click            | outbound  | AUD      | 2000  | 1730437200000 | 123123 |        |

***

### Purchase

#### User Params

* email
* phone
* first\_name
* last\_name
* city
* region
* country

#### Purchase Params

* order\_id
* currency
* value

#### Additional Params

* timestamp *(optional)*
* fbclid *(optional)*
* gclid *(optional)*

#### Sample Data

{% file src="/files/GWV6OLk3k1jaBDY6rbQe" %}

| email                       | phone        | first\_name | last\_name | city          | region | country | order\_id | currency | value | timestamp     | fbclid | gclid  |
| --------------------------- | ------------ | ----------- | ---------- | ------------- | ------ | ------- | --------- | -------- | ----- | ------------- | ------ | ------ |
| <lmonro5@mozilla.com>       |              | Lisa        | Monro      | BonitaSprings | FL     | US      | aaaa1234  | USD      | 100   | 1730419200000 | 123123 | 456456 |
| <jhefner6@rambler.ru>       | +18177781170 | Janelle     | Hefner     | FortWorth     | TX     | US      | bbbb1234  | GBP      | 200   | 1730422800000 | 123123 |        |
|                             | +17275817532 | Steffen     | Mattimoe   | Largo         | FL     | US      | cccc1234  | EUR      | 3000  | 1730430000000 |        | 456456 |
| <vfosh8@chicagotribune.com> |              | Valentine   | Fosh       | Chicago       | IL     | US      | dddd1234  | AUD      | 4000  | 1730433600000 | 123123 | 456456 |
| <ocollen9@zimbio.com>       | +12488044753 | Olly        | Collen     | Troy          | MI     | US      | eeee1234  | CAD      | 5000  | 1730437200000 |        |        |

***

### PageView

#### User Params

* email *(optional)*
* phone *(optional)*
* first\_name *(optional)*
* last\_name *(optional)*
* city *(optional)*
* region *(optional)*
* country *(optional)*

#### PageView Params

* page\_url
* title *(optional)*
* referrer *(optional)*
* search *(optional)*

#### Additional Params

* timestamp *(optional)*
* fbclid *(optional)*
* gclid *(optional)*

#### Sample Data

{% file src="/files/oPmHeKccUFnns7l0DtCt" %}

| page\_url                         | title                 | referrer                 | search     | timestamp     | fbclid | gclid  | email                  | phone       | first\_name | last\_name | city          | region | country |
| --------------------------------- | --------------------- | ------------------------ | ---------- | ------------- | ------ | ------ | ---------------------- | ----------- | ----------- | ---------- | ------------- | ------ | ------- |
| <https://www.example.com>         | Example Site Homepage | <https://www.google.com> | ?key=value | 1733731806190 | 123456 | 987654 | <john.doe@example.com> | +1415762837 | John        | Doe        | San Francisco | CA     | US      |
| <https://www.example.com/subpage> |                       |                          |            |               |        |        |                        |             |             |            |               |        |         |


---

# 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.edgetag.io/features/events-upload.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.
