Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dmathieu-static_ga

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmathieu-static_ga

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

h1. Static GA

Sometimes with static html websites or with inappropriately developped websites (but the client doesn't wish to redevelop it appropriately), it's quite a pain in the ass to add the Google Analytics tag to hundreds of files. That's what Static GA tries to remove by parsing every file, looking if it already has the Google Analytics tag yet or not.

And if it doesn't have it, adding it.

h2. How it works

Download the application (it'll soon be a gem using rake). And launch analytics.rb with two parameters :

  • The first one is the directory that you wish to recursively parse
  • The second one is your Google Analytics code. For example : UA-6352751-33

It'll launch the script and display to you the path of every updated file.

h2. Requirements

The only required package is rake.

h2. Example

rake static_ga

The path to the project and the GA code will be asked to you.

h2. TODO

  • Make it a gem

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc