UTM Tracking Code – pass page to page

I am using a script to pass utm parameters from one page to another and it works well with one caveat. When there are no UTMs a ? is placed at the end of the url. [www.example.com/]

This also persists when navigating with not parameters. I am not sure if this affects SEO negatively or not or if is can cause other issues.

I [posted on the site/post that I found the script]), but the author never replied. The code can be found there.

I am not sure if this is the right subreddit, but I am using it in WordPress. I am happy to post in a more relevant space if needed.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer