This article contains the following topics (click on them to jump to the corresponding place):
- Create Domain
- Obtain tracking consent
- Integrate JavaScript code snippet into a website
- Insert JavaScript code into WordPress
Create Domain
First, navigate to "Analytics" in your Quentn system. There you will see a list of your previously created domains. In each case, you will find a button "Add domain". Click on it.
Info: Greyed out field
If the "Create domain" button is greyed out, you have already reached the maximum number of domains you are allowed to create with your account. You can either delete an old account, or upgrade your account.
In the pop-up that appears, enter the domain of your website (e.g. example.com) and save it. Optionally, you can check the box Track anonymous users. This results in unidentified website visitors appearing in the visitor statistics.
Note that unidentified visitors can never trigger an event because their behaviour cannot be allocated to a contact.
To comply with basic data protection regulations, it may be necessary to obtain the visitor's consent for tracking. You can do this conveniently and easily by firstly checking the box for Obtain consent. The prerequisite for this is that you have already created a separate field with the type Confirmation. Select the desired field from the drop-down menu. Afterwards, you must insert the corresponding embed code into your website, as described below.
The new domain should now be visible in the domain list and in the menu on the left-hand side. To edit or delete the domain, please go to Settings in the menu on the left-hand side. Please note that as soon as the domain is deleted, all related events are also deleted.
Obtain tracking consent
- Check the box "Obtain consent". The prerequisite for this is that you have already created your own field of the type Confirmation.
- Now select the desired field from the drop-down menu.
- You must then insert the corresponding embed code into your website as described below.
The new domain should now be visible in the domain list and in the menu on the left-hand side.
To edit or delete the domain, please go to Settings in the menu on the left. Please note that as soon as a domain is deleted, all associated events are also deleted.
Embed JavaScript in your own site
Integrate JavaScript code snippet into a website
You can find the JavaScript code in the left menu under "Embedding".
Copy this code into your website so that it loads every time a page, which you want to evaluate with Quentn, is viewed. If you have set the "Get approval" option, you will see a further field here with additional JavaScript code. This code causes an overlay to appear at the bottom of your website, where the visitor can check the box and confirm their consent to tracking. It is best to set this JavaScript code immediately after the tracking code.
Insert JavaScript code into WordPress
We recommend integrating the code into the header of the website so that it is loaded every time the page is opened.
- Log into your WordPress installation as the administrator.
- Navigate to Design -> Editor and then on the right-hand side to Theme Header (header.php).
- You should see HTML or PHP code in the middle.
- You should find the following line in the text field: <?php wp_head(); ?>
- The Quentn JavaScript tracking code should be inserted after this line, but in each case it must be inserted before the head tag is closed, namely before the following line: </head>.
- To save the changes, click on Update file.
- If you still want to include consent, this follows directly after the tracking code.
- To save the changes, click on Update file.