Skip to content

Commit

Permalink
add zanox documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
berlintam committed May 21, 2015
1 parent 5e5ed81 commit e5f9866
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ but to get you started we're shipping support for the following services out of
* [Visual Website Optimizer (VWO)](#visual-website-optimizer-vwo)
* [GoSquared](#gosquared)
* [Criteo](#criteo)
* [Zanox](#zanox)


## Installation
@@ -369,7 +370,57 @@ Another example
t.criteo :track_transaction, { id: 'id', item: { id: "P0038", price: "6.54", quantity: 1 } }
```

### Zanox

[Zanox](http://www.zanox.com/us/)

#### Basic Configuration

```
config.middleware.use(Rack::Tracker) do
handler :zanox, { account_id: '1234' }
end
```

#### Mastertag

This is an example of a mastertag:

```
def show
tracker do |t|
t.zanox :mastertag, { id: "25GHTE9A07DF67DFG90T" }
end
end
```

This will render to the follwing code in the JS:

```
window._zx.push({"id": "25GHTE9A07DF67DFG90T"});
```

#### Conversion tracking

This is an example of a lead event:

```
def show
tracker do |t|
t.zanox :track, { order_i_d: 'DEFC-4321'}
end
end
```

This is an example of a sale event:

```
def show
tracker do |t|
t.zanox :track, { order_i_d: 'DEFC-4321', currency_symbol: 'EUR', total_price: '150.00'}
end
end
```

### Custom Handlers

0 comments on commit e5f9866

Please sign in to comment.