Holiday Hours

Our offices will be closed Monday December 24th and Tuesdsay December 25th in observance of the Christmas Holiday. We will reopen Wednesday December 26th @ 10am. All support requests and emails received after close of business on Friday December 21st will be responded to when we return on Wednesday the 26th in the order they were received. We apologize if this causes any inconvenience.

Help & Support

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Contact Form and Google Analytics Event Tracking

Patti Dalessio Feb 28, 2013 09:24PM EST

Hi There,

Would you please advise, what's the best way to enable Google Analytics Event Tracking when a user clicks the "Send" button on your Contact Form?

Thanks in advance,
Patti

Up -4 rated Down
RAWfolio Support Mar 01, 2013 10:54AM EST RAWfolio Agent

Hi Patti,

You can add event tracking to the contact form to track when someone clicks the Submit button by pasting the code below into the ‘Footer Javascript’ box that’s in the Custom Javascript tab of the Advanced section in the theme options. The line that contains _gaq.push(…) is the line that sends the data to Google Analytics, you can read more on what those values mean here: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide#SettingUpEventTracking and adjust them to your liking. The code below also assumes that you’ve already enabled Google analytics by entering your Analytics ID on the Settings→General tab of the theme options.

jQuery(function() {
$(‘#contact_submit’).on(‘click’, function() {
gaq.push([’trackEvent’, ‘Contact Form’, ‘Submit’, ‘User Submitted Form’]);
});
});

This question has received the maximum number of answers.

F.A.Q

Got a Pre-Sales question? Take a look at our FAQ page.

support@rawfolio.com
http://assets3.desk.com/
false
rawfoliosites
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete