The code that is provided in the walkthrough instructions is also different than the code that is provided in this feed.
From Setup Screen in account:
<script type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=insertcompanyIDhere" ></script>
The insertcompanyIDhere auto populates with the company API, which is nice but should there be the “asnyc” text in the code?
From this forum:
<script async type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=insertcompanyIDhere"></script>
I still can’t get either to publish even after using a header/footer plug in but which one should I continue trying to get published?
This doesn’t seem to work.
I can not get the tracking code to publish to my website in the footer or header scripts. Even though I push the publish button in theme settings and everything seems to work the script isn’t making it to the website.
I have also tried to use a widget to add the script to the footer, before content, and side bar. none of those work either.
Awesome! Thank you very much for the help!
Hi @Japricott,
Happy to help! Yes it would be your public API key, you can find more instruction about this in our documentation.
-Taylor
Super! Thank you very much Taylor!
One last thing: What should I replace “insertcompanyIDhere” with? With the public API key?
Hi@Japricott,
Thanks for your patience!
I can confirm that you will be able to do this!
You will need to add the following script to your WP blog's HTML before the closing </body> tag to allow the use of Klaviyo forms and tracking:
<script async type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=insertcompanyIDhere"></script>
Once this script has been added, you can either publish a Pop Up Form to display it right away or add the embed form code to your desired location to display the form.
Thanks for participating in the Community!
-Taylor
Amazing, thank you Taylor for helping :)