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

adkit

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adkit

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

adkit

Easy marketing calculations

Conversion Rate

total = 1_000
conversions = 15

Adkit.conversion_rate(total, conversions) # => 1.5

# or if you like acronyms
Adkit.cvr(total, conversions) # => 1.5

Lift

total = 1_000
conversions = 30

control = 100
control_conversions = 1

Adkit.lift(total, conversions, control, control_conversions) # => 200.0

Cost Per Action

cost = 9_876
conversions = 1_000

Adkit.cost_per_action(cost, conversions) # => 10.0

# or

Adkit.cpa(cost, conversions) # => 10.0

Incremental Cost Per Action

total = 5_000
cost = 100
conversions = 1_000
control = 100
control_conversions = 5

Adkit.incremental_cpa(total, cost, conversions, control, control_conversions) # => 0.1333333

# or

Adkit.cpia(total, cost, conversions, control, control_conversions) # => 0.1333333

# or

Adkit.icpa(total, cost, conversions, control, control_conversions) # => 0.1333333

Average Order Value

revenue = 123_456
conversions = 345

Adkit.average_order_value(revenue, conversions) # => 357.8434782608696

# or

Adkit.aov(revenue, conversions) # => 357.8434782608696

Return on Ad Spend

revenue = 12_345
cost = 987

Adkit.return_on_ad_spend(revenue, cost) # =>  1250.759878419453

# or
Adkit.roas(revenue, cost)

FAQs

Package last updated on 29 Jul 2020

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