I’m working on implementing web tracking on the contact form.
As the contact form hasn’t got its own URL
<script async id=”dreamdata-form-identify” src=”https://cdn.dreamdata.cloud/scripts/identify-form/v1/identify-form.min.js”></script>
Would it break?
Here on the page, you can see some alternative solutions
Thx & Best regards
Thank you for the inquiry.
Yes, you can insert the script directly in the header, but we recommend using the wp_enqueue_script function instead. Please check the documentation below for more info.
If you need to apply async and other attributes to the script tag, the following thread might help.
You could try using a plugin like this: https://wordpress.org/plugins/wp-headers-and-footers/