utm_codes

1.0.2 • Public • Published

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'>

Readme

Keywords

none

Package Sidebar

Install

npm i utm_codes

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • pgonzaga