Instructions
Install the Script in the <head> section of your website file
Dev/Testing Script <script src="https://home.brindlechute.live/brindle-embedded.js"></script>
Production Script <script src="https://home.brindlechute.com/brindle-embedded.js"></script>
When the script loads correctly, we print a message to the console, like so:
We inject a global called brindlechute, with the following methods to trigger the booking flow modals
Note: Ids are pulled from your test data, we can drop in your real ids when we go on prod environment.
Example calls
// Opens modal for all groups
brindlechute.openAllGroupsModal(1001)
// Open modal for group "Trip group test"
brindlechute.openGroupModal(1001,77)
// Open modal for experience "Half Day float"
brindlechute.openExperienceModal(1001,1091)
You will want to add these calls to the event triggers from buttons on the website. For example, if you have "book now" and it's on the Half day float page then you'll trip that experience's modal call. Whereas, a general button may do the All groups modal trigger.
Helpful Notes about Web Integration
Most controls are configurable on the backend under the Outfitter organization:
Outfitter can go to calendar and click online settings to:
Control blackout dates
Control request to book vs. instant booking and timing (article work in progress)
Add slot availability (article work in progress)
Experience Groups are used to show groups in the web booking widget see more here (article in progress).
Squarespace integration
Squarespace integration
Step #1 - Add the script
Login to your squarespace and prepare to inject the Brindlechute JS snippet into your Head section
Go to the code injection panel - https://[INSERT_DOMAIN].squarespace.com/config/pages/website-tools/code-injection
You can see Squarespace's help article here - https://support.squarespace.com/hc/en-us/articles/205815908-Using-code-injection
Inject the Javascript Production Script
<script src="https://home.brindlechute.com/brindle-embedded.js"></script>Go to website and open dev tools and open console and you'll see we confirm! You're good to move on to Step #2
Step #2 - Add a button and trigger the web widget
Go back to your Squarespace editor
Add a button where you'd like to have people initiate the booking flow
On that button open the editor
Then edit the link and enter in the following code
href="#" onclick="event.preventDefault();Then add your Brindlechute modal call that you desirebrindlechute.openExperienceModal(13808,13959);"Ensure that the open in new tab is toggled off
Save
Boom! You just wrote a custom button on your site that launches Brindlechute web widget.


