How to setup Google Analytic goals that go to different urls?
-
I would like to setup my form's conversion rate as a goal in my Google Analytics account. The goal is complete when someone enters their information and hits submit. Logically, the "Thank you page" would be the destination url for the goal. My problem is that the thank you page is outside of the primary domain, for example, my site is:
SiteExampl.com but the Thank you URL is thankyouurl.com
Is it possible to setup a goal like this? If so how.
Thanks in advance!
-
Virtual pageviews is in fact the way to go with this. With a virtual pageview setup, your form tag would look something like this:
<form action="x.something" onsubmit="_gaq.push(['_trackPageview', '/submitted-form/']);">
That way, when the form is submitted, it will track a pageview of '/submitted-form/'. You can then create your goal looking for pageviews of that URL.
The main potential obstacle with this approach is form validation. If your form uses JavaScript for validation, then you need to integrate the virtual pageview code into the validation code, which can get complicated. If your form uses server side validation, this method also isn't great - because if the user submits the form and it returns an error, the virtual pageview will still be triggered, incorrectly converting the goal.
</form>
-
I've read the "Virtual Pageviews" but am still having some trouble understanding. I have the code form embedded on the site, so where would I add the Async Snippet? Thanks
-
If I don't have access to the thank you url to add the form code what is the best solution?
-
Hi Christina,
There are multiple options to go with in this case, the first would be to also add the tracking code to the thank your URL page, then you could link to that page with some extra data to make sure cross domain tracking works. This would probably be the easiest solution.
Besides that if you're lucky the form only redirects to the new URL is successful, what you then could do is before you redirect fire an extra virtual pageview to track a successful request and check it from within your domain. See here for more information on 'virtual' pageviews.
Let me know if you have any more questions on this.
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
-
Moving our Google Analytics Account to a New Account
My company is building a new website with a new web development company. Our old website development company hosted our Google Analytics account on their account (this was done 13+ years ago, probably a good idea then, but we definitely would've done it differently knowing what we know now). I've been researching how we could move our GA property to a new account owned by us, but according to this article: "There are some circumstances in which you cannot move a property:
Reporting & Analytics | | GreatLegalMarketing
-> The source account and the destination account are not in the same Google Marketing Platform organization. Contact an organization admin to make sure both accounts belong to the same organization." In our case, the source account and the destination account do not belong to the same organization. I may just have to accept that we are losing 13+ years of historical data about our website, and if that's the case, oh well. But, if anyone has an idea how we can export/import our GA data to our new analytics account, I would greatly appreciate it.0 -
Google Analytics goals by source report?
Hello everybody. Is there way in Google analytics to create report on what goals have been completed per each source? Example: Lets say I have 3 goals: Subscription, Purchase, Quote. How can I get report, saying something like this: google / organic - Subscription - 5 conversions
Reporting & Analytics | | DmitriiK
Purchase - 3 conversions
Quote - 10 conversions and so on. P.S. Basically, I want the reverse of standard Google Analytics goal completions report, where you can click on goal and see which sources/mediums completions came from. I'd like to do the opposite - "click" on source/medium and see which goals have been completed. Thanks0 -
Question re Google Analytics and its more accurate alternatives
Hi guys There are two main issues we have with Google Analytics, and I'd really appreciate if anyone has the time to give an answer to that. We completely miss organic traffic data before 7/22/2013 although our account is active since 2005. Any thoughts on that? Is it the not provided move that swiped out all data or something else? Even for the data we do have there is lots of inaccuracies, and we are thinking on switching or at least adding a new analytics software, any recommendations? (FYI, it turns out we do not keep access logs on the server for more than 2 months, and we might fix that for future references, but now we are looking for external solution). Any help will be much appreciated Thanks Lily
Reporting & Analytics | | wspwsp0 -
Google analytic conversion code in a single wordpress page
Hello How can I add/place the Google analytic conversion code in a single wordpress page? Example: http://www.newsmilecostarica.com/thank-you/ Thank you so much Andy
Reporting & Analytics | | newsmile0 -
Google Analytics data - Canonical problems?
Hi everyone, We're trying to determine why Google Analytics is showing multiple versions of the same page as having "landing page traffic". For instance, these 2 pages are both shown as landing pages in GA: www.oursite.com/product_page
Reporting & Analytics | | darkgreenguy
www.oursite.com/product_page/ This occurs many times in Google analytics. Also, there are instances such as these: www.oursite.com/index.php/custom_product_url www.oursite.com/custom_product_url I can't find anything in Google Webmaster tools that would indicate a problem. However, this GA data is making me think there are duplicate content issues on the site... Thanks in advance for any help...0 -
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 | | Sarbs0 -
Impressions in Google Analytics
I am trying to compare SERP impressions in Google Analtyics between two different time periods. I want to compare the last two months, with the previous two months. Now this works fine when I go to Traffic Sources > SEO > Queries. Our analytics has been set up since early last year, so I cannot understand why, for a couple of weeks at the start of the previous two months, it is showing that I have less than 10 impressions per day, then in one day, it jumps to 22,000 impressions, and starts to show 'real' information after that... Very frustrating when I am trying to show how effective my work has been. Can anyone shed any light on this?
Reporting & Analytics | | MirandaP0