Trying to use vanity on rails-api application. #302
Comments
Hi there, sorry for the slow response on this. It sounds like the tracking isn't connecting the users' Vanity id with the On Thursday, August 4, 2016, Luis Carlos González Hernández <
|
Is not configured to add users via JS. Something more wired happend, I decided to use mixpanel to track conversions and alternatives, but I don't delete the vanity tracking functions and is receiving data. Before the deployment to production I delete the The cookie with the user identity travel through ajax requests and it is used for the conversion rate calculation? The payments controller that have the |
Closing this since it seems like things ended up working! |
Hi there, I'm trying to use Vanity on an app that have a normal MVC and an API provide by rails-api. I use
config.api_only = false
that enable the sessions and the cookies for the API.The experiment consist in show two ways of sign up forms, one use the regular MVC and the other use the API calls for sign up. The metric that we use is payment, we want to know how many of the people that signs up on the application pay for the service.
Showing the experiment alternatives and add the participants works perfect but add the conversions is not working, when I run the regular MVC experiment everything works well but when I run the version that make the API calls is not registering the conversions count.
I guess when the app make the API calls is not identifying the user and not adding the conversion for that reason.
My first problem is that I have no
use_vanity
method on myApplicationApiController
so I change the gem for include vanity onActionBase::API
.On
vanity/lib/vanity/frameworks/rails.rb
That make available the
use_vanity
method on myApplicationApiController
.Then in my payments controller I call
track!
methodIn the metrics section of vanity GUI I see how the metric is increasing but in the experiment info is not showing the conversions, any one have any idea why is not working well?
This is my experiment and metric
The text was updated successfully, but these errors were encountered: