If the user comes with the utm values to the landing page
In the Landing.php file I can Get the UTM values. and Google analytics will show campaign results and clicks. What if the user navigate to other page -> http://example.com/contact.php. In the contact.php there is no UTM values in the URL how would Google analytics track that visit from which UTM Campaign? . If I am using PHP api to send utm values to third party tools means How would I fetch UTMs in the contact.php file? I don't have clear idea about this Please help.
Thank you
Your best option is to write a small piece of javascript to store the UTM values in a cookie and then populate your forms with the stored values.
If you don't want to write one yourself, this blog post helps you do exactly what you need and also provides a javascript that you can add to your website.
Disclosure: I'm the author of the blog post.