Questions tagged [vanity]

Vanity is an Experiment Driven Development framework for Rails.

Vanity is a Ruby on Rails EDD (Experiment Driven Development) and A/B testing framework. It is compatible with a variety of datastores via ActiveRecord, including Redis, MongoDB, and SQL databases.

Resources

Related Tags

30 questions
0
votes
1 answer

Custom Vanity views being ignored

I'm using the vanity gem to do some AB testing, but my report is all messed up. The auto-generated css and views have a width of 40em which I would like to change. Following the Vanity Documentation I ran rails g vanity:views which generated all…
James.Oliver
  • 100
  • 9
0
votes
1 answer

Vanity: one experiment per user

I just installed Vanity with redis. I've added multiple experiments on one page. But when a user is visiting the page, he is seeing all the experiments. How can I make sure that a user will only see one experiment and that Vanity chooses which…
Rémon
  • 33
  • 8
0
votes
1 answer

How to display the Vanity Dashboard in another server?

I am using Vanity in Server A. But for the dashboard, I want to display it on Server B. Steps Done: Added gem 'vanity' in the Gemfile Added vanity.yml (used same database as Server A) Added vanity controller But all I see now when I go to…
Catherine
  • 95
  • 1
  • 10
0
votes
1 answer

Creating dynamic URL's with PHP

) I am creating a dynamic event creation application and I have run into a problem when creating dynamic webpages for events. My .htaccess looks like RewriteEngine on RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^([^\.]+)$ $1.php…
WKoppel
  • 504
  • 3
  • 15
0
votes
1 answer

Can I use oracle_enhanced adapter in vanity gem for AB Testing?

For my production database, I am using oracle_enhanced adapter. Is this supported by vanity gem? From https://github.com/assaf/vanity, it says: "Vanity supports multiple SQL stores (like MySQL, MariaDB, Postgres, Sqlite, etc.) using ActiveRecord,…
Catherine
  • 95
  • 1
  • 10
0
votes
1 answer

How do I get Vanity to connect to Elasticache instance

I am using the Vanity gem to do A/B testing and it works great locally. On our EC2 instances rails refuses to start when Vanity is enabled. I have been able to recreate the issue locally by providing incorrect details for my local Redis install. I…
Toby
  • 8,483
  • 13
  • 45
  • 68
0
votes
1 answer

Vanity (gem) - can I create experiments programmatically via a database table?

I am using Vanity gem and have the basics of experiments & metrics set up fine. I was wondering if anyone has tried to extend it to set up experiments themselves via records in a database. It seems to me that Vanity is built to initialize its…
Jason FB
  • 4,752
  • 3
  • 38
  • 69
0
votes
1 answer

How can I get the participants of a Vanity experiment?

tl:dr Is there anyway to get something like Vanity.experiment(:landing).participants_for_option(:a) returning a array of users? The long story I'm using the gem Vanity with a Rails 4.2 application and it is working nicely, but I want to inspect…
Pedro Bernardes
  • 706
  • 1
  • 8
  • 20
0
votes
1 answer

Adding custom user ID to Vanity's "track!" method

There's a Vanity metric that is tracked by a cronjob, long after the user has left the website. How should I pass the user ID to the "track!" method to ensure that the conversion is handled properly?
João de Paula
  • 123
  • 1
  • 7
0
votes
1 answer

How do I use an existing Redis connection in Vanity?

I have a Redis add-on in Heroku that only allows 10 connections. My app already uses Redis with $redis. I have Unicorn with 3 workers and 2 dynos, which is 6 connections. Vanity connects by itself which is another 6 connections. That is 12…
Chloe
  • 25,162
  • 40
  • 190
  • 357
0
votes
1 answer

How do I generate a report with Vanity?

Whenever I try to generate a report with Vanity, it creates an empty HTML file >vanity report --output vanity.html Vanity: loading experiments from ... Vanity: loading metrics from ... New report available in vanity.html When viewing in the…
Chloe
  • 25,162
  • 40
  • 190
  • 357
0
votes
2 answers

Vanity A/B testing with page caching

I'm using Vanity to do my A/B testing but I also have page caching for the pages the experiment is running on. Because of that, the user will actually see both options as they navigate around the site. I would be fine with that however I know that…
LennonR
  • 1,433
  • 18
  • 35
0
votes
1 answer

Why doesn't vanity create vanity_experiments.rb and similar in app/models

I've create and run my vanity migrations and I can see the resulting tables in schema.rb and the rails console: ActiveRecord::Base.connection.tables => ["schema_migrations", "pages", "users", "areas", "roles", "assignments", "categories",…
steven_noble
  • 4,133
  • 10
  • 44
  • 77
0
votes
1 answer

Using Images as Vanity Alternatives

I am trying to use Vanity for rails. my ab_test /rag_price_options.rb file is: ab_test "Rag price options" do description "Different options for displaying the rag price" alternatives "banner_194x117_rag.png", "ccp_logo_bk.png" …
jrich
  • 75
  • 6
-1
votes
1 answer

PHP returning wrong row in mysqli prepared statment

I'm trying to create vanity URL's for my website and as of now there is only one username in the database that can be referenced. My query will return the profile with the username "callmeoddie" no matter what letters are entered. The idea here is…
1
2