Tracking and geodata in PairWise API

19 views
Skip to first unread message

Sentissi Mouad

unread,
Apr 8, 2014, 9:03:54 AM4/8/14
to allou...@googlegroups.com
Hi all,

Does any body know how to use the tracking field in pairwise DB through the API.
All following tables : votes, visitors, questions prompts, choices, has a tracking field, but I wonder how they get filled
I'm thinking about geolocation, and it's sounds more logic for me to track it at the vote level, but it seems like we can't do it using the prompts-vote call.

Anybody been in that same  context ?

Thanks,
Mouad

Luke Baker

unread,
Apr 8, 2014, 9:18:19 AM4/8/14
to allou...@googlegroups.com
The All Our Ideas code passes some data into the tracking field for
votes. You can see that here:
https://github.com/allourideas/allourideas.org/blob/5d296ab0c7ea5cf3d09b3244d2d2288fc25ffdf9/app/controllers/prompts_controller.rb#L193

I updated the docs on the prompts-vote[1] page to mention the tracking
parameter, which you should be able to set when submitting a vote.

Luke

[1] https://github.com/allourideas/pairwise-api/wiki/prompts-vote
> --
> You received this message because you are subscribed to the Google Groups
> "All Our Ideas" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to allourideas...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Sentissi Mouad

unread,
Apr 8, 2014, 9:59:03 AM4/8/14
to allou...@googlegroups.com
Great. Thanks Luke. It's working.
Reply all
Reply to author
Forward
0 new messages