-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
👍 |
Maybe we should depreciate this method first? |
c99068e
to
a18d08e
Compare
@@ -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." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deprecated
:-)
There was a problem hiding this comment.
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.
a18d08e
to
0045f8f
Compare
Should I remove the |
0045f8f
to
af3c5fc
Compare
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 |
9ec9d71
to
0e9969a
Compare
Seems ok to me 👍 |
Next release from
Both can happen in this PR. |
Also PagesHelper#add_tracking_code
0e9969a
to
020ed00
Compare
Am I CHANGELOGging correctly? |
@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:
Those are just off the top of my head. Anyone else got any ideas? @withassociates/with-core |
@bensymonds I am totally in. Will make some changes now and see how we go. |
b1338b2
to
a29e682
Compare
@withassociates/with-core Check the new and cool changelog. Thoughts? |
👍 |
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. |
(That's formatted crappily.) |
@bensymonds Good plan. I've updated! nb - To have nested lists in Markdown (Github Flavour), you indent by four spaces. |
9c971b4
to
b47d46d
Compare
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. |
@bensymonds Couldn't see anything in the Guides for it, so we're good to go on this one! |
Cool. |
…racking_code Remove Google Analytics Tracking Code
As per #100