Skip to content

Instantly share code, notes, and snippets.

View tbcooney's full-sized avatar

Taylor Cooney tbcooney

View GitHub Profile
taylorcooney@Taylors-MacBook-Air:~/Code/openunit$ ⚡
bundle exec rails c
Running via Spring preloader in process 90646
Loading development environment (Rails 6.0.2.2)
irb(main):001:0> ActiveRecord::Base.connection.select_value("SEL
ECT users.unconfirmed_email FROM users")
/Users/taylorcooney/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activemodel-6.0.2.2/lib/active_model/type/integer.rb:13: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/taylorcooney/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activemodel-6.0.2.2/lib/active_model/type/value.rb:8: warning: The called method `initialize' is defined here
/Users/taylorcooney/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/connection_adapters/postgresql/oid/specialized_string.rb:12: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
@tbcooney
tbcooney / migrate_from_g+.md
Last active January 29, 2019 21:13
Migrate From G+

Things We Use Google+ To Do

Case 1

  • When a user creates an account on Universe, they can sign up with Google (via G+ API)
    • user clicks Sign Up With Google, multiverse calls authenticateProvider which creates an OpenID Connect request from a deprecated scope plus/v1/people/me/openIdConnect
    • web sets params via auth_requests_controller.rb using a deprecated scope auth/plus.login
    • user data is fetched from deprecated scope plus/v1/people/me/openIdConnect to populate user info (email, first_name, photo, uid etc.)

Solution

  • Change the scope from deprecated G+ plus.login endpoint to profile
  • Set the user basic profile information with new method

Case 2

@tbcooney
tbcooney / utm-tracking.md
Last active January 24, 2019 21:45
UTM Tracking on Universe

UTM Tracking on Universe

The following overview provides a quick look into data that is captured when a user clicks on a Marketing ad.

Ad Platforms

Events are triggered on a "per channel" basis depending on certain user actions, such as creating an account or purchasing a ticket. Below is an overview of the expected events that should fire on a "per channel" basis. The use cases listed below will highlight the actual behaviour and the discrepency between expected and actual.

Bing

  • CompleteRegistration is fired when a visitor creates an account from Sign Up in the top navigation or Create Event on a landing page
  • Lead is fired when a visitor clicks Sign Up in the top navigation or a User clicks Create Event from a landing page/top navigation

Facebook