Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.txt updated disclamers Dec 12, 2018


UTM Capturing and Storing in Cookies

This Javascript code automatically captures UTM paramters of your website visitors.
It captures both first and last interactions and storing the data in the browser cookies for 365 days (see: cookieExpiryDays variable in the code).
Source code: utm-capture.js
Minified version: utm-capture.min.js

First Touch Cookies:

Last Touch Cookies:			

 * Copyright (c), Yanir Calisar (ycalisar at
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this code and associated documentation files, to deal in the code without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the code.
 * The user assumes responsibility for determining appropriate use of the code, for consequences of its use, and for checking functionality against other reliable sources.
 * We suggest citation in publications as with any code developement work. No warrantee is given.
 * Please help improve the code by sending suggestions or new code back.
You can’t perform that action at this time.