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

README.txt

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:
__ft_referrer			
__ft_utm_campaign			
__ft_utm_content			
__ft_utm_medium			
__ft_utm_source			
__ft_utm_term

Last Touch Cookies:			
__lt_referrer			
__lt_utm_campaign			
__lt_utm_content			
__lt_utm_medium			
__lt_utm_source			
__lt_utm_term


Disclaimer:
/*
 * Copyright (c), Yanir Calisar (ycalisar at overstack.io)
 *
 * 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.