
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Adds a helper to create the google analytics script in rails.
I did this gem to:
Put this line in your Gemfile:
gem 'analytics-rails'
Then bundle:
$ bundle
Include tag must be added before any other tag in order to work and only will be shown in production.
In your layout add a line like this in your head:
<%= google_analytics_include_tag 'UA-000000-01' %>
You can add metrics if you want:
<%= google_analytics_include_tag 'UA-000000-01', category: 'products' %>
To send events add a line like this with the category and action:
<%= google_analytics_event_tag 'Video', 'play' %>
You can add label, value and other options too if you want:
<%= google_analytics_event_tag 'Video', 'play', 'demo.mp4', 42, category: 'product' %>
Any issue, pull request, comment of any kind is more than welcome!
I will mainly ensure compatibility to Rails, AWS, PostgreSQL, Redis, Elasticsearch and FreeBSD.
This gem is maintained and funded by mmontossi.
It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.
FAQs
Unknown package
We found that analytics-rails demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.