utm_tracker 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1fea7a1eba819ae12c4579d1eebe042db4a33456f1019871e335ad5f2d03b67d
4
- data.tar.gz: 20e46a89566567ba6472f2fcd3cdb1b1a1f0bc5f0142641448d7d03b272ee6e1
3
+ metadata.gz: b8978d1dec9d65938ffbaba93b4ffb2dbee13cf338806deba734ec735a4ebf50
4
+ data.tar.gz: 1134f3fae8e298e142cfb3074490a8d0622b19f6c7be5fc240cea2c6788f3861
5
5
  SHA512:
6
- metadata.gz: 49aa829ce2aa8e450d8bcab536ff3af2e1ca9a0f9702f885ebe2e5db2c39c446d0896a177c61944ce7558f928ce233087d98a5617e19d743f4d5b4bddb56c70d
7
- data.tar.gz: 6fa3c66ab5566faa13cf9fda8fb38c150357cdd2773809c84add4902502ffb3f668afae7017e496f281116e3c3081162ae92a765587d41860711db9de7e698a1
6
+ metadata.gz: 5c3e64e33a77058c95bf68bffc68b86ac5c9da61f4a17f189ed6e69cb01a167c2e1c0a2a81acc99d005b038556a63d4e83f303d9202dfc9ced04ba58da9a44e5
7
+ data.tar.gz: e5af0c86479ff41ad05f9145e83c2983f5abaafe8555ad31e22faf381602df959dd7a841985d3d8ebbf216cbf01a649e41452146261d98028523c860545fd6bb
data/README.md CHANGED
@@ -23,7 +23,7 @@ And then execute:
23
23
 
24
24
  1. You need to generate Rails migration and add utm_data into your User model for UTM-tags:
25
25
 
26
- $ rails g migration add_utm_data_to_executors utm_data:jsonb
26
+ $ rails g migration add_utm_data_to_users utm_data:jsonb
27
27
 
28
28
  and add not null and default modificators into rails migrations:
29
29
  ```ruby
@@ -38,7 +38,7 @@ $ rails db:migrate
38
38
 
39
39
  2. Prepare link into user registration controller:
40
40
 
41
- $ https://example.com?utm[source]=google&utm[medium]=cpc&utm[campaign]=testcampaign&utm[content]={adgroupid}&utm[term]={keyword}
41
+ $ https://example.com?utm_data[source]=google&utm_data[medium]=cpc&utm_data[campaign]=testcampaign&utm[content]={adgroupid}&utm[term]={keyword}
42
42
 
43
43
  3. Add into ApplicationController next helper for save utm_tags into current_user session:
44
44
  ```ruby
@@ -56,7 +56,7 @@ Add this callback where you plan to receive advertising traffic.
56
56
 
57
57
  5. Into user registration controller add UtmTracker client after save user and put user object and session[:utm]:
58
58
  ```ruby
59
- @utm = UtmTracker::Client.new(object: @user, utm: session[:utm])
59
+ @utm = UtmTracker::Client.new(@user, session[:utm])
60
60
  @utm.call
61
61
  ```
62
62
 
@@ -5,7 +5,7 @@ module UtmTracker
5
5
  protected
6
6
 
7
7
  def get_utm_data
8
- session[:utm_data] ||= params[:utm]
8
+ session[:utm_data] ||= params[:utm_data]
9
9
  end
10
10
  end
11
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UtmTracker
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utm_tracker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Levashov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-11 00:00:00.000000000 Z
11
+ date: 2022-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -64,7 +64,7 @@ metadata:
64
64
  homepage_uri: https://github.com/alexlev1/utm_tracker
65
65
  source_code_uri: https://github.com/alexlev1/utm_tracker
66
66
  changelog_uri: https://github.com/alexlev1/utm_tracker
67
- post_install_message:
67
+ post_install_message:
68
68
  rdoc_options: []
69
69
  require_paths:
70
70
  - lib
@@ -79,8 +79,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.1.4
83
- signing_key:
82
+ rubygems_version: 3.3.7
83
+ signing_key:
84
84
  specification_version: 4
85
85
  summary: Gem for UTM tags tracking
86
86
  test_files: []