This guide provides a comprehensive explanation for installing the Factors SDK on your Webflow website. It covers adding the script tag to both the entire site and specific pages.
Note: We can only track website traffic on the pages where our SDK is installed at.
We encourage you to install our SDK to your website via Google Tag Manager or a tag manager equivalent because it simplifies the installation process and reduces the need for manual code updates.
Adding the SDK to the entire site
Open a web browser and navigate to your Factors.ai account.
Click on 'Settings' in the navigation bar and click on 'Java Script SDK.'
Within the JavaScript SDK menu, find the option labeled 'Manual Setup' and click on it.
Now click on the copy code button on the right side of the code. Copy the entire script tag to your clipboard.
Go to your Webflow dashboard and click on the three dots to open settings.
Navigate to the "Custom code" section, locate the area designated for "Head code." This is usually a text box specifically labeled "Head code" or similar.
Carefully paste the copied script tag from your clipboard into the "Head code" text box.
Once the script tag is pasted, click the blue "Publish" button to make the changes live on your website.
Adding the SDK to specific pages
Open Webflow Designer:
Select the Target Page:
Scroll down in the page settings menu to find the section labeled "Head tag."This section is typically used to inject custom code into the page's header.
Just like before, copy the SDK code from your Factors dashboard into the "Head tag" section.
After pasting the script tag, click the blue "Save" button at the top of the settings menu to store the changes for the specific page.
Finally, click the green "Publish" button in the top right corner to make the SDK script live on that specific page.
Additional Notes:
Ensure you obtain the correct script tag unique to your Factors instance from your team.
Double-check that the script tag is pasted accurately within the designated sections to avoid errors.
Remember that these instructions are specific to Webflow. If you're using a different platform, consult their documentation for guidance on adding custom code.