Website Intercept: Tracking When Survey is Offered and Clicked in Google Analytics

Website Intercept is available as an add-on. If you are interested in Website Intercept, please contact us for additional information.

If you're using our Website Intercept feature to survey your website visitors you will likely want to track how often the survey is offered and clicked. You can track this information and push it to Google Analytics by adding some additional code to your Website Intercept beacon code. 

To get started, if you are not already using Google Analytics, you will need to set up a property and include the tracking code on your website; sign Up for Google Analytics

Next, add/modify your beacon code. The highlighted portions of the code below can be copied and pasted into your beacon code. You can modify the 'Survey Offered' and 'Survey Clicked' text to whatever you wish to call the event in Google Analytics. Learn more about Google Analytics Event Tracking.

<script type="text/javascript">
    ga('send','event','Survey Offered');
  $("html").on("click", ".sg-b-l-t", function(){
    ga('send','event','Survey Clicked')

Use Google Tag Assistant for Testing!

Now you're ready to test that the events are sending! Use the Google Tag Assistant plugin for Chrome. This handy little tool makes testing your pageviews and events super easy!

Basic Standard Market Research HR Professional Full Access Reporting
Free Individual Team & Enterprise
Feature Included In