I was implementing the UTM google tracks the referral source of the user. I found one code on community regarding this by but was describing few lacks in that code. Can any one you help me with the best code to do that or if there is any correction to be done there.
Are you trying to parse the UTM cookies? Unfortunately Google Analytics Universal no longer stores the referral or campaign info in a cookie, it is saved inside of GA itself.