1.0.2 • Published 7 years ago

utm_codes v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

UTM Codes

Simple JS library that appends utm codes received via GET params to existing forms

Requirements

Build

  • npm run compress
  • upload the last dist/utm_codes.min.js file to your favorite CDN provider.

Installation

Problem: send utm codes in a existent form on my website.

  • add the utm-tracker-required class to all the forms that you want to update with the utm code hidden fields.
  • add the utm_codes.min.js to your website.
  • if you want to wrap the params inside an object, example contact, you have to add <form class='utm-tracker-requried' data-utm-tracker-param-name='contact'>