Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for google analytics userId #15

Merged
merged 6 commits into from
Jan 26, 2015
Merged

add support for google analytics userId #15

merged 6 commits into from
Jan 26, 2015

Conversation

salimhb
Copy link
Member

@salimhb salimhb commented Jan 21, 2015

@jhilden
Copy link
Contributor

jhilden commented Jan 21, 2015

looks good from my side. 👍 for merging

@kangguru
Copy link

please no version bumping in PRs


tracker_options
end
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could this maybe more generic? always camelize the keys, support #call on every option....

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point and useful for the cookie_domain with an i18n multihost setup 17000d3

@@ -93,6 +121,15 @@ def env
end
end

describe "with user_id tracking" do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't that something that should only be tested in the integration spec?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the cookieDomain thingy is tested here too.
both can be tested again in the integration spec too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i'm just a bit confused as to what i should test where

@salimhb salimhb mentioned this pull request Jan 23, 2015
@@ -28,6 +31,18 @@ def tracker
options[:tracker].respond_to?(:call) ? options[:tracker].call(env) : options[:tracker]
end

def tracker_options
@tracker_options ||= begin
tracker_options = {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i know its a matter of taste, but personally i don't like these temporary variables, tap is your fried to get rid of 'em

jhilden added a commit that referenced this pull request Jan 26, 2015
add support for google analytics userId
@jhilden jhilden merged commit 77dfd9a into master Jan 26, 2015
@jhilden jhilden deleted the ga_userid branch January 26, 2015 18:37
@kangguru
Copy link

could we agree on not merging stuff that is under discussion and not reviewed completely?

@salimhb salimhb restored the ga_userid branch January 27, 2015 08:35
@jhilden
Copy link
Contributor

jhilden commented Jan 27, 2015

I will be more careful next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants