How can I make sure that we are only tracking for single URLs?
-
Is there a way to track in Google analytics where part of the URL is excluded. For example, we need to track when customers complete an application form, however whenever a new form is completed a new URL is created. This makes it difficult to track pages in GA as there are so many URLs.
-
If it's only the Goal tracking you need: if your final url is changing each time but still has some elements that are always the same you could use regular expressions to match the part of the url that stays the same. Alternative would be to launch an event when the user action is completed and set goal tracking on the occurence of that event.
If you want to clean your reports in general - you can send a "fake" url instead of the real one to the reporting.
Example suppose you have a page like mydomain.com/thankyou.html?param1=xyz¶m2=kjkj¶m3=flkf and you only want to see mydomain.com/thankyou.html you could overrule analytics using this type of code on that page:
ga('create', 'UA-xxxxxx','auto');
ga('send', 'pageview', {'page': '/thankyou.html',});=> in your reporting you will now only see /thankyou.hmtl & not the "ugly" version. Disadvantage is that if you click to see the page in Analytics you won't see the actual page anymore. (most often this is used for single page applications - but it can be used in this context as well - check https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications for more info on implementation)
Another alternative would be to strip out parameters by default - by excluding them in the Analytics profile - a how to can be found here: http://blog.crazyegg.com/2013/03/29/remove-url-parameters-from-google-analytics-reports/
Hope this helps,
Dirk
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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.
Related Questions
-
Making the change to GA4?
We have a few clients we routinely do SEO work for, and we have campaigns set up for them here. However, with the change to GA4, how is that going to impact those campaigns? How do we make that switch? Where do we go for that? And how do we set up future campaigns for GA4? Right now it looks like the only option is still for UA, but the switch happens in less than three months, which is a little unnerving.
Reporting & Analytics | | buckii_modernoffice0 -
Tracking a Redirect
Recently a client of mine had a new site developed and had changed their domain, so the old URL is now redirecting to the new URL. They want to be able to track referral traffic in the analytics so we can decipher how much direct traffic is coming in from people typing in the old URL. Is this possible and if so, can I have a guide in doing so? Thanks!
Reporting & Analytics | | DigMS0 -
Why google stubbornly keeps indexing my http urls instead of the https ones?
I moved everything to https in November, but there are plenty of pages which are still indexed by google as http instead of https, and I am wondering why. Example: http://www.gomme-auto.it/pneumatici/barum correctly redirect permanently to https://www.gomme-auto.it/pneumatici/barum Nevertheless if you search for pneumatici barum: https://www.google.it/search?q=pneumatici+barum&oq=pneumatici+barum The third organic result listed is still http. Since we moved to https google crawler visited that page tens of time, last one two days ago. But doesn't seems to care to update the protocol in google index. Anyone knows why? My concern is when I use API like semrush and ahrefs I have to do it twice to try both http and https, for a total of around 65k urls I waste a lot of my quota.
Reporting & Analytics | | max.favilli0 -
Universal Analytics Ecommerce Tracking in Magento
We have a problem similar to this: http://stackoverflow.com/questions/22229312/universal-analytics-could-not-track-transaction-in-magento On a client's website. I need an absolute knock-out EXPERT at solving this to give us a quote on doing something like this. It's very urgent but it is paid. Basically the site used the old tracking code, worked, then client said they wanted new data so we upgraded to Universal. Now everything works but Ecommerce tracking. Desperately need help! Thanks all!
Reporting & Analytics | | MattAntonino0 -
GA E-Commerce can't tell the real order source?
I put the e-commerce tracking code on the transaction platform (Regnow) finishing page, but all the orders displayed in GA can't tell the real order source. Instead, most of orders are from direct(none), and referrals from my site. So this is obviously wrong. I need the accurate order source such as google organic or google ppc, then I can find which keyword brings me orders. After some searches, I guess the reason is cookie domain. My GA is set as single domain tracking. And I didn't put any cookie domain code on the Regnow's transaction finishing page. The codes I put on the page are: So, suppose my site is "www.example.com". How to make sure I can track the real order source on the Regnow's transaction finishing page? Should I set my GA to track multi top-level domains, and put _gaq.push(['_setDomainName', '']); code on the tracking page? How to set the domain name, "none" or "example.com"?? Thanks in advance.
Reporting & Analytics | | JonnyGreenwood0 -
Can you filter referring keywords in Google Analytics by language?
Hi All! So yes, I know that you can see/filter the language that the computer or browser was set to (en-us, ru, fr, etc.), but if you look at the keywords used by visitors falling under "fr", some are in English. Is there any way to get, say, just the keywords in Russian - regardless of what the visitor's browser language was set to? Thanks! Aviva
Reporting & Analytics | | debi_zyx0 -
OSE shows URLs redirecting to our custom created error page, is this a problem?.
When I check the link metrics for my product pages in OSE, it shows a message saying that the page redirects to our custom error page. This page was recently created to display when there is an error with the website. Do I need to be concerned that OSE is seeing all product pages as redirecting to this error page? Will it affect page authority etc,? I have attached a screen shot of the message that OSE displays for reference. YWbpM.jpg
Reporting & Analytics | | pugh0 -
Tracking SEO tests
Trying to get some best practices on testing SEO changes. We are going to make a bunch of changes on subsets of pages. Say testing about 5 different on-page changes. Originally we were going to submit separate Sitemaps to GWT and see if our test sets get indexed, how quickly, etc. But we noticed that GWT says some pages in our Sitemaps aren't indexed even though we know they are (what gives?). So we thought, for each test, let's put a unique code on the page so we can see how many get indexed by Google. But that doesn't solve the issue: how many people clicked on our test pages. So we are thinking of putting a tracking pixel on the test pages, specific for each test. But then I am thinking, why not just create a separate Google Analytics profile and place that code on the test pages (set up goals to track visits per test since we aren't going to change the actual URLs). and on and on This is where you come in. What kind of tracking do you implement when you set up tests? Advice appreciated! E
Reporting & Analytics | | ErinTM0