Best practices
Kill switch
A kill switch is a mechanism to quickly turn a feature on and off.
Note
A kill switch is included by default for Shopify integrations.
It's a good idea to include a kill switch for the following reasons:
- As a safety mechanism which allows you to deal with emergency situations quickly and efficiently.
- It makes the go-live process much simpler as you can enabled and test features individually rather than just turn on Web Personalisation in one go.
Best practices
We recommend the following:
- Make the kill switch part of the initial design: By designing in a kill switch mechanism from the start you are more likely to achieve a cleaner separation between your platform and 3rd party plugins and modules.
- Layer with feature switches: As well as having a global kill switch (which should turn off ALL Ometria Web Personalisation features), aim to also have individual feature switches. As well as giving you more control with dealing with any emergencies, it is also useful during the go-live process as you can turn on features one by one.
Javascript integration and SEO
The JavaScript integration is the simplest and quickest way to get Ometria Web Personalisation content into your website.
The content is loaded after the initial page load.
This means the content loaded via JavaScript can sometimes remain hidden to search engines and their crawlers.
To avoid any negative impact, we recommend the following:
- Follow our recommendations on how to include the Web Personalisation tag into your themes and templates. See: Web Personalisation tag options
- Make sure that a sitemap is available and visible to search engines, with direct links to product detail pages. Most platforms have this functionality built in and in most cases this functionality should already be present.
Note:
Recent web crawler advances have made this much less of an issue on many websites.
Google is now successful at crawling and indexing XHR/FETCH generated content, but individual site circumstances (e.g. the number of scripts) can still have an impact.
Updated 2 days ago