Table of Contents
Requirement :: To Capture leads URL parameters from URL #
Scenarios ::
#
For the requirement around capturing data points such as source, campaign, Google keywords it came from… and so on. There are 2 scenarios to it:
- Data exists in the link:
If the UTM parameters are there in the link, as widget can capture 4/5 standard UTM parameters by default. and for more parameters we will have to add hidden fields in widget form, which can capture these details further. Limitations would be in attribution models, which are not there by default in LSQ systems, can look via Publisher panel or Reporting as the data exists in activity details. - Data does not exist in the link:
If someone is redirected to a link, from Google ads, or google search, what kind of search keywords they used to come to the page? And more of, capturing other data that google might pass, like the device accessed or Campaign ID… How can we capture that? Can we use Google Adwords connector or any other readily available connector for this scenario?
Solutions ::
#
Solutions and different approaches:
- Using LeadSquared Landing Page.
- Using Website Widget or Portal form using Dynamic form.
- Using APIs or Webhook (Lapp) on Form submission.
Using LeadSquared Landing Page
#
Pre- requisites ::
#
- Should ensure that all URL are in the following format, Containing URL params exactly like mentioned. (Its case sensitive)
- The attached script has to be placed “End of Body” section of all the published / future landing pages. (Step: 4 of Landing page creation/edit)
(LP Script.txt)- All the required fields should added and marked as hidden fields in the Landing Page form.
- This script works only on LeadSquared Landing pages and will not work on direct website traffic and connector (Google Adword Forms) connector traffic.
Testing details ::
#Test Lead link:
Appendix (Steps) :: #Steps to deploy the script on Landing pages.
- Click on “Edit” Landing Page option from Landing page Action button.
- In the 2nd Step add “Lead Source”, “Source Campaign”, “utm_term” and “gcl id” in the landing page form and mark them as ‘Hidden Field’.
- In the 4th Step add given script in “End of Body” section.
- Republish the Landing page.
- Use the above mentioned URL or URL with similar URL params for test submission.
Reference Screenshots ::
#
- Click on “Edit” Landing Page option from Landing page Action button.
- In the 2nd Step add “Lead Source”, “Source Campaign”, “utm_term” and “gcl id” in the landing page form and mark them as ‘Hidden Field’.
- In the 4th Step add given script in “End of Body” section.
Using Website Widget or Portal form using Dynamic form
#
Steps to capture URL params using Widget forms :
#
- Create field and add it to the form as a hidden field. Limitations: As it’s a lead field it won’t capture on activity level, and has to be updated/or kept same, will depend on the Deduplication logic which is set.
- Add the field name with “L_” as prefix to field set name as query param in the link. Refer the help doc for further: https://help.leadsquared.com/how-to-pre-populate-and-capture-data-in-portal-forms
- For reference, as in below example the first name field is auto populating. The data will be stored normally.
P.S. By default we support only the standard UTM parameters, this is a workaround to capture any spare data.
Pre- requisites ::
#
- Should ensure that all URL are in the following format, Containing URL params exactly like mentioned. (Its case sensitive)
- All the required fields should added and marked as hidden fields in the Landing Page form
- LeadSquared Tracking script should be installed and working on all the Landing pages containing submission forms.
Testing details ::
#Test Lead link:
Steps :: #
- Simply write a script to capture data from URL >> Store it in local variable >> Map local variables to LeadSquared Schema to send correctly.
