spree_google_analytics 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f574ee77e62895d03183585199dc5f72802b17f5660343f75fedb32396d334ac
4
- data.tar.gz: 1a02a1876b8b2b9cac0ab49b1b3b4734a9351eea64375cd4594913978efbea08
3
+ metadata.gz: 29044f0ab72fb59dda1a56fefc5df9d0863c2608b8313baf5fd93391e9945fae
4
+ data.tar.gz: be2c35e445fbd33d5565f9a0e750e49fe27ca3f15b2873c7a0e40d5f245a1da7
5
5
  SHA512:
6
- metadata.gz: b1c7831cb5e64a64cf09c3b2b225994308ff47911e02362d69e0f68a18e091c3575f391c1f08e9afb9bfba39499fb142bac68e585f2dee95f72f0e18bcaad50b
7
- data.tar.gz: 4ee2bb04fef77fa6b25f8d1236075890f30b563b141bfc5d8e940690dad099d0f6e15eb6f0b3c299fee464d92d5f0b3c3ce76e04de8be56f896363aebee97406
6
+ metadata.gz: 8c4bf1a964f8e7fb03893d5cb561a06a866b9c3ada6cd9db37edd87ef9d6988d02abcc46a52dd87e1790c150e6fbbf9f2f5f8d22217845de31fb632282fc540f
7
+ data.tar.gz: 7a7c0bfa516510e06e24a88fafc6c2ba780a75d66445a2f78461d1c42bbfc10152952524b903a1ee9085d1dc38575a39bcb207d6517b0a2c05777079c1a642ba
data/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vendo Connect Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
+ > [!NOTE]
2
+ > For users using our default headless [storefront](https://github.com/spree/storefront), you don't need to install this extension, follow [Storefront README](https://github.com/spree/storefront) to setup GA/GTM via ENV variables.
3
+
4
+
1
5
  # Google Analytics 4 integration for Spree Commerce
2
6
 
3
- This is a Google Analytics 4 extension for [Spree Commerce](https://spreecommerce.org) - the [open-source eCommerce platform](https://spreecommerce.org) for [Rails](https://spreecommerce.org/category/ruby-on-rails/).
7
+ This is a Google Analytics 4 extension for [Spree Rails Storefront](https://github.com/spree/spree-rails-storefront).
4
8
 
5
9
  This [Google Analytics 4 integration for Spree Commerce](https://spreecommerce.org/docs/integrations/analytics/google-analytics) allows you to track user behavior, sales performance, and marketing effectiveness across your store.
6
10
 
@@ -87,7 +91,7 @@ If you'd like to contribute, please take a look at the
87
91
  [instructions](CONTRIBUTING.md) for installing dependencies and crafting a good
88
92
  pull request.
89
93
 
90
- Copyright (c) 2025 [name of extension creator], released under the New BSD License
94
+ Copyright (c) 2025 Vendo Connect Inc., Vendo Sp. z o.o., released under the MIT License
91
95
 
92
96
  ## Join the Community
93
97
 
@@ -99,4 +103,3 @@ Copyright (c) 2025 [name of extension creator], released under the New BSD Licen
99
103
  * migrations and upgrades,
100
104
  * delivering your Spree application,
101
105
  * optimizing your Spree stack.
102
-
data/Rakefile CHANGED
@@ -17,5 +17,9 @@ end
17
17
  desc 'Generates a dummy app for testing'
18
18
  task :test_app do
19
19
  ENV['LIB_NAME'] = 'spree_google_analytics'
20
- Rake::Task['extension:test_app'].invoke
20
+ Rake::Task['extension:test_app'].execute(
21
+ install_storefront: true,
22
+ install_admin: true
23
+ )
24
+ system({ 'BUNDLE_GEMFILE' => File.expand_path('Gemfile', __dir__) }, 'bundle exec rails g spree_posts:install')
21
25
  end
@@ -8,12 +8,12 @@
8
8
 
9
9
  <%= form.spree_collection_select "preferred_client", [['Google Analytics 4', 'ga4'], ['Google Tag Manager', 'gtm']], :last, :first, { selected: @integration.preferred_client, label: Spree.t('admin.integrations.google_analytics.client'), help: Spree.t('admin.integrations.google_analytics.client_help') }, { data: { action: 'change->reveal#toggle' } } %>
10
10
 
11
- <div data-reveal-target="item">
11
+ <div class="<%= class_names(hidden: @integration.preferred_client == 'gtm') %>" data-reveal-target="item">
12
12
  <%= preference_field(@integration, form, 'measurement_id', i18n_scope: 'admin.integrations.google_analytics') %>
13
13
  <%= external_link_to 'Where to find my Measurement ID?', 'https://support.google.com/analytics/answer/12270356' %>
14
14
  </div>
15
15
 
16
- <div class="hidden" data-reveal-target="item">
16
+ <div class="<%= class_names(hidden: @integration.preferred_client == 'ga4') %>" data-reveal-target="item">
17
17
  <%= preference_field(@integration, form, 'google_tag_manager_id', i18n_scope: 'admin.integrations.google_analytics') %>
18
18
  <%= external_link_to 'Where to find my Google Tag Manager ID?', 'https://support.google.com/tagmanager/answer/6107028' %>
19
19
  </div>
@@ -1,5 +1,5 @@
1
1
  module SpreeGoogleAnalytics
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
 
4
4
  def gem_version
5
5
  Gem::Version.new(VERSION)
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_google_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
- - Vendo Connect Inc.
7
+ - Vendo Connect Inc., Vendo Sp. z o.o.
8
8
  bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
@@ -70,7 +70,7 @@ executables: []
70
70
  extensions: []
71
71
  extra_rdoc_files: []
72
72
  files:
73
- - LICENSE.md
73
+ - LICENSE
74
74
  - README.md
75
75
  - Rakefile
76
76
  - app/.gitkeep
@@ -114,8 +114,12 @@ files:
114
114
  - vendor/stylesheets/.keep
115
115
  homepage: https://github.com/spree/spree_google_analytics
116
116
  licenses:
117
- - AGPL-3.0-or-later
118
- metadata: {}
117
+ - MIT
118
+ metadata:
119
+ bug_tracker_uri: https://github.com/spree/spree_google_analytics/issues
120
+ changelog_uri: https://github.com/spree/spree_google_analytics/releases/tag/v1.1.2
121
+ documentation_uri: https://docs.spreecommerce.org/
122
+ source_code_uri: https://github.com/spree/spree_google_analytics/tree/v1.1.2
119
123
  rdoc_options: []
120
124
  require_paths:
121
125
  - lib
data/LICENSE.md DELETED
@@ -1,14 +0,0 @@
1
- # LICENSE
2
-
3
- Copyright (c) 2025 Vendo Connect Inc.
4
- All rights reserved.
5
-
6
- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
7
-
8
- This program is distributed in the hope that it will be useful,
9
- but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- GNU Affero General Public License for more details.
12
-
13
- You should have received a copy of the GNU Affero General Public License
14
- along with this program. If not, see [https://www.gnu.org/licenses/](https://www.gnu.org/licenses/).