Hi Support
I’m working on implementing web tracking on the contact form.
As the contact form hasn’t got its own URL
Would it be possible to insert this javascript in the header?
<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
https://docs.dreamdata.io/article/9ng635hono-form-tracking
Thx & Best regards
Lene
Hey Lene,
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.
// https://developer.wordpress.org/reference/functions/wp_enqueue_script/
If you need to apply async and other attributes to the script tag, the following thread might help.
Best regards,
Ismael
Hi,
You could try using a plugin like this: https://wordpress.org/plugins/wp-headers-and-footers/
Best regards,
Rikard
Hi Rikard
Many thanks for input.
You can closed this ticket.
Best regards
Lene