undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Reporting & Analytics
  4. How to turn on persistent urls in WordPress?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

How to turn on persistent urls in WordPress?

Reporting & Analytics
4
12
2.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • SpaMedica
    SpaMedica last edited by Nov 6, 2014, 8:24 PM

    I'm using an appointment form on my website and I have the option to add a referral url to form submissions so that i know which pages the form submission came from.

    I need to be able to distinguish between organically generated form submissions and those that come in via AdWords. If referral url shows the AdWords tracking code i know the form submission came in from AdWords.

    My problem is that when a visitor comes in after clicking an ad and then visits another page on my website that AdWords tracking code disappears from the url. I was told that there was a way to turn on persistent urls in WordPress but I can't figure out how to do it.

    I'm assuming that if i turn persistent urls on the AdWords tracking code will remain on every subsequent url that they visit on my website. Is this true?

    Any help with this will be greatly appreciated.

    1 Reply Last reply Reply Quote 0
    • SpaMedica
      SpaMedica last edited by Nov 10, 2014, 7:59 PM Nov 10, 2014, 7:59 PM

      Thanks for your help everyone. I'm working on the GCLID attribution now.

      1 Reply Last reply Reply Quote 1
      • JasmineA
        JasmineA last edited by Nov 10, 2014, 6:33 PM Nov 10, 2014, 6:33 PM

        Max is definitely right that you need code. The most common attribution method is last non direct. The easiest way to determine PPC v SERPs is to try to grab the GCLID. If you end up growing your business and/or merging this information back to AdWords from the offline conversion tracking option they offer you will need the GCLID.

        1 Reply Last reply Reply Quote 1
        • max.favilli
          max.favilli @smarttill last edited by Nov 10, 2014, 4:04 PM Nov 10, 2014, 4:04 PM

          This is just going to disable yoast canonical url, I don't see how could it help passing query string parameters through the user visit path.

          https://yoast.com/wordpress/plugins/seo/api/

          1 Reply Last reply Reply Quote 0
          • max.favilli
            max.favilli @SpaMedica last edited by Nov 10, 2014, 4:05 PM Nov 10, 2014, 4:02 PM

            You can use either one or another, cookie is persistent through different visits (and last as long as you decide it to last), while the session variable last only for the current user session. Depends on the attribution window you want to use.

            1 Reply Last reply Reply Quote 1
            • SpaMedica
              SpaMedica last edited by Nov 10, 2014, 3:05 PM Nov 10, 2014, 3:05 PM

              Thanks for your help guys. I've tried using your method smarttill but unfortunately it didn't work.

              I will try it your way Max but how do i log where the visitor is coming from with a cookie or a session variable?

              max.favilli 1 Reply Last reply Nov 10, 2014, 4:02 PM Reply Quote 0
              • smarttill
                smarttill last edited by Nov 10, 2014, 12:20 AM Nov 10, 2014, 12:20 AM

                Add SEO Yoast as a plugin tin Wordpress. add this to your functions.php add_filter( 'wpseo_canonical', '__return_false' );

                max.favilli 1 Reply Last reply Nov 10, 2014, 4:04 PM Reply Quote 0
                • max.favilli
                  max.favilli last edited by Nov 7, 2014, 6:31 PM Nov 7, 2014, 6:31 PM

                  You need coding, when the visitor land on the entry page of your site take the utm_source or utm_campaign from the url and log where he is coming from, in a cookie, session variable, etc... Then pass it through on form submission. You can use header, footer or any wordpress piece of code used in every page.

                  You can't keep the query string through the visitor path unless you code too, and it's more complex, and I don't believe you can find a wordpress plugin doing that. For sure is not something you can do with a standard wordpress installation.

                  1 Reply Last reply Reply Quote 1
                  • SpaMedica
                    SpaMedica last edited by Nov 7, 2014, 5:13 PM Nov 7, 2014, 5:13 PM

                    Thanks for your help Max but i don't need to know how many leads came in through the different referral sources. I already know that. What i do need to do is identify each form submission as coming from organic traffic or ppc.

                    Like i've mentioned earlier, the leads coming in through the form need to be logged into a client management software so i need to take the contact information of the form submitter and enter it in the system as coming from organic or ppc. This is done to track ROI.

                    1 Reply Last reply Reply Quote 0
                    • max.favilli
                      max.favilli last edited by Nov 7, 2014, 4:50 PM Nov 7, 2014, 4:50 PM

                      Maybe I am missing something, but form submission is either PPC or organic because the visitor is coming from PPC or Organic. So if you define a goal in analytics for the form submission, triggered either by url match or javascript, you can later check in analytics how many lead were generated through PPC or organic checking the goals per channel/referral/campaign.

                      https://www.google.it/webhp?q=google+analytics+goal+form+submission#q=google+analytics+goal+form+submission

                      Keep in mind you can use utm_source, utm_campaing, etc... In the links originating the leads, if you control them.

                      1 Reply Last reply Reply Quote 1
                      • SpaMedica
                        SpaMedica last edited by Nov 7, 2014, 3:09 PM Nov 7, 2014, 3:09 PM

                        I know analytics. I can see referral traffic and goal paths and all that. What I need is to be able to attribute individual form submissions to either organic or ppc traffic.

                        Each form submission is a lead. Each lead needs to be logged in a client management software so in order to properly attribute a lead to either ppc or organic traffic i need to use persistent urls so that the referral url field in my form reflects the traffic source vie google tracking code in the url.

                        I hope someone here can help shed some light on this. Thanks.

                        1 Reply Last reply Reply Quote 0
                        • max.favilli
                          max.favilli last edited by Nov 7, 2014, 7:56 AM Nov 7, 2014, 7:56 AM

                          I suggest start learning Google Analytics

                          https://support.google.com/analytics/answer/1247839?hl=en

                          https://blog.kissmetrics.com/referral-paths-in-google-analytics/

                          https://support.google.com/analytics/answer/3297892?hl=en

                          1 Reply Last reply Reply Quote -1
                          • 1 / 1
                          1 out of 12
                          • First post
                            1/12
                            Last post

                          Got a burning SEO question?

                          Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                          Start my free trial


                          Browse Questions

                          Explore more categories

                          • Moz Tools

                            Chat with the community about the Moz tools.

                          • SEO Tactics

                            Discuss the SEO process with fellow marketers

                          • Community

                            Discuss industry events, jobs, and news!

                          • Digital Marketing

                            Chat about tactics outside of SEO

                          • Research & Trends

                            Dive into research and trends in the search industry.

                          • Support

                            Connect on product support and feature requests.

                          • See all categories

                          Related Questions

                          • cceebar

                            Redirecting all URLs appended with index.htm or index.html

                            It has come to my attention with one of my clients (WordPress website) that for some time they have within their Landing Page report (of GA - Google Analytics) URLs that should all be pointing to the one page, example: domain.com/about-us, also has a listing in GA as domain.com/about-us/index.htm Is this some kind of indication of a subdirectory issue? Has anyone had experience with this in such wordpress plugins as Yoast SEO, or other SEO plugin? My thoughts here are to simply redirect any of these non-existent files with a redirect in .htaccess - but what I'm using isn't working. I will insert the redirect here - - and any help would be greatly appreciated. RewriteEngine onRewriteCond %{THE_REQUEST} ^./index.html?
                            RewriteRule ^(.)index.html?$ http://www.dupontservicecenter.com/$1 [R=301,L] and this rewrite doesn't work: RewriteEngine on
                            RewriteRule ^(.+).htm$ http://dupontservicecenter.com/$1.php [R,NC] _Cindy

                            Reporting & Analytics | Sep 14, 2016, 2:26 PM | cceebar
                            0
                          • cceebar

                            "index.htm" for all url's in google analytics

                            I don't have this issue with other wordpress websites, only this one website, and I don't know what's causing the issue: Google Analytics is adding an "index.htm" to every single page on the website.  So it is tracking the pages, I see no errors - is it tracking the right page? When I click on the page link in a report, I naturally go to a "404 page not found" since the website address isn't "www.example.com/rewards/index.htm" - but instead the actual address would be:
                            "www.example.com/rewards/". I have navigated to View Settings in GA to insure "default page" is empty. Although adding anything else to this field does not effect the page url in analytics reports either. Could it be htaccess file - or a plugin effecting the htaccess file?_Cindy

                            Reporting & Analytics | Sep 14, 2016, 8:32 PM | cceebar
                            0
                          • DanielleNZ

                            Google SERP showing a URL with UTM_source attached - why? Can I stop it?

                            I just found a Google search results page showing a URL with a UTM source tag attached. Any idea how or why this has happened? How can I stop it as I'm guessing this is overwriting my organic visits with referrals from this site. See attached photo for pic of SERP page. The link is going here: http://employment.govt.nz/er/holidaysandleave/parentalleave/?utm_source=newzealandnow.govt.nz 5vxTDTi.png

                            Reporting & Analytics | Jun 29, 2015, 9:34 AM | DanielleNZ
                            0
                          • marketingmediamanagement

                            How to get multiple pages to appear under main url in search - photo attached

                            How do you get a site to have an organized site map under the main url when it is searched as in the example photo? SIte-map.png

                            Reporting & Analytics | Mar 24, 2015, 7:49 PM | marketingmediamanagement
                            0
                          • CFSSEO

                            Parenthesis in URL?

                            For some reason, we have some URLs on our site with parentheses in them such as somesite.com/used-this(that)What will parenthesis do to the ranking of those pages?

                            Reporting & Analytics | Mar 9, 2015, 8:53 PM | CFSSEO
                            0
                          • 10SL

                            Google Analytics Organic Search Keywords Suddenly Displaying FulL Urls

                            In my Google Analytics, the top keywords for Organic Search are suddenyl displaying full URLs. For example, now the third and fourth keywords are http://www.domain.com/highly-specific-URL. These have all started recently around the same day, July 12th. I've checked back, and we've made no internal changes to the site around that time that could affect this. Any thoughts on this? Thanks! P.S. It might be related to rich snippets, but I cannot tell at this point.

                            Reporting & Analytics | Sep 19, 2013, 1:33 PM | 10SL
                            0
                          • Sarbs

                            How to remove unwanted dynamic parameters from a URL in Google Analytics

                            Hi, Would really appreciate some help with this. I have been experimenting with RegEx to achieve this but as I’ve never used it before am currently failing miserably. We have conversion pages i need to set goals for that are formatted as below: https://www.domain.co.uk//Application_Form/(S(ewhbqp5cki0mppuzukunkqno))/enterCardDetails.aspx I need to remove the (s(xxx)) section from the URL as rather than one pages i currently have thousands of unique URL's. What’s catching me out is that as it’s not a URL parameter I can’t discount and as half way through can’t just do head matches etc to /entercarddetails Help would be much appreciated. Thanks.

                            Reporting & Analytics | Aug 23, 2012, 12:41 PM | Sarbs
                            0
                          • CeCeBar

                            Setting up Google Analytics default URL

                            If someone has set: the default url in Google Analytics to a non-www address (http://mysite.com) then placed the UA tracking script from that GA account within the CMS framework of the website... ... and then set the permanent 301 redirect in the htaccess file to redirect to the www address (http://www.mysite.com). How less accurrate will my GA analytics measurements be considering the default url within GA is non-www and the permanent 301 redirect in htacess is to the www-address? Anyone know how reliable GA reports are until the default url in GA analytics is changed to match what is the redirected url in htaccess file? _Cindy

                            Reporting & Analytics | Jan 19, 2012, 4:17 PM | CeCeBar
                            0

                          Get started with Moz Pro!

                          Unlock the power of advanced SEO tools and data-driven insights.

                          Start my free trial
                          Products
                          • Moz Pro
                          • Moz Local
                          • Moz API
                          • Moz Data
                          • STAT
                          • Product Updates
                          Moz Solutions
                          • SMB Solutions
                          • Agency Solutions
                          • Enterprise Solutions
                          Free SEO Tools
                          • Domain Authority Checker
                          • Link Explorer
                          • Keyword Explorer
                          • Competitive Research
                          • Brand Authority Checker
                          • Local Citation Checker
                          • MozBar Extension
                          • MozCast
                          Resources
                          • Blog
                          • SEO Learning Center
                          • Help Hub
                          • Beginner's Guide to SEO
                          • How-to Guides
                          • Moz Academy
                          • API Docs
                          About Moz
                          • About
                          • Team
                          • Careers
                          • Contact
                          Why Moz
                          • Case Studies
                          • Testimonials
                          Get Involved
                          • Become an Affiliate
                          • MozCon
                          • Webinars
                          • Practical Marketer Series
                          • MozPod
                          Connect with us

                          Contact the Help team

                          Join our newsletter
                          Moz logo
                          © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                          • Accessibility
                          • Terms of Use
                          • Privacy

                          Looks like your connection to Moz was lost, please wait while we try to reconnect.