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

Remove Google Analytics Tracking Code #101

Merged
merged 2 commits into from
Jan 20, 2016

Conversation

erino
Copy link
Member

@erino erino commented Aug 5, 2015

As per #100

@calumgunn
Copy link
Contributor

👍

@erino
Copy link
Member Author

erino commented Aug 7, 2015

Maybe we should depreciate this method first?

@erino erino force-pushed the remove-google_analytics_tracking_code branch from c99068e to a18d08e Compare August 10, 2015 16:06
@@ -88,6 +88,7 @@ def if_t(key, options = {})
# @return [String] GA embed code
#
def google_analytics_tracking_code(*web_property_ids)
ActiveSupport::Deprecation.warn "PagesHelper#google_analytics_tracking_code is depreciated. Embed the Google Analytics tracking code directly."
Copy link
Contributor

Choose a reason for hiding this comment

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

deprecated :-)

Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed, we can just delete this guy instead of deprecating.

@bensymonds bensymonds mentioned this pull request Sep 2, 2015
@erino erino added this to the v2.0 milestone Sep 2, 2015
@erino erino force-pushed the remove-google_analytics_tracking_code branch from a18d08e to 0045f8f Compare September 11, 2015 12:18
@erino
Copy link
Member Author

erino commented Sep 11, 2015

@erino erino force-pushed the remove-google_analytics_tracking_code branch from 0045f8f to af3c5fc Compare September 11, 2015 12:20
@bensymonds
Copy link
Contributor

Hmm good question. I think the decision to include admin activity or not is up to the Slices user. So I say remove it. There's nothing subtle here - Slices adds a Devise admin, so it's obvious how you would exclude it.

@erino erino force-pushed the remove-google_analytics_tracking_code branch 2 times, most recently from 9ec9d71 to 0e9969a Compare September 12, 2015 13:11
@bensymonds
Copy link
Contributor

Seems ok to me 👍

@erino erino modified the milestones: v3.0, v2.0 Jan 14, 2016
@bensymonds
Copy link
Contributor

Next release from master is v3 so we're ok break things, right? So nothing stopping us from merging this apart from two things which we've discussed:

  • add entry to CHANGELOG.md
  • see if any guides need updating

Both can happen in this PR.

Also PagesHelper#add_tracking_code
@calumgunn calumgunn force-pushed the remove-google_analytics_tracking_code branch from 0e9969a to 020ed00 Compare January 20, 2016 11:59
@calumgunn
Copy link
Contributor

Am I CHANGELOGging correctly?

@bensymonds
Copy link
Contributor

@calumgunn I think that's what it would be if we are going to follow the existing style. But I propose we change the style. Two immediate things I think we should do:

  1. Differentiate between breaking changes and other changes (so you can easily see what you might have to change in your app)
  2. Link to the PR that made the change, so you can see more info about the change (cf. https://github.com/bbatsov/rubocop/blob/master/CHANGELOG.md)

Those are just off the top of my head. Anyone else got any ideas? @withassociates/with-core

@calumgunn
Copy link
Contributor

@bensymonds I am totally in. Will make some changes now and see how we go.

@calumgunn calumgunn force-pushed the remove-google_analytics_tracking_code branch 2 times, most recently from b1338b2 to a29e682 Compare January 20, 2016 14:23
@calumgunn
Copy link
Contributor

@withassociates/with-core Check the new and cool changelog. Thoughts?

@erino
Copy link
Member Author

erino commented Jan 20, 2016

👍

@bensymonds
Copy link
Contributor

I like it. The only other thing I'm wondering is whether we should put a little bit more info in for the breaking changes, e.g. a few instructions to them on what they could/should do (so in this case it would be something along the lines of "include the js yourself"). In a lot of cases they can glean it from the linked PR, but it's usually pretty annoying to have to read through the whole PR to find it. If we put it in the changelog then it automatically becomes the upgrade guide for that version. So could rearrange slightly to this:

### Breaking changes
* [#101](https://github.com/withassociates/slices/pull/101): Remove `PagesHelper#google_analytics_tracking_code` and `PagesHelper#add_tracking_code`
  * You should include the GA javascript yourself.

@bensymonds
Copy link
Contributor

(That's formatted crappily.)

@calumgunn
Copy link
Contributor

@bensymonds Good plan. I've updated!

nb - To have nested lists in Markdown (Github Flavour), you indent by four spaces.

@calumgunn calumgunn force-pushed the remove-google_analytics_tracking_code branch from 9c971b4 to b47d46d Compare January 20, 2016 15:21
@bensymonds
Copy link
Contributor

Ah ok, it says here that it's two spaces! I was too lazy to try four. Changelog looks 👍 to me. Did you check to see if any guides need updating? I'm thinking that those two things (changelog and guides) are updated (or confirmed they don't need updating) for each PR.

@calumgunn
Copy link
Contributor

@bensymonds Couldn't see anything in the Guides for it, so we're good to go on this one!

@bensymonds
Copy link
Contributor

Cool.

calumgunn added a commit that referenced this pull request Jan 20, 2016
…racking_code

Remove Google Analytics Tracking Code
@calumgunn calumgunn merged commit 39a9c37 into master Jan 20, 2016
@calumgunn calumgunn deleted the remove-google_analytics_tracking_code branch January 20, 2016 15:43
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.

3 participants