Use the reservation event for travel and entertainment-related mobile apps. You can use the EventAttribute3 parameter for a check in (reservation date), EventAttribute4 for multi-day reservations, and EventAttribute5 for the number of guests count.
Use the Advertiser Reference ID parameter for the reservation number or Order ID.
You can also set Revenue and Currency Code attributes to help determine the value of your advertising partners.
- User ID (recommended)
- Facebook User ID (recommended if authentication with Facebook)
- Twitter User ID (recommended if authentication with Twitter)
- Google User ID (recommended if authentication with Google)
- Gender (optional)
- Age (optional)
- Latitude (optional)
- Longitude (optional)
- Altitude (optional)
- Time of Check In set in Date1 (recommended; recommend date time format of yyyy-mm-dd hh:mm:ss)
- Time of Check Out set with Date2 (recommended; recommend date time format of yyyy-mm-dd hh:mm:ss)
- Count of Guests set with Quantity (recommended)
- Revenue (recommended; passed into measureEvent)
- Currency Code (recommended if Revenue set; passed into measureEvent)
- Reservation Number (recommended; passed as referenceID into measureEvent)
Reservation Adobe Air Plugin Version 5.0
Tune.instance.setUserId("userId");
Tune.instance.setFacebookUserId("facebookUserId");
Tune.instance.setGoogleUserId("googleUserId");
Tune.instance.setTwitterUserId("twitterUserId");
Tune.instance.setAge(35);
Tune.instance.setGender(0); // 0 is male, 1 female
Tune.instance.setLocation(47.61, -122.33, 55);
var tuneEvent:Dictionary = new Dictionary();
tuneEvent.name = "reservation";
tuneEvent.revenue = 49.99;
tuneEvent.currency = "USD";
tuneEvent.refId = "12999748531";
tuneEvent.date1 = Date.UTC(2015, 4, 21).toString();
tuneEvent.date2 = Date.UTC(2015, 4, 23).toString();
tuneEvent.quantity = 3;
Tune.instance.measureEvent(tuneEvent);
Reservation Adobe Air Plugin Version 4.0
mobileAppTracker.setUserId("userId");
mobileAppTracker.setFacebookUserId("facebookUserId");
mobileAppTracker.setGoogleUserId("googleUserId");
mobileAppTracker.setTwitterUserId("twitterUserId");
mobileAppTracker.setAge(35);
mobileAppTracker.setGender(0); // 0 is male, 1 female
mobileAppTracker.setLocation(47.61, -122.33, 55);
var matEvent:Dictionary = new Dictionary();
matEvent.name = "reservation";
matEvent.revenue = 49.99;
matEvent.currency = "USD";
matEvent.refId = "12999748531";
matEvent.date1 = Date.UTC(2015, 4, 21).toString();
matEvent.date2 = Date.UTC(2015, 4, 23).toString();
matEvent.quantity = 3;
mobileAppTracker.measureEvent(matEvent);
Reservation Android SDK Version 6.0+
ITune tune = Tune.getInstance();
tune.setUserId("userId");
tune.setFacebookUserId("facebookUserId");
tune.setGoogleUserId("googleUserId");
tune.setTwitterUserId("twitterUserId");
tune.setAge(35);
tune.setGender(TuneGender.MALE);
tune.setLocation(location);
tune.measureEvent(new TuneEvent(TuneEvent.RESERVATION)
.withRevenue(49.99)
.withCurrencyCode("USD")
.withAdvertiserRefId("12999748531")
.withDate1(new GregorianCalendar(2015, 4, 21).getTime())
.withDate2(new GregorianCalendar(2015, 4, 23).getTime())
.withQuantity(3));
Reservation Android SDK Version 4.0+
Tune tune = Tune.getInstance();
tune.setUserId("userId");
tune.setFacebookUserId("facebookUserId");
tune.setGoogleUserId("googleUserId");
tune.setTwitterUserId("twitterUserId");
tune.setAge(35);
tune.setGender(TuneGender.MALE);
tune.setLocation(location);
tune.measureEvent(new TuneEvent(TuneEvent.RESERVATION)
.withRevenue(49.99)
.withCurrencyCode("USD")
.withAdvertiserRefId("12999748531")
.withDate1(new GregorianCalendar(2015, 4, 21).getTime())
.withDate2(new GregorianCalendar(2015, 4, 23).getTime())
.withQuantity(3));
Reservation Cocos2dx Plugin Version 3.9
sdkbox::PluginTune::setUserId("userId");
sdkbox::PluginTune::setFacebookUserId("facebookUserId");
sdkbox::PluginTune::setGoogleUserId("googleUserId");
sdkbox::PluginTune::setTwitterUserId("twitterUserId");
sdkbox::PluginTune::setGender(sdkbox::PluginTune::GenderMale);
sdkbox::PluginTune::setAge(35);
sdkbox::PluginTune::setLatitude(47.61f, -122.33f, 55f);
TuneEvent event;
event.eventName = "reservation";
event.revenue = 49.99;
event.currencyCode = "USD";
event.refId = "12999748531";
event.timeIntervalSince1970Date1 = 1437167569;
event.timeIntervalSince1970Date2 = 1437167569;
event.quantity = 3;
sdkbox::PluginTune::measureEvent(event);
Reservation iOS SDK Version 4.7-3.10
[Tune setUserId:@"US13579"];
[Tune setFacebookUserId:@"321321321321"];
[Tune setGoogleUserId:@"11223344556677"];
[Tune setTwitterUserId:@"1357924680"];
[Tune setAge:43];
[Tune setGender:TuneGenderFemale];
TuneLocation *loc = [TuneLocation new];
loc.latitude = @(9.142276);
loc.longitude = @(-79.724052);
loc.altitude = @(15.);
[Tune setLocation:loc];
TuneEvent *event = [TuneEvent eventWithName:TUNE_EVENT_RESERVATION];
event.date1 = [NSDate date];
event.date2 = [NSDate dateWithTimeIntervalSinceNow:86400];
event.quantity = 2;
event.refId = @"KJ9872";
event.revenue = 129.0;
event.currencyCode = @"USD";
[Tune measureEvent:event];
Reservation Javascript SDK Version 3.2
MobileAppTracker.setUserId("userId");
MobileAppTracker.setFacebookUserId("facebookUserId");
MobileAppTracker.setGoogleUserId("googleUserId");
MobileAppTracker.setTwitterUserId("twitterUserId");
MobileAppTracker.setLatitude(47.61);
MobileAppTracker.setLongitude(-122.33);
MobileAppTracker.setAltitude(55);
MobileAppTracker.setEventDate1(new Date(2015,4,21).getTime());
MobileAppTracker.setEventDate2(new Date(2015,4,23).getTime());
MobileAppTracker.setEventQuantity(3);
MobileAppTracker.measureAction({"eventName": "reservation",
"revenue": 49.99,
"currencyCode": "USD",
"referenceId": "12999748531"});
Reservation PhoneGap Plugin Version 5.0.0
window.plugins.tunePlugin.setUserId("userId");
window.plugins.tunePlugin.setFacebookUserId("facebookUserId");
window.plugins.tunePlugin.setGoogleUserId("googleUserId");
window.plugins.tunePlugin.setTwitterUserId("twitterUserId");
window.plugins.tunePlugin.setAge(35);
window.plugins.tunePlugin.setGender(0); // 0 is male, 1 female
window.plugins.tunePlugin.setLocationWithAltitude(47.61, -122.33, 55);
var tuneEvent = {
"name": "reservation",
"date1": new Date(2015,4,21).getTime(),
"date2": new Date(2015,4,23).getTime(),
"quantity": 3
};
window.plugins.tunePlugin.measureEvent(tuneEvent);
Reservation PhoneGap Plugin Version 3.8+
mobileAppTracker.setUserId("userId");
mobileAppTracker.setFacebookUserId("facebookUserId");
mobileAppTracker.setGoogleUserId("googleUserId");
mobileAppTracker.setTwitterUserId("twitterUserId");
mobileAppTracker.setAge(35);
mobileAppTracker.setGender(0); // 0 is male, 1 female
mobileAppTracker.setLocationWithAltitude(47.61, -122.33, 55);
var matEvent = {
"name": "reservation",
"date1": new Date(2015,4,21).getTime(),
"date2": new Date(2015,4,23).getTime(),
"quantity": 3
};
mobileAppTracker.measureEvent(matEvent);
Reservation Unity Plugin Version 4.0.0+
using TuneSDK;
Tune.SetUserId("userId");
Tune.SetFacebookUserId("facebookUserId");
Tune.SetGoogleUserId("googleUserId");
Tune.SetTwitterUserId("twitterUserId");
Tune.SetAge(35);
Tune.SetGender(0); // 0 is male, 1 female
Tune.SetLocation(47.61, -122.33, 55);
TuneEvent tuneEvent = new TuneEvent("reservation");
tuneEvent.date1 = new DateTime(2015, 4, 21);
tuneEvent.date2 = new DateTime(2015, 4, 23);
tuneEvent.quantity = 3;
tuneEvent.revenue = 49.99;
tuneEvent.currencyCode = "USD";
tuneEvent.advertiserRefId = "12999748531";
Tune.MeasureEvent(tuneEvent);
Reservation Unity Plugin Version 3.8+
MATBinding.SetUserId("userId");
MATBinding.SetFacebookUserId("facebookUserId");
MATBinding.SetGoogleUserId("googleUserId");
MATBinding.SetTwitterUserId("twitterUserId");
MATBinding.SetAge(35);
MATBinding.SetGender(0); // 0 is male, 1 female
MATBinding.SetLocation(47.61, -122.33, 55);
MATEvent matEvent = new MATEvent("reservation");
matEvent.date1 = new DateTime(2015, 4, 21);
matEvent.date2 = new DateTime(2015, 4, 23);
matEvent.quantity = 3;
matEvent.revenue = 49.99;
matEvent.currencyCode = "USD";
matEvent.advertiserRefId = "12999748531";
MATBinding.MeasureEvent(matEvent);
Reservation Windows SDK Version 3.2
mobileAppTracker.SetUserId("userId");
mobileAppTracker.SetFacebookUserId("facebookUserId");
mobileAppTracker.SetGoogleUserId("googleUserId");
mobileAppTracker.SetTwitterUserId("twitterUserId");
mobileAppTracker.SetAge(35);
mobileAppTracker.SetGender(MATGender.MALE);
mobileAppTracker.SetLatitude(47.61);
mobileAppTracker.SetLongitude(-122.33);
mobileAppTracker.SetAltitude(55);
mobileAppTracker.SetEventDate1(checkInTime);
mobileAppTracker.SetEventDate2(checkOutTime);
mobileAppTracker.SetEventQuantity(3);
mobileAppTracker.MeasureAction("reservation", 49.99, "USD", "12999748531");
Reservation Xamarin Plugin Version for iOS
using TuneSDK;
Tune.SetUserId ("userId");
Tune.SetFacebookUserId ("facebookId");
Tune.SetGoogleUserId ("googleId");
Tune.SetTwitterUserId ("twitterId");
Tune.SetAge (age);
Tune.SetGender (gender); // 0 for male, 1 for female, 2 for other
TuneLocation sampleLocation = new TuneLocation ();
sampleLocation.SetLatitude (latitude);
sampleLocation.SetLongitude (longitude);
sampleLocation.SetAltitude (altitude);
Tune.SetLocation (sampleLocation);
TuneEvent evt = TuneEvent.EventWithName ("reservation");
evt.Date1 = checkInTime;
evt.Date2 = checkOutTime;
evt.Quantity = guestCount;
evt.RefId = reservationId;
evt.Revenue = 49.99f;
evt.CurrencyCode = "USD";
Tune.MeasureEvent(evt);
Reservation Xamarin Plugin Version for Android
using TuneSDK;
Tune.Instance.SetUserId("userId");
Tune.Instance.SetFacebookUserId("facebookUserId");
Tune.Instance.SetGoogleUserId("googleUserId");
Tune.Instance.SetTwitterUserId("twitterUserId");
Tune.Instance.SetAge(35);
Tune.Instance.SetGender(TuneGender.Male);
Tune.Instance.SetLocation(location);
Tune.Instance.MeasureEvent(new TuneEvent(TuneEvent.Reservation)
.WithRevenue(49.99)
.WithCurrencyCode("USD")
.WithAdvertiserRefId("12999748531")
.WithDate1(checkInTime)
.WithDate2(checkOutTime)
.WithQuantity(3));
Reservation Missing Code Example
Unable to load code example.
Reservation
Select a preferred platform.
No Comments