Parse Plugin: custom analytics

The documentation for the parse plugin does not seem to be sufficient. 

parse.request( parse.Analytics.event )
:data({dimensions:{
priceRange = “1000-1500”,
source = “craigslist”,
dayType = “weekday”
}
})
:response(cb)

I get the following error:

{

  error = “parse.request: A key or keys are missing. Expected: eventName”

}

 

I don’t know where to put the eventName.  I tried parse.Analytics.event.eventName assuming it this transforms into /events/eventName but that did not work.  I also tried :data({eventName=“eventname”,dimensions:{}}) that also did not work.

 

 

Hi,

Thanks for pointing out the incomplete docs, they have been updated, you should be able to use it like so:

[lua]

parse.request( parse.Analytics.event, “EventName” )
:data({dimensions:{
  priceRange = “1000-1500”,
  source = “craigslist”,
  dayType = “weekday”
}})
:response(cb)

[/lua]

Hope that helps.

Cheers.

thanks!

Hi,

Thanks for pointing out the incomplete docs, they have been updated, you should be able to use it like so:

[lua]

parse.request( parse.Analytics.event, “EventName” )
:data({dimensions:{
  priceRange = “1000-1500”,
  source = “craigslist”,
  dayType = “weekday”
}})
:response(cb)

[/lua]

Hope that helps.

Cheers.

thanks!