Adding a domain

Adding a domain

  1. First, add the domain to be tracked, inside Ackee's Settings page. For example, if the website www.domain.com is to be tracked, add it in Ackee.
  2. Next, you must configure Ackee with the correct CORS configuration for the domain you added. To do so, edit /app/data/env using the File manager and add the tracked website in ACKEE_ALLOW_ORIGIN.
ACKEE_ALLOW_ORIGIN="https://www.domain.com"
  1. Restart Ackee after making the above change.
  2. Embed Ackee's tracker.js script in the tracked website. Be sure to replace the ackee URL and the domain ID. You can get the snippet below by clicking on the domain entry in Ackee's setting view as well.
<script async src="https://ackee.domain.com/tracker.js" data-ackee-server="https://ackee.domain.com" data-ackee-domain-id="217118b9-1843-4462-82ba-2e0acd189b91"></script>