Custom Script / CSS Intergrations
Last updated: June 28, 2023
What Can Be a Custom Request?
Custom Requests require custom code (usually CSS or Javascript) to be added, changed, or removed on a FareHarbor website. In order to keep maintenance of FareHarbor websites manageable, we do not take responsibility for any outside code added to a website, and we restrict what can be added.
Custom CSS
On a case-by-case basis, we can add custom CSS for styles that the FareHarbor WordPress templates do not support. Custom Requests for CSS should be used as a last resort to add styling to a unique site.
If there is a style or option you want to add that you think would benefit clients across our platform, it should be submitted to the FHS Idea Box for consideration by the Development Team.
Custom Javascript
Only certain scripts can be added to FareHarbor websites. The FH Sites Dev team will usually accept requests to add scripts to allow tracking or chat widgets.
Google Tracking Scripts
Google Tag Manager scripts do not need to be submitted as Custom Requests. The Google Tag Manager ID field in Company Settings should be used instead. Please only put the GTM ID (bolded in the example below) in the field rather than the entire Google Tag Manager script:
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXX');</script>
<!-- End Google Tag Manager -->
Scripts for other booking software
Scripts used to integrate another booking software will not be added to a FareHarbor website, which should only use the FareHarbor booking engine. If you do find a site with a non-FareHarbor booking engine on it, please alert the relevant Account Manager.
In order for the FH Sites Dev team to add a script, the client must send the exact clip of code they want added to their site, as well as the location where it should appear.
Additional Google Scripts (Ads, remarketing, etc)
We recommend implementing all additional scripts with Google Tag Manager that are within the Google suite of products. This will ensure stability of tracking and require less turnaround time for changes that are made to analytics, ads, or remarketing. All changes can be made within GTM, except those dealing with the data layer, which can be assessed on a case by case basis.
For more information on how to connect GTM with the rest of the analytics suite please visit the following:
How to Submit a Request
Use the work flows in the fhs_custom_requests slack channel to submit a custom request to the FH.me Engineers or LSS team. Please be as thorough as possible.
Once you have submitted the form, your request will appear in the #fhs_custom_requests slack room with a link to the site.
No Plugins
Plugins will not be added to FareHarbor websites!
You can read about why we can implement scripts and not plugins here.
The FH Sites Dev team will take a look at your request. If any further information is needed, you will be contacted on a thread within the original slack post.
When the request has been completed, or if the request cannot be completed, you will be tagged in a thread within the original slack post to let you know.