UTM Capturing and Storing in Cookies

  Attribution

This Javascript code automatically captures UTM parameters 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).

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

 

Source Code

Minified

Full

LEAVE A COMMENT