For å publisere undersøkelser må et Javascript installeres på din nettside. For å In order to publish surveys, a Javascript must be installed on your website. To do this, the script can be added directly to the website's CMS.
First you need to have the Javascript available
As a customer, you have a unique script that you can find in your Skyra account. You will need this script to complete the installation.
Add the script to your CMS
Find out where you can add the script
First, log in to your CMS, then navigate to where you can add the script.
You should add the script to a part of the website that loads on all pages, such as the footer. This is often available through the theme or site editor in your CMS.
Copy and paste the script
Yep, just copy it in!
Save and publish
After inserting the script, you need to save or update the template or page. If your CMS distinguishes between saving as a draft and publishing, be sure to publish to make the changes visible.
All pages where you want Skyra surveys to be seen must contain this script.
Remember: Even if the script is installed on all pages, you can control directly via settings in the Skyra platform which pages a survey should be shown or hidden on.
Troubleshooting and help
If there is no obvious way to paste the Skyra script into your CMS, it is recommended to contact your developer or email [email protected] for help. Alternatively, you can install the script using Google Tag Manager.
If the installation did not work, you should check the following:
Is the script 100% correct?
Use "Copy code" when retrieving the script to avoid possible errors with the formatting of text and characters.
Does the website use Content Security Policy?
If your website has a Content Security Policy (CSP), Skyra must be registered as approved before the installation works.
Example of a script
This shows an example for Skyra's own script, where slug is our organization name
<script>
window.SKYRA_CONFIG = {
org: 'skyra'
}
<script/>
<script src="https://survey.skyra.no/skyra-survey.js"></script>