- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Hi, how can I set up google analytics to track the submission of the Contact form? Submitting the page does not lead to a new url, I can't figure out what to do.
Regards,
Anna
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Hey @akr37!
There should be an option with your form to use a different page of your site as a confirmation page. Click Form Options, then Confirmation, then choose the Link option.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Thank you adam, this is a great option, can we get a feature request started so that we can do the following:
Allow us to utilize Google's button link code as detailed in the following spoiler:
"Copy the snippet below and paste it in between the <head></head> tags of the page(s) you'd like to track, right after the global site tag. Then, call gtag_report_conversion when someone clicks on the chosen link or button."
"<!-- Event snippet for Contact Form conversion page
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script>
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'etcetcetc',
'event_callback': callback
});
return false;
}
</script>"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Followup question: I want to create a page that is only accessible by those that have completed the form so I have made it non-visble, but it is still public because I do not have groups or members. Will allowing it to be public, while having it "hidden" and only linked via submitting the form keep the page from getting visits by bots and others who have not completed the form? Note: I have hidden it as a subpage under the estimate tab, and will be using that URL as my "goal" in Google Analytics.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
It should keep it hidden, @SavingSpaces Is it that you just want to keep track of the numbers of views the page gets?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report