splitrb / split-analytics Goto Github PK
View Code? Open in Web Editor NEW:bar_chart: An extension to Split to push test data to Google Analytics.
Home Page: http://libraries.io/rubygems/split-analytics
License: MIT License
:bar_chart: An extension to Split to push test data to Google Analytics.
Home Page: http://libraries.io/rubygems/split-analytics
License: MIT License
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/12.3.1
Libraries.io has found that there is a newer version of rspec that this project depends on.
More info: https://libraries.io/rubygems/rspec/3.5.0
Dependabot can't evaluate your Ruby dependency files.
As a result, Dependabot couldn't check whether any of your dependencies are out-of-date.
The error Dependabot encountered was:
Bundler::Dsl::DSLError with message:
[!] There was an error parsing `Gemfile`:
[!] There was an error while loading `split-analytics.gemspec`: undefined method `bug_tracker_uri=' for #<Gem::Specification:0x00005557f8e495a8>. Bundler cannot continue.
# from /home/dependabot/dependabot-updater/dependabot_tmp_dir/split-analytics.gemspec:10
# -------------------------------------------
# "sanitized"
> gem.bug_tracker_uri = 'https://github.com/splitrb/split-analytics/issues'
# "sanitized"
# -------------------------------------------
. Bundler cannot continue.
# from /home/dependabot/dependabot-updater/dependabot_tmp_dir/Gemfile:3
# -------------------------------------------
#
> gemspec
# -------------------------------------------
You can mention @dependabot in the comments below to contact the Dependabot team.
This pull request to split broke split-analytics, tests and functionality needs fixing: splitrb/split#373
Dependabot can't evaluate your Ruby dependency files.
As a result, Dependabot couldn't check whether any of your dependencies are out-of-date.
The error Dependabot encountered was:
Bundler::Dsl::DSLError with message:
[!] There was an error parsing `Gemfile`:
[!] There was an error while loading `split-analytics.gemspec`: undefined method `bug_tracker_uri=' for #<Gem::Specification:0x000055ad2a80ef08>. Bundler cannot continue.
# from /home/dependabot/dependabot-updater/dependabot_tmp_dir/split-analytics.gemspec:10
# -------------------------------------------
# "sanitized"
> gem.bug_tracker_uri = 'https://github.com/splitrb/split-analytics/issues'
# "sanitized"
# -------------------------------------------
. Bundler cannot continue.
# from /home/dependabot/dependabot-updater/dependabot_tmp_dir/Gemfile:3
# -------------------------------------------
#
> gemspec
# -------------------------------------------
You can mention @dependabot in the comments below to contact the Dependabot team.
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/11.1.1
π Hey there! This is the developer experience audit from @mntnr for this repository. I've added in my thoughts below, in the form of a checklist. Looking forward to seeing what you think; let's see if we can resolve all of the open issues and make this repository shine β¨ π β¨
π An extension to Split to push test data to Google Analytics.
For notes on anything crossed out, look below. Note: I use [~]
to mean that I have proposed a fix in a PR. I know it doesn't render properly in Markdown, but it works pretty well otherwise for that purpose. If I think that something is fine, even if it isn't valid according to this checklist, I've checked it off and included a note.
LICENSE
file?
.gemspec
?.github
or docs
folder? See TODO section below for recommendation.
ISSUE_TEMPLATE.md
?PULL_REQUEST_TEMPLATE.md
?CONTRIBUTING.md
file? See TODO section below for recommendation.
good first issue
label as a starting point?CHANGELOG
?
alex
adequately? Run alex *.md
. 5 warnings, all false positives.good for beginners
or good first issue
label?waiting on contributor
label?Note: Neither of these are necessary, but they can help with some things. Check out https://probot.github.io/ for some tools.
Note: These should apply to .gemspec
here.
bugs
field?homepage
field?keywords
?
CONTRIBUTE.md
similar to the main split repo's (see list above for recommended elements to include).https
to your repository website link. Currently it is http
.ISSUE_TEMPLATE.md
and PULL_REQUEST_TEMPLATE.md
files to your repository. It looks like you have your PRs well under control, but these may help you in the future. At the least, ask them to run the tests, first, and to read the Usage guides.available
labels as well as good first issue
. These can be used to signal that you're looking for community involvement for issues. They can also be configured to display on http://up-for-grabs.net. This will help more people interact with your code, and lead to small, iterative work done by others. It may take some time to set up initially - properly scoping issues for newcomers takes some time - but the payback should be worth it.waiting on contributor
. This helps alleviate pressure on you to close them.This checklist is open source! If you have suggestions or think it could be better, contribute back on mntnr/audit-templates.
As well - note that you don't need to tick every box. If you have anything you'd like to talk about, I'm here; otherwise, I would suggest either pulling out tasks into a comment before, or into other issues, and then closing the issue when you feel you've adequately done everything. If you want help here, let me know.
Thank you!
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/11.0.1
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/11.2.2
Hi,
I am trying to use this gem with Split V 0.3.1, I would like to bump the version dependency to 0.3.1, do you know of any issues that has prevented this so far?
If not I will do a fork and update the gemspec.
Thanks,
Stephen
The index on _setCustomVar
cannot be greater than 5, see: https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(["_setAccount", "UA-11223344-1"]);
_gaq.push(["_setCustomVar", 4, "ab_test_four", "c", 1]);
_gaq.push(["_setCustomVar", 5, "ab_test_five", "a", 1]);
_gaq.push(["_setCustomVar", 6, "ab_test_six", "b", 1]);
_gaq.push(["_setCustomVar", 7, "button_color_on_signup", "green", 1]);
_gaq.push(["_setCustomVar", 8, "button_color_on_login", "green", 1]);
_gaq.push(["_trackPageview"]);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl.google-analytics.com/ga.js' : 'http://www.google-analytics.com/ga.js');
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/12.0.0
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/11.1.2
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/11.2.2
Split gem works fine on Heroku, but adding split-analytics into the mix breaks with H13 - 'Connection closed without response' error. Works fine locally, but not in staging or production.
Just updated a project of mine and got this error.
This happens in analytics.rb :
def custom_variables
return nil if ab_user.nil?
arr = []
ab_user.each_with_index do |h, i|
arr << "_gaq.push(['_setCustomVar', #{i + 1}, '#{h[0]}', '#{h[1]}', 1]);"
end
arr.reverse[0..4].reverse.join("\n")
end
Gemfile.lock :
split (1.1.0)
redis (>= 2.1)
redis-namespace (>= 1.1.0)
simple-random
sinatra (>= 1.2.6)
split-analytics (1.0.0)
split (>= 1.0.0)
Do you have any clue ? Thanks a lot.
Hi Andrew,
Hopefully don't mind that I report an issue I found.
This issue happens only after setting a winner.
Steps to reproduce:
-Go to the split admin UI
-Set a winner (from then on only that variant is generated no matter if another variant was stored in the cookie)
-In the google analytics the variant stored in the cookie is reported.
Desired behaviour:
-In the google analytics the actual variant should be stored regardles if a winner is set or not.
I will place a code snippet here showing how did I solved this:
def navigation_location_experiment
ab_test('navigation_location', 'Top', 'Sidebar')
end
def tracked_experiments
['navigation_location']
end
#THIS method is used in the template <%= raw custom_variables %>
def custom_variables
reporting_arr = []
Split::Experiment.all.each_with_index do |experiment, i|
name = experiment.name
if tracked_experiments.include? name
value = send "#{name}_experiment"
reporting_arr << "_gaq.push(['_setCustomVar', #{i+1}, '#{name}', '#{value}', 1]);"
end
end
reporting_arr.join "\n"
end
The main point in the code above is to get exactly the same variant which is used by split itself, no matter if a winner is set or not.
The disadvantage is that we need the variants too... In other words we need the code ab_test(....). Therefore I set up a convention to have a method with the experiment name and underscore experiment. I am using that method to retrieve the experiment value. In the above example "navigation_location_experiment".
Hopefully it helps
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/11.1.0
Any plans to support universal analytics? Is this something I should write myself?
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/11.2.0
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/11.3.0
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/11.0.0
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/11.2.0
Libraries.io has found that there is a newer version of rake that this project depends on.
More info: https://libraries.io/rubygems/rake/11.2.0
In the custom variables in analytics I am getting the version number in each custom variable keys.
The thing is that for the same test I have three different lines due to that number. When is the version changed ??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.