segmentio/analytics.js-integrations — pull request #204 by lancejpollard (2014-06-11 19:40:26+00:00)
Title: adroll: add `.page` and make `.track` only send revenue when conversion events are defined

- It only sends the `adroll_conversion_value_in_dollars` and `order_id` if a conversion event in the `events` mapping is defined. In that case, it also renames the event to the value in the `events` mapping.
- If a `user_id` exists, it attaches it to the data.
- In all `.track` calls, it makes the call to `__adroll.record_user` (just different params described above, based on if the event is in the `events` mapping)
- Added the `.page` call which just uses the `page.fullName()` for the name of the track event.

/cc @calvinfo