Hi!
We don’t have a direct integration between our website/ecommerce provider and Klaviyo, and are looking into setting it up manually. I’ve read a couple of articles on the API options and steps, but have a couple of questions.
1) I believe these two articles mention the same Javascript Active on Site but the code is just slightly different. Is there a reason? Should I use the first?
- https://developers.klaviyo.com/en/docs/guide-to-integrating-a-platform-without-a-pre-built-klaviyo-integration
<script type="application/javascript" async src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=Public API Key"></script>
- https://help.klaviyo.com/hc/en-us/articles/115005076767-Klaviyo-Web-Tracking
<script type="text/javascript" async="" src="https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=API_KEY"></script>
2) We select either the javascript OR the server side Track API to implement, right? If so, it seems that the server-side would be preferential because it tracks more information...
There are likely obvious answers to these, but I’m not a developer…. so I appreciate any guidance or insight!
EDIT TO ADD: I just found another article on javascript/API implementation, ha ha! Any advice on which of the articles to follow and reference?
https://developers.klaviyo.com/en/docs/javascript-api
Thank you,
Bethany