x

Weebly contact form submission: how to track as Goal in Google Analytics

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

2,833 Views
Message 1 of 5
Report
4 REPLIES 4
Square

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.

2,825 Views
Message 2 of 5
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:

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>"

1,853 Views
Message 2 of 5
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. 

1,357 Views
Message 2 of 5
Report
Square

It should keep it hidden, @SavingSpaces Is it that you just want to keep track of the numbers of views the page gets? 

1,353 Views
Message 2 of 5
Report