# Sponsorship Landing Pages & Search

# Overview

We technically have one sponsorship page (opens new window) and we can filter that page by a number of fields, some are exposed and others are not.

When a search is executed (opens new window), the search mode is enabled and the URL will contain keyword search in it.

The US and Lifeline pages are techcnially search results pages with set critera.

  • Landing page URL https://lo-test.savethechildren.org/site/SPageNavigator/sponsorship.html#!/
  • Search page URL https://lo-test.savethechildren.org/site/SPageNavigator/sponsorship.html#!/search?age=&birthday=&birthmonth=January&display_type=default&gender=&location=&sog=
  • US landing page URL https://lo-test.savethechildren.org/site/SPageNavigator/sponsorship.html#!/search?age=&birthday=&birthmonth=&display_type=us&gender=&location=community%2FimpactArea%2FcountryOffice%2FfieldOffice%2Fregion%2FlocationID%3A5c153c49-e69a-487b-bd72-80c4792c2e47&sog=
  • Lifeline landing page URL https://lo-test.savethechildren.org/site/SPageNavigator/sponsorship.html#!/search?sog=447d08f9-ef5f-4bab-8312-69701f54a47e&display_type=lifeline

# Landing Pages

The URL parameter display_type is used to denote the header content on the search pages. Based on this value the header section for the appropriate section will be display. If the user chooses to search on the page, the search values will be refreshed by the top section above the search form will remain the same. The following values are expected:

  • default - standard global sponsorship search
  • us - the US landing page
  • lifeline - the lifeline landing page

# Analytics

For the purpose of getting user interaction insights the page views of sponsorship pages must be distinguished from the actual searches a user will execute by submitting a search form.

Each form submission is counted as a search, each page load is tracked as page views. The only exception to this is Clear All button. When it is clicked or all the inputs on the search form are reset, the page view will be tracked as we are back to the original state.

Each form submission is recorded in code (data store value sponsorshipSearchExecuted). By default the value is set to false. When a user hits the form submission, the value true is set. After the page loads, the script looks at this value. If it's set to true then the child search event in analytics is triggered, otherwise a page view is recorded. The value is reset back to default false after the analytics are executed. It is then computed again on the next interaction.

This logic produces the accurate count of form submissions and page views and accurately reflects user interactions.

All child profile pages are tracked as page views.

When the user comes to the global landing page, there will be no display_type or search in the URL, thus the page will be recognized as a page view. Once the user selects their filter parameters and and submits the search form, the event will be recorded as a search event. The form submission will take them to the page with search in the URL, thus making the page a search page. If the user selects the default landing page parameters, it will still be considered a search since the search form has to be submitted and search will be present in the URL. If the user clicks on the menu item in main menu they will be taken to the selected page and it will be viewed and recorded as a page view.

# Search Form

The search form may be displayed on any landing page. On November 2021, the search form displays on the global and US landing pages only. It is hidden on the Lifeline landing page.

# Clear All Button

The logic for Clear All button depends on the state of the page. The button will appear on a page that is considered a search page.

Examples:

  • A user lands on the global landing page, selects search criteria but doesn't hit submit.
    The Clear All button will not appear as a user is on the landing not a search page.
  • A user lands on the global landing page, selects search criteria, and submits the form. The Clear All button will appear as a user is now on search page.
  • A user comes to the US landing page from menu, selects search criteria but doesn't hit submit. The Clear All button will not appear as a user is on the landing not a search page.
  • A user comes to the US landing page from menu, selects search criteria and submits the form. The Clear All button will appear as a user is now on search page.
  • A user comes to the Lifeline landing page from menu, selects search criteria but doesn't hit submit. The Clear All button will not appear as a user is on the landing not a search page.
  • A user comes to the Lifeline landing page from menu, selects search criteria and submits the form. The Clear All button will appear as a user is now on search page.