Make sure tracking script loads only after acceptance of policies. The best practice is to ensure that your tracking script loads only after the user has accepted the cookie usage policy.
This approach guarantees that cookies are only written once the user has given explicit consent, maintaining compliance and user trust.