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.
var referrer = document.referrer;CONSOLE.log(referrer ); example : goole.com,https://in.search.yahoo.com/
Important Linkhttps://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.