How to Integrate
Step 1: Add the Integration Script
To integrate SplitHub into your website, copy the following script and add it to the <head>
section of your HTML:
<!-- SplitHub -->
<script>
window.SplithubConfig = window.SplithubConfig || {};
window.SplithubConfig.version = 'YOUR_WEBSITE_ID';
</script>
<script async src="https://files.splithub.io/sh-full.min.js" id="splithub"></script>
<!-- End SplitHub -->
Step 2: Add the Conversion Tracking Script
To track conversions, add the following script to the pages where conversions occur (e.g., thank you pages, purchase confirmation pages):
<!-- SplitHub Conversion -->
<script type="text/javascript">
splithub.conversion({
website_id: 'YOUR_WEBSITE_ID'
});
</script>
<!-- End SplitHub Conversion -->
Finding the Website ID for Scripts
You can find the website ID for the scripts by following these steps:
- Create a new project in SplitHub.
- Add your website to the project.
- Click on the "Instructions" button for the website, which will provide the main script and the conversion script including the ID for the website.