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
-
Can I redo my submitted sitemap to Google?
We are a electronic hardware manufacture with a fairly large catalog of products. I dynamically built our site and we have over 705,000 unique products that we can offer. With our php framework I was able to create sitemaps that hold every product unique url. After doing all of that I submitted our data to Google. Then waited with a cocktail encouraged that we'd grow up the ranks of Google organically. Well, that didn't happen. Besides several other problems (lack of overall unique content, appearance of duplicate content, no meta description, no unique page titles, poor use of heading tags and no rel canonical tags) how can I get a "do-over" with Google and my submitted sitemaps? Can they be re-submitted? Can they even be deleted?
Reporting & Analytics | | jandk40140 -
Google Analytics Stopped Tracking Visits - NEED HELP!
Hi Moz Community, I have about 10 sites, static HTML sites and WordPress sites, which ALL stopped tracking Google Analytics on August 2nd. They go to a flat-line! Dead! No data! Has anyone else experienced this either currently or before? I have confirmed all code is correct as it's been tracking these sites for years. One site gets 5,000+ visits a month and they are sitting at only 1,500 now and will be a fun conversation to have with the client. If all code is correct, what should I do? How do I overcome this without having to re-create another account/tracking ID? Never dealt with something like this before and there is not much on the web or in other forums. Would appreciate any help or advice or tips! - Patrick
Reporting & Analytics | | WhiteboardCreations0 -
Can you track two Google Analytics Accounts on one site?
If you have a site that had an old analytics account and then implemented a new one is it possible to run tracking code that records to both accounts without causing your site or data issues? We are doing this so we don't loose data at any point - ideally it wouldn't have been split between the two but making one redundant isn't an option. Ideally we would have merged the data from both accounts and had one - however the research we have done points to this not being a possibility - unless one of you guys knows different? It would be great if anyone has experience on any this.. Thanks
Reporting & Analytics | | ChrisAllbones0 -
Goals tracking across subdomains
Hi all, I'm having some trouble with regards to setting up goals tracking in Analytics across subdomains and was hoping that someone could help me out. Okay I work for an insurance company and we use a Quote & Buy portal for our insurance policies. Our website - www.example.com sends the traffic to quotes.example.com. Both of these sites have the same Google Analytics tracking ID. The quotes.example.com has no duplicate URLs which appear one our website, therefore I only set up the account to only include the hostname for each. Does this sound correct? The goals issue is if I now set up a goal in the quotes.example.com account, someone comes to www.example.com via Google and then clicks through to our journey and completes, will this count as a referral from www.example.com or as a goal from Organic? I'm totally stuck so any help would be appreciated. Thanks Ben
Reporting & Analytics | | Markerstudy0 -
Track subdomains in the same analytics property/view
Hello to everyone, this is my first question (kind of a newbie here :-D). I have a website that spans over 4 subdomains + the main domain and I'd like to have a place where I can see the total page views, events and goal completions. Main domain is langhe.net, and subdomains are eventi.langhe.net, servizi.langhe.net, shop.langhe.net, about.langhe.net. The website is based on wordpress and I'm using google analytics for wordpress by yoast as analytics plugin. The configuration of the plugin is as follows: all the website have the same UA-XXXXXXXX code The Subdomain Traking field (setDomainName) is filled with .langhe.net Cross-Domain tracking is enabled Cross-Domain Primary Domain (setDomainName) is langhe.net Cross-Domain Tracking, Other Domains field is filled with: about.langhe.net, eventi.langhe.net, servizi.langhe.net, shop.langhe.net. In the GA property I've created an Advanced Custom Filter configured this way: Field A -> Extract A = hostname (.*) Field B -> Extract B = request URI (.*) Output To -> Constructor = request URI $A1$B1 Field A Required: yes Field B Required: No Override Output Field: yes Case Sensitive: no I was wondering it this is the best way of doing it, or if there are other "best practice" ways to obtain what I'm looking for (for example with this configuration it's become quite difficult to separate the traffic sources for each website). Thank you in advance 🙂
Reporting & Analytics | | Enrico_Cassinelli
Cheers!0 -
Google traffic plummeted on Sunday - what can I do?
On Sunday, my google traffic plummeted. I was getting 320 hits a day from Google on my best days - my site is just about to turn 3 months old so I was thrilled with that. On Sunday it was 110 and I think it is getting worse. Edit: Yep, yesterday was 65. Google Webmasters shows the drop today. One day, my impressions were 5,500 and the next just 1,000. Yikes. My traffic is so depressing now after so much hard work. Is this Google Panda? What can I do? I have no idea why this happened. I am getting several quality backlinks a week, sometimes a day.
Reporting & Analytics | | 2bloggers0 -
Magento and Analytics - Unique purchases tracking
Hi guys, My ecommerce site is on Magento and in order to integrate it with Google Analytics, I enter my GA account number on the Account Number field in the backend. What surprises me is that some purchases are not tracked at all. So for the month of may GA shows X unique purchases when Magento shows x+5. Can this occur because the customer leaves the site before the confirmation page is shown? Thanks. Regards
Reporting & Analytics | | footd0 -
How to Setup New Domain in Webmaster Tools? Can Anybody HELP?
I, I have a new domain, and a new account is now created in webmatser tools. Is there anythings I should know about using or setting up webmaster tools? For example, the geographic target, I'm in Canada our web site, a local Pilates studio, is a commercial web site to provides informations about our services. Should I select Canada? One thing about this, I have another domain, http://www.furnacefilterscanada.com/ and in the setiing, I have select geographic target to: Canada. When using google.ca result are better then when using google.com! I think must Canadian user are using google.com Does this ''Geographic Target'' setting has anythings to do with search results in Goolge.ca versus Google.com? Thank you for your help, BigBlaze
Reporting & Analytics | | BigBlaze2050