Query Parameters

Query Parameters

The Web Integrations HTML element uses a data attribute mariana-integrations for optional configuration settings. The integration will work without a value in the mariana-integrations data attribute, but you can also set an initial route by setting the value to a desired path. Read more about Page Routing

There are also query parameters that can also be used to augment the user experience:

Actions

  • login: when set to true, attempt to automatically log this user in via Single Sign-on
<div data-mariana-integrations="/account?login=true"></div>
  • logout: when set to true, automatically logs the user out
<div data-mariana-integrations="/account?logout=true"></div>

Configuration

  • hasBreadcrumbs: when set to false, hide the "Back to" navigation links for the section defined in the initial route
<div data-mariana-integrations="/checkout?hasBreadcrumbs=false"></div>

NOTE: the following Buy Page query parameters should NOT be used without a location specified

  • sections: when given Buy Page Section ID values, only display those sections
<div data-mariana-integrations="/buy/{location_id}?sections=132,465"></div>
  • activeProduct: when given Product ID value, open the product detail modal for that product
<div data-mariana-integrations="/buy/{location_id}?activeProduct=132"></div>
  • activeSection: when given Section ID value, show that section, with navigation to access other sections
<div data-mariana-integrations="/buy/{location_id}?activeSection=465"></div>

NOTE: the following Schedule query parameters should NOT be used without a region specified

  • classroom: when given Classroom ID values, only display classes in those classrooms
<div data-mariana-integrations="/schedule/daily/{region_id}?classroom=132,465"></div>
  • classType: when given Class Type ID values, only display classes of that class type
<div data-mariana-integrations="/schedule/daily/{region_id}?classType=132,465"></div>
  • instructors: when given Instructor ID values, only display classes by those instructors
<div data-mariana-integrations="/schedule/daily/{region_id}?instructors=132,465"></div>
  • locations: when given Location ID values, only display classes in those locations (requires Region ID)
<div data-mariana-integrations="/schedule/daily/{region_id}?locations=132,465"></div>

Links

As an alternative, these query params can also be used in direct links, even when the html integration for that page does not have a mariana-integrations data attribute defined.

Embed this basic snippet:

<div data-mariana-integrations></div>

Then, create a link where the value in the _mt query param is the urlEncoded path. Example:

https://www.example.com/demo?_mt=%2Faccount%3Flogout%3Dtrue (path: /account?logout=true)