# Adobe Target
# URL Parameter
Some experiments cannot be done in Adobe Target alone, especially those in web apps.
For that reason, we added some of them into the code. The tests are configured to rely on a URL parameter s_target_exp. To execute these tests in Adobe Target the experiment should be configured as a redirect and a page should be redirected to the same page but with the appropriate URL parameter added to it. The URL parameter will enable the experiment for the duration of the user's session and the user will see consistent behavior even if they browse away and then back to the page.
# Configured Experiments
The following experiments have been added and/or configured:
# Gift Catalog Experiments
- URL parameter
s_target_exp=hide-cart-donationhides donation request box in the cart.
Full URL will behttps://lo-test.savethechildren.org/site/Ecommerce/?store_id=1241&VIEW_CART=1&s_target_exp=hide-cart-spon-plus-minus. - URL parameter
s_target_exp=hide-cart-shop-buttonshides action buttons in the cart, that take users out of the cart.
Full URL will behttps://lo-test.savethechildren.org/site/Ecommerce/?store_id=1241&VIEW_CART=1&s_target_exp=hide-cart-shop-buttons. - URL parameter
s_target_exp=hide-cart-main-menuhides main menu in the cart.
Full URL will behttps://lo-test.savethechildren.org/site/Ecommerce/?store_id=1241&VIEW_CART=1&s_target_exp=hide-cart-main-menu.
# Sponsorship Experiments
- URL parameter
s_target_exp=hide-cart-spon-plus-minushides sponsorship increase and descrease in the cart.
Full URL will behttps://lo-test.savethechildren.org/site/Ecommerce/?store_id=1241&VIEW_CART=1&s_target_exp=hide-cart-spon-plus-minus. - URL parameter
s_target_exp=hide-sponsorship-searchhides search bar on the sponsorship search page. Full URL will behttps://lo-test.savethechildren.org/site/SPageNavigator/sponsorship.html?s_target_exp=hide-sponsorship-search#!/.
Note that the URL parameter must follow immediately after.htmland the final part should be#!/. - URL parameter
s_target_exp=reverse-sponsorship-actionsreverses the order of buttons below each child profile on the sponsorship landing page.
Full URL will behttps://lo-test.savethechildren.org/site/SPageNavigator/sponsorship.html?s_target_exp=reverse-sponsorship-actions#!/.
Note that the URL parameter must follow immediately after.htmland the final part should be#!/. - URL parameter
s_target_exp=hide-sponsorship-sectionswill hide informational sections on the sponsorship landing page.
Full URL will behttps://lo-test.savethechildren.org/site/SPageNavigator/sponsorship.html?s_target_exp=hide-sponsorship-sections#!/
# Donation Experiments
Most donation experiments require not just the URL change but also form configuration updates for the experiements to work.
- URL parameter
s_target_exp=hide-match360will hide Match 360 don donation forms. See instructions below for how the donation form will need to be configured for this to work.
Full URL will behttps://lo-test.savethechildren.org/site/Donation2?df_id=2504&mfc_pref=T&2504.donation=form1&s_target_exp=hide-match360 - URL parameter
tip-up-checked=falsewill display tip up unchecked by default regardless of how the form is configured, no additional form configuration is needed.
Full URL will behttps://lo-test.savethechildren.org/site/Donation2?df_id=1620&mfc_pref=T&1620.donation=form1&tip-up-checked=false - URL parameter
tip-up-checked=truewill display tip up checked by default regardless of how the form is configured, no additional form configuration is needed.
Full URL will behttps://lo-test.savethechildren.org/site/Donation2?df_id=1620&mfc_pref=T&1620.donation=form1&tip-up-checked=false - URL parameter
tip-up=falsewill hide tip up if it's present on the form. No additional form configuration is needed.
Full URL will behttps://lo-test.savethechildren.org/site/Donation2?df_id=1620&mfc_pref=T&1620.donation=form1&tip-up=false
# Global Experiments
- URL parameter
s_target_exp=mobile-reduced-form-margincreated 2022-03-29, will load an alternative stylesheet where the margin between form elements on mobile is reduced.
Full URL will behttps://lo-test.savethechildren.org/site/Donation2?df_id=1620&mfc_pref=T&1620.donation=form1&s_target_exp=mobile-reduced-form-margin
# Multiple Experiments
The code was configured to allow the experiments to be combined as well. If the values or parameters are combined, two experiments will run at the same time. For example, adding s_target_exp=hide-cart-donation_hide-cart-shop-buttons to the URL will hide donation request box and the action buttons in cart. Adding s_target_exp=hide-cart-donation_hide-cart-shop-buttons_hide-cart-spon-plus-minus to the URL will hide donation request box, actions buttons, and sponsorship increase in cart. Full URL for the experiment redirect will be https://lo-test.savethechildren.org/site/Ecommerce/?store_id=1241&VIEW_CART=1&s_target_exp=hide-cart-donation_hide-cart-shop-buttons_hide-cart-spon-plus-minus.
# Configuring Donation Form Experiements
# How to Hide Match360 on Donation Forms
To make Match360 conditional you just need to configure the donation pages as follows.
If the form doesn’t have match360 enabled follow the appropriate instructions to configure the form to have Match360. On donation form pages search for:
[[S51:reus_360matchpro_donation_widget]]
Replace that code with:
[[?xhide-match360x::x[[S80:target_exp]]x::::
[[S51:reus_360matchpro_donation_widget]]
]]
On the donation thank you pages search for:
[[S51:reus_360matchpro_confirmation_page]]
Replace that code with:
[[?xhide-match360x::x[[S80:target_exp]]x::::
[[S51:reus_360matchpro_confirmation_page]]
]]
In this example I assume that the Match360 is shown by default on the donation form but hidden when the URL parameter is present. The reverse can be done as well as needed. The key here is that hide-match360 in the URL should match the value in code snippet below.
The final URL for the donation page in Target would be as follows, the bold part is what would trigger the condition for the experiment: https://lo-test.savethechildren.org/site/Donation2?df_id=2504&mfc_pref=T&2504.donation=form1&s_target_exp=hide-match360.