UTM Tracking - Advanced Tracking | Zoho Forms

Advanced Tracking

The advanced tracking code will capture the source using the UTM parameters available in the website URL, traffic from Google Ads using the gclid parameter in the URL, and also auto-track traffic from different search engines. 

To use the advanced tracking code,

  1. After enabling tracking and defining the tracking parameters, click Get Tracking Code under Website Tracking
  2. From the popup, copy the code provided under Advanced Tracking Code.
    Advanced Tracking Code
  3. Paste the copied code in the web page's footer where your form is embedded, before the </body> tag.
    Notes
    Note: If you're embedding the form using JavaScript, place the tracking code in the <head> tag instead of the footer
  4. Now, when you share your website's link on various mediums, you can include your tracking parameters in your website's URL to track the source. 
The advanced tracking code tracks the following:

UTM parameters from the website URL

If your website URL contains UTM parameters and custom parameters (defined by you in Zoho Forms), the tracking script will capture this information and save it as a browser cookie, as shown below. 

Cookie NameCategory
utm_sourceMarketing/Tracking Cookie
utm_mediumMarketing/Tracking Cookie
utm_campaignMarketing/Tracking Cookie
utm_contentMarketing/Tracking Cookie
utm_termMarketing/Tracking Cookie

If you have defined custom parameters, then they will also be stored in the cookies. For example, if you are running a promotion, you can track the offer code used with a UTM parameter utm_offer_id.
Note: By default, the tracking cookies expire in 7 days. The form owner can modify the expiration time for the cookies from 0 days to infinite validity. When the cookie value is set to infinite, the cookies will stay in the respondent's browser unless they manually clear it.

GCLID from the website URL

When there are no UTM parameters available in the website's URL, the tracking script checks for gclid. If a gclid parameter is available in the website's URL, then the source is captured as shown below when the entry is submitted. 

utm_source=Google Ads
utm_medium=cpc
utm_campaign=(not set) 

Auto tracking with document.referrer

If the UTM and gclid parameters are not present in the website URL, the script will obtain information from document.referrer if accessible, which indicates the source from which the user accessed the webpage.
  1. After the website loads completely, the tracking script in 'onLoad' looks for the Zoho Form embedded in the website.
  2. When the tracking code finds a Zoho Form, it gets the UTM values form the cookie and appends the UTM parameter and values as key value pairs to the Form's URL.
  3. If the domain is a search engine like Google, Bing, Baidu, Yandex, Yahoo, or Ask, then the UTM parameters will be saved as:

utm_source= <search_engine> 
utm_medium=organic 
utm_term=(if available as a query string)

  1. If the Zoho Forms tracking code cannot read an organic source, gclid, or a tracking parameter, then the UTM parameters will be saved as:

utm_source = <referrer domain> 
utm_medium = referral

  1. To identify the exact URL of the source from where your form respondents were redirected to your form, include referrername  as a custom parameter under  Tracking Settings 

Using tracking codes in WordPress

If you embed your form on a WordPress website and use the Smush plugin to lazy load images and optimize website performance, you must exclude Zoho Forms iframe from Lazyload for the tracking code to work. 

To exclude the iframe from lazy loading, add  class="no-lazyload"  while embedding the form as an iframe on your WordPress builder.