Skip to content

rootstrap/utm_codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published