We're hiring

We love digital - Call
03332 207 677
and say hello - Mon - Fri, 9am - 5pm

Call 03332 207 677

Anna Lewis

How To Track Contact Form Submissions Without A Confirmation Page

9th Aug 2011 Analytics 1 minute to read

SubmitSometimes web developers are unable to create a thank you or confirmation page for a form submission, this leaves you unable to easily track how many forms have been completed, as goals in Google Analytics require a URL. However, there is a nice and easy way round this. It just takes a small amount of code and you can create a pretend URL to load when the submit button is pressed.

This is done by using the Virtual Pageview method which, as you might have guessed, enables you to track a page that doesn’t actually exist. It will then appear in your content report and you can create a goal with this URL destination. An alternative would be to use Event tracking, however if you wanted this page created by web developers there is no harm in using Virtual Pageviews. If you didn’t want to have a Virtual Pageview in your content report you can always use Event tracking, details of how to do this can be found in my post about tracking clicks on a link in Google Analytics.

Here’s the code used in a typical form submission button, the second one here has the Virtual Pageview tracking code in:

<input name=”submit” type=”submit” id=”Submit” value=”Submit Form”/>

<input name=”submit” type=”submit” id=”Submit” value=”Submit Form” onClick=”_gaq.push([‘_trackPageview’, ‘/form/submit’]);”/>

So the area to customise is:

onClick=”_gaq.push([‘_trackPageview’, ‘/form/submit‘]);”

You can choose what you would like the URL to be, if you have more than one form you can name each one differently.

Once you have chosen your virtual URL and added the code within the button, the final step is to create a goal in Google Anlaytics to measure this.

Image Source

Web Submit Button via BigStock

Share this post

Free Whitepaper The Complete Google Analytics Guide For Business

3 Comments

What do you think?

  • aspect-ratio google-adwords-analytics-attribution
    Conor Maurice

    Attribution 101: Google Analytics and AdWords

    In today’s multichannel world, there are mountains of data which provide insights into how users have interacted with your business and their path to conversion (or non-conversion). It is important to understand performance with multichannel marketing, which can be achieved through attribution modelling. Attribution refers to assigning credit to something (a channel, touchpoint, etc.) for the role it played in the final conversion. An attribution model is a rule, or set of rules, that assigns this credit correctly to the right channel or touchpoint.

    (more…)

    Conor Maurice
    26th Mar 2018
    Analytics
  • aspect-ratio bing-logo-woodsign
    Liam Huckins

    Why Bing is a Valuable Paid Media Platform

    For a long time, Bing, the UK’s second-largest search engine, has been underappreciated and, in some instances, even ignored.  Often regarded as the inferior search engine to market leader Google, Bing has historically struggled to appeal to many in the digital world. Most PPC analysts would give justified reasons for neglecting Bing for so long; these include the volume of traffic and the user experience just not matching up to Google. However, the validity of these assessments is now diminishing. Bing has grown and improved rapidly in the last couple of years; if you are not integrating it into your comprehensive digital marketing plan, you run the risk of missing out on a large portion of your chosen market and significant revenue.

    (more…)

    Liam Huckins
    8th Mar 2018
    Paid Search

Digital Ideas Monthly

Sign up now and get our free monthly email. It’s filled with our favourite pieces of the news from the industry, SEO, PPC, Social Media and more. And, don’t forget - it’s free, so why haven’t you signed up already?