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

Anna Lewis
About the author

Anna Lewis

Anna is unbelievably attuned to anything analytical and can fill you in on all the latest news, tips and advice to get ahead in this evolving market.

results-bg

The Complete Google Analytics Guide For Business

Your Free Whitepaper

86 pages of goodness

Analytics Whitepaper Cover

3 Comments

What do you think?

  • aspect-ratio UK Search Awards Sam Noble Winner
    Cat Birch

    Samantha Noble Wins UK Search Personality 2016 at UK Search Awards

    The UK Search Awards is an exciting night for all; brimming with excitement, anticipation and pride, these awards showcase the very best in Digital Marketing. Our pride was overflowing as we watched our very own Sam Noble be honoured with the top prize of the night: UK Search Personality 2016.

    (more…)

    Cat Birch
    @MissCatBirch
    2nd Dec 2016
    News
  • aspect-ratio UK Search Awards Sam Noble Winner
    Cat Birch

    Koozai Shortlisted for Three Awards at the UK Search Awards 2016

    The UK Search Awards are here and we’re pleased to announce that we’ve been shortlisted for three awards at this prestigious ceremony.

    What an incredible year 2016 has been for us so far. We’ve celebrated turning 10 as a company, and in the last few months alone we’ve been nominated for a range of campaigns, won a bunch of awards and now we’ve been shortlisted for even more success.

    (more…)

    Cat Birch
    @MissCatBirch
    30th Nov 2016
    News

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?