how to track source/medium use javascript ?



This time, I will be applying adapted calligraphy that is based on the UTMZ Cookie Replicator (created by the aggregation of LunaMetrics). This replicator is an alarming band-aid that imitates the cookie acclimated by the Classic Google Analytics. That cookie independent the cartage accretion abstracts of the accepted session, therefore, you could use its amount as a tag-firing action or canyon that advice to added tools.

However, this UTM cookie went missing afterward the Universal Analytics was introduced. Luckily, acceptable bodies at LunaMetrics aggregate their own band-aid that imitates the cookie and lets us use it in GTM.

Use javascript to track  source/medium

var referrer = document.referrer; CONSOLE.log(referrer ); example : goole.com,https://in.search.yahoo.com/

Important Link https://www.analyticsmania.com/post/track-the-initial-traffic-source-of-the-visitor-gtm/ Important Things if we have to use iframe form then there are so many PROBLEM TO track and add value in the text field. so use this parent code if use iframe document.

No comments